/* Footer Styles */
footer {
    background-color: #1a3a1a; /* Dark green background */
    color: #ffffff; /* White text color */
    padding: 2rem 0 0; /* Reduced top padding */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    font-size: 0.9rem; /* Slightly smaller base font */
}

/* Ensure all text in footer is white */
footer,
footer p,
footer a:not(.btn-warning),
footer h4,
footer .form-check-label,
footer .form-control::placeholder {
    color: #ffffff !important;
}

/* Style for links */
footer a:not(.btn-warning) {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

footer a:not(.btn-warning):hover {
    color: #ffc107 !important;
    text-decoration: underline;
}

.footer-widget {
    margin-bottom: 1.25rem; /* Reduced from 2rem */
}

.footer-widget h4 {
    color: #fff;
    font-size: 1.1rem; /* Reduced from 1.25rem */
    font-weight: 600;
    margin-bottom: 1rem; /* Reduced from 1.5rem */
    position: relative;
    padding-bottom: 0.5rem; /* Reduced from 0.75rem */
}

.footer-widget h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: #ffc107; /* Yellow accent */
}

.footer-widget p {
    color: #ffffff;
    line-height: 1.5; /* Tighter line height */
    margin-bottom: 1rem; /* Reduced from 1.5rem */
    opacity: 0.9;
}

.footer-widget ul li {
    margin-bottom: 0.5rem; /* Reduced from 0.75rem */
    line-height: 1.3; /* Tighter line height */
}

/* Quick Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 0.25rem 0;
    opacity: 0.9;
}

.footer-links a:hover {
    color: #ffc107;
    padding-left: 8px;
}

/* Contact Info */
address p {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    color: #ffffff;
    line-height: 1.6;
    opacity: 0.9;
}

address i {
    color: #ffc107;
    margin-right: 10px;
    margin-top: 4px;
    min-width: 20px;
    text-align: center;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 16px;
}

.social-links a:hover {
    background: #ffc107;
    color: #1a3a1a;
    transform: translateY(-3px);
}

/* Newsletter */
.newsletter-form .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    height: 46px;
    border-radius: 4px 0 0 4px;
}

.newsletter-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form .btn-warning {
    background-color: #ffc107;
    color: #1a3a1a;
    font-weight: 600;
    border-radius: 0 4px 4px 0;
    padding: 0 20px;
    height: 46px;
    transition: all 0.3s ease;
}

.newsletter-form .btn-warning:hover {
    background-color: #e0a800;
    transform: translateY(-1px);
}

/* Copyright */
.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0; /* Reduced padding */
    margin-top: 1.5rem; /* Reduced margin */
    font-size: 0.8rem; /* Smaller font */
    line-height: 1.3; /* Tighter line height */
    color: #ffffff;
    opacity: 0.8;
}

.copyright a {
    color: #ffc107;
    text-decoration: none;
    transition: all 0.3s ease;
}

.copyright a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    footer {
        text-align: center;
    }
    
    .footer-widget {
        margin-bottom: 2.5rem;
    }
    
    .footer-widget h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-links {
        display: inline-block;
        text-align: left;
    }
    
    address p {
        justify-content: center;
    }
    
    .copyright {
        text-align: center;
    }
    
    .copyright .text-md-end {
        text-align: center !important;
        margin-top: 1rem;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-widget {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Hover Effects */
.footer-widget a:hover {
    color: #ffc107;
    text-decoration: none;
}

/* Accessibility */
footer a:focus {
    outline: 2px solid #ffc107;
    outline-offset: 2px;
}
