footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 60px 0 0;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary);
}

.footer-links h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    padding: 2px 0;
}

.footer-links a:hover {
    color: var(--white);
    transform: translateX(5px);
}

/* Enhanced Footer Contact Section */
.footer-contact h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 600;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateX(5px);
}

.contact-icon {
    color: var(--primary);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    margin-top: 2px;
    flex-shrink: 0;
}

.contact-text {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.contact-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Footer Bottom - Enhanced Professional Style */
.footer-bottom {
    background-color: #2a2a2a;
    border-top: 2px solid #444;
    margin-top: 3rem;
    padding: 1.5rem 0;
}

.footer-bottom-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    margin: 0;
    color: #999;
    font-size: 0.85rem;
}

.footer-bottom .copyright {
    font-weight: 500;
    line-height: 1.4;
}

.footer-bottom .credits {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Footer Logo Styling - Same as header */
.footer-logo.infopanel-link {
    color: var(--primary) !important;
    font-weight: 700;
    text-decoration: none !important;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: rgba(230, 57, 70, 0.1);
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
    display: inline-block;
    margin-bottom: 1rem;
}

.footer-logo.infopanel-link:hover {
    color: #fff !important;
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
    border-color: var(--primary);
}

.footer-logo.infopanel-link:active {
    transform: translateY(0);
}

/* Add a subtle arrow for external links */
.footer-logo.infopanel-link::after {
    content: " ↗";
    font-size: 0.7em;
    opacity: 0.8;
    margin-left: 2px;
}

/* Infopanel Link with Red Color - Entire name stays red */
.infopanel-link {
    color: var(--primary) !important;
    font-weight: 600;
    text-decoration: none !important;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    background: rgba(230, 57, 70, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.infopanel-link:hover {
    color: #fff !important;
    background: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(230, 57, 70, 0.3);
}

.infopanel-link:active {
    transform: translateY(0);
}

/* Add a subtle arrow for external links */
.infopanel-link::after {
    content: " ↗";
    font-size: 0.8em;
    opacity: 0.8;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    
    footer {
        padding: 2rem 0 0;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .footer-bottom .credits {
        justify-content: center;
    }
    
    .footer-bottom {
        margin-top: 2rem;
        padding: 1rem 0;
    }
    
    .contact-item {
        justify-content: center;
        text-align: center;
    }
    
    .contact-item:hover {
        transform: translateY(2px);
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .footer-bottom p {
        font-size: 0.8rem;
    }
    
    .infopanel-link {
        padding: 0.2rem 0.4rem;
        font-size: 0.8rem;
    }
    
    .footer-logo {
        font-size: 1.6rem;
    }
}