/* Footer Styles */
footer {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: #e2e8f0;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.footer-section h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: #2D5F7C;
}

.footer-section p {
    color: #a0aec0;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

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

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: #a0aec0;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-section ul li a:hover {
    color: #ffffff;
    transform: translateX(5px);
}

.footer-section ul li a::before {
    content: '→';
    position: absolute;
    left: -15px;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-section ul li a:hover::before {
    opacity: 1;
    left: -10px;
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #2D5F7C;
    border-color: #2D5F7C;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(45, 95, 124, 0.4);
}

/* Contact Details */
.contact-details p {
    margin-bottom: 1rem;
    color: #a0aec0;
}

.contact-details strong {
    color: #ffffff;
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
}

.contact-details a {
    color: #2D5F7C;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-details a:hover {
    color: #4a90e2;
    text-decoration: underline;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: #718096;
    margin: 0;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #718096;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #2D5F7C;
    transition: width 0.3s ease;
}

.footer-links a:hover::after {
    width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    footer {
        padding: 3rem 0 1.5rem;
        margin-top: 3rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 2rem;
        margin-bottom: 2rem;
    }
    
    .footer-section h3 {
        font-size: 1.3rem;
    }
    
    .footer-section h4 {
        font-size: 1rem;
    }
    
    .social-links {
        gap: 0.75rem;
    }
    
    .social-links a {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-links {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-section ul li a:hover {
        transform: translateY(-2px);
    }
    
    .footer-section ul li a::before {
        display: none;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .contact-details strong {
        display: inline;
        margin-bottom: 0;
        margin-right: 0.5rem;
    }
}

/* RTL Support */
[dir="rtl"] .footer-section ul li a:hover {
    transform: translateX(-5px);
}

[dir="rtl"] .footer-section ul li a::before {
    content: '←';
    left: auto;
    right: -15px;
}

[dir="rtl"] .footer-section ul li a:hover::before {
    left: auto;
    right: -10px;
}

[dir="rtl"] .footer-section h4::after {
    left: auto;
    right: 0;
}

[dir="rtl"] .social-links a:hover {
    transform: translateY(-3px) rotate(360deg);
}

[dir="rtl"] .footer-bottom {
    flex-direction: row-reverse;
}

@media (max-width: 768px) {
    [dir="rtl"] .footer-bottom {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    [dir="rtl"] .footer-section h4::after {
        right: 50%;
        transform: translateX(50%);
    }
}
