/* ========================================
   FOOTER STYLES - WITH YOUR SPECIFIC COLOR
   ======================================== */

.footer {
    background: linear-gradient(165deg, #0a3a47 0%, #1d5a6e 40%, #0f4c5c 100%);
    color: #fff;
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2A5C9A, #1E3A6B, #FF8A4C, #4A9FE0);
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

/* Footer Columns */
.footer-col h4 {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(135deg, #FF8A4C, #FFA726);
    border-radius: 3px;
}

/* Logo Section */
.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    max-width: 180px;
    height: auto;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.footer-logo img:hover {
    transform: translateY(-3px);
    filter: brightness(0) invert(1) drop-shadow(0 5px 10px rgba(255,138,76,0.3));
}

.footer-about {
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

/* Social Links */
.footer-social {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1.1rem;
    border: 1px solid rgba(255,255,255,0.1);
}

.social-link:hover {
    background: linear-gradient(135deg, #FF8A4C, #FFA726);
    transform: translateY(-5px);
    border-color: transparent;
    box-shadow: 0 10px 20px rgba(255,138,76,0.3);
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.footer-links a i {
    font-size: 0.8rem;
    color: #FF8A4C;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
    transform: translateX(5px);
}

.footer-links a:hover i {
    transform: translateX(3px);
    color: #FFA726;
}

/* Footer Badge */
.footer-badge {
    display: inline-block;
    background: linear-gradient(135deg, #FF8A4C, #FFA726);
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    margin-left: 8px;
    animation: pulse 2s infinite;
    vertical-align: middle;
    box-shadow: 0 5px 10px rgba(255,138,76,0.3);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Contact Info */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 18px;
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
    line-height: 1.5;
}

.footer-contact li i {
    color: #FF8A4C;
    font-size: 1.2rem;
    margin-top: 3px;
    min-width: 20px;
}

.footer-contact li span {
    flex: 1;
    word-break: break-word;
}

/* Partners Section */
.footer-partners {
    margin: 50px 0;
    padding: 40px 0;
    border-top: 1px solid rgba(255,255,255,0.15);
    border-bottom: 1px solid rgba(255,255,255,0.15);
    position: relative;
    z-index: 1;
}

.footer-partners h4 {
    text-align: center;
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.partner-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.partner-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.8);
    transition: all 0.3s ease;
    text-align: center;
}

.partner-logo i {
    font-size: 2.5rem;
    transition: all 0.3s ease;
}

.partner-logo span {
    font-size: 0.9rem;
    font-weight: 500;
}

.partner-logo:hover {
    color: #fff;
    transform: translateY(-5px);
}

.partner-logo:hover i {
    transform: scale(1.1);
}

/* Partner Logo Colors - Updated to complement teal background */
.partner-logo:nth-child(1) i { color: #FFD700; } /* Zindi - Gold */
.partner-logo:nth-child(2) i { color: #FF8A4C; } /* Quantum Zambia - Orange */
.partner-logo:nth-child(3) i { color: #FFA726; } /* Arduino UG - Light Orange */
.partner-logo:nth-child(4) i { color: #4A9FE0; } /* EO Robotics - Sky Blue */
.partner-logo:nth-child(5) i { color: #FFFFFF; } /* TEVETA - White */

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 30px;
    position: relative;
    z-index: 1;
}

/* Newsletter */
.newsletter h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 15px;
}

.newsletter-form {
    display: flex;
    max-width: 350px;
    background: rgba(255,255,255,0.1);
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.15);
    overflow: hidden;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
}

.newsletter-form input:focus {
    background: rgba(255,138,76,0.1);
    border-color: #FF8A4C;
}

.newsletter-form input::placeholder {
    color: rgba(255,255,255,0.6);
}

.newsletter-form button {
    width: 60px;
    border: none;
    background: linear-gradient(135deg, #FF8A4C, #FFA726);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-form button:hover {
    background: linear-gradient(135deg, #FFA726, #FF8A4C);
    transform: scale(1.05);
}

/* Copyright */
.copyright {
    text-align: right;
}

.copyright p {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.footer-bottom-links {
    display: flex;
    gap: 25px;
    justify-content: flex-end;
}

.footer-bottom-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    position: relative;
}

.footer-bottom-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #FF8A4C;
    transition: width 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #FF8A4C;
}

.footer-bottom-links a:hover::after {
    width: 100%;
    background: #FF8A4C;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Large Tablets */
@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

/* Tablets */
@media (max-width: 992px) {
    .footer-grid {
        gap: 30px;
    }
    
    .partner-logos {
        gap: 30px;
    }
    
    .partner-logo i {
        font-size: 2rem;
    }
}

/* Mobile Landscape */
@media (max-width: 768px) {
    .footer {
        padding: 60px 0 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-col h4 {
        margin-bottom: 20px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .newsletter {
        width: 100%;
    }

    .newsletter-form {
        max-width: 100%;
    }

    .copyright {
        text-align: center;
        width: 100%;
    }

    .footer-bottom-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    .partner-logos {
        gap: 25px;
    }

    .partner-logo {
        width: calc(50% - 25px);
    }
}

/* Mobile Portrait */
@media (max-width: 480px) {
    .footer {
        padding: 50px 0 20px;
    }

    .footer-grid {
        gap: 30px;
    }

    .footer-col h4 {
        font-size: 1.1rem;
    }

    .footer-about {
        font-size: 0.9rem;
    }

    .footer-links a {
        font-size: 0.9rem;
    }

    .footer-contact li {
        font-size: 0.9rem;
        gap: 12px;
    }

    .partner-logos {
        gap: 20px;
    }

    .partner-logo {
        width: calc(50% - 20px);
    }

    .partner-logo i {
        font-size: 1.8rem;
    }

    .partner-logo span {
        font-size: 0.8rem;
    }

    .footer-bottom-links {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .footer-bottom-links a {
        font-size: 0.8rem;
    }

    .copyright p {
        font-size: 0.8rem;
    }
}

/* Small Mobile */
@media (max-width: 360px) {
    .partner-logos {
        gap: 15px;
    }

    .partner-logo {
        width: calc(50% - 15px);
    }

    .partner-logo i {
        font-size: 1.5rem;
    }

    .newsletter-form input {
        padding: 12px 15px;
        font-size: 0.9rem;
    }

    .newsletter-form button {
        width: 50px;
        font-size: 1rem;
    }
}

/* Dark Theme Support - Keeping your teal theme */
body.dark-theme .footer {
    background: linear-gradient(165deg, #05232b 0%, #0f3a47 40%, #08323f 100%);
}

body.dark-theme .footer::before {
    opacity: 0.8;
}

/* Hover Effects for Interactive Elements */
.footer-links a,
.social-link,
.partner-logo,
.newsletter-form button,
.footer-bottom-links a {
    will-change: transform;
}

/* Print Styles */
@media print {
    .footer {
        background: none;
        color: #000;
        padding: 20px 0;
    }

    .footer::before,
    .footer-social,
    .newsletter,
    .footer-partners {
        display: none;
    }
}