/* ===== Footer Styles ===== */

/* Partners Section */
.partners-section {
    background: linear-gradient(135deg, #F2F2F2, #FFF9F0);
    border-top: 3px solid #6CB44D;
}

.section-title {
    color: #2c3e50;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, #F5C300, #FFD633);
    border-radius: 2px;
}

.partner-item {
    transition: all 0.3s ease;
    padding: 1rem;
    border-radius: 10px;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(108, 180, 77, 0.2);
}

.partner-logo {
    max-height: 80px;
    max-width: 120px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.partner-item:hover .partner-logo {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.partner-placeholder {
    height: 80px;
    width: 120px;
    border: 2px dashed #dee2e6;
    border-radius: 5px;
    font-size: 0.875rem;
}

/* Main Footer */
.footer {
    background: linear-gradient(135deg, #5A9D3D, #6CB44D);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #F5C300, #FFD633, #A67C52, #7EC45E);
}

.footer h5 {
    color: #ecf0f1;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer h5 i {
    color: #F5C300;
}

.contact-info {
    line-height: 1.8;
}

.contact-info div {
    margin-bottom: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-info div:last-child {
    border-bottom: none;
}

.contact-info a {
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #FFD633 !important;
}

/* Footer Links */
.footer-links {
    list-style: none;
}

.footer-links li {
    transition: all 0.3s ease;
}

.footer-links a {
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    display: block;
}

.footer-links a:hover {
    color: #F5C300 !important;
    padding-left: 1rem;
    transform: translateX(10px);
}

[dir="rtl"] .footer-links a:hover {
    padding-right: 1rem;
    padding-left: 0;
    transform: translateX(-10px);
}

/* Social Media Links */
.social-media-links .btn {
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-media-links .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.social-media-links .btn:hover::before {
    left: 100%;
}

.social-media-links .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Newsletter Signup */
.newsletter-signup {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.newsletter-signup .form-control {
    border: none;
    border-radius: 25px 0 0 25px;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.75rem 1rem;
}

[dir="rtl"] .newsletter-signup .form-control {
    border-radius: 0 25px 25px 0;
}

.newsletter-signup .btn {
    border-radius: 0 25px 25px 0;
    padding: 0.75rem 1.25rem;
}

[dir="rtl"] .newsletter-signup .btn {
    border-radius: 25px 0 0 25px;
}

/* Back to Top Button */
.btn-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    z-index: 1000;
    border: none;
    background: linear-gradient(135deg, #6CB44D, #7EC45E);
    box-shadow: 0 4px 20px rgba(108, 180, 77, 0.4);
    transition: all 0.3s ease;
}

[dir="rtl"] .btn-back-to-top {
    right: auto;
    left: 30px;
}

.btn-back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(245, 195, 0, 0.6);
}

.btn-back-to-top.show {
    display: block;
    animation: fadeInUp 0.3s ease;
}

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

/* Footer Bottom */
.footer hr {
    border-color: rgba(255, 255, 255, 0.2);
    margin: 2rem 0;
}

.footer p {
    color: #bdc3c7;
    margin-bottom: 0;
}

.footer a {
    color: #ecf0f1;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #F5C300;
}

/* Responsive Design */
@media (max-width: 768px) {
    .partners-section {
        padding: 3rem 0;
    }
    
    .partner-item {
        height: 100px;
        margin-bottom: 1rem;
    }
    
    .partner-logo {
        max-height: 60px;
        max-width: 100px;
    }
    
    .footer {
        padding-top: 3rem;
    }
    
    .footer h5 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .social-media-links .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .newsletter-signup {
        margin-top: 2rem;
        padding: 1rem;
    }
    
    .btn-back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    [dir="rtl"] .btn-back-to-top {
        right: auto;
        left: 20px;
    }
}

/* Animation for footer sections */
.footer > .container > .row > div {
    animation: fadeInUp 0.6s ease;
    animation-fill-mode: both;
}

.footer > .container > .row > div:nth-child(1) {
    animation-delay: 0.1s;
}

.footer > .container > .row > div:nth-child(2) {
    animation-delay: 0.2s;
}

.footer > .container > .row > div:nth-child(3) {
    animation-delay: 0.3s;
}
