.footer {
    position: relative;
    background: 
        linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
        url('../images/blueblack.jpg') center/cover no-repeat fixed;
    color: var(--white);
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    z-index: 1;
    padding: 40px 0;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

.footer-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* العنوان مع الخط التحتي */
.footer-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    display: inline-block;
}

.footer.ltr .footer-title::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--basic-color);
    transform: translateX(-5px);
}

.footer.rtl .footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--basic-color);
    transform: translateX(5px);
}

/* تخطيط الشبكة */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

/* القوائم */
.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    margin-bottom: 10px;
}

.footer-list a {
    color: var(--white);
    opacity: 0.8;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.footer.ltr .footer-list a:hover {
    opacity: 1;
    color: var(--basic-color);
    padding-left: 5px;
}

.footer.rtl .footer-list a:hover {
    opacity: 1;
    color: var(--basic-color);
    padding-right: 5px;
}

/* الشعار */
.footer-logo {
    margin-bottom: 20px;
    text-align: center;
}

.footer-logo img {
    width: 120px;
    height: auto;
    max-width: 100%;
    transition: var(--transition);
}

.footer-logo img:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* معلومات الاتصال */
.contact-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.contact-info a:hover {
    color: var(--basic-color);
}

/* روابط التواصل الاجتماعي */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--basic-color);
    transform: translateY(-3px);
}

/* الشريط السفلي الثابت */
.footer-line {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background-color: var(--basic-color);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    z-index: 999;
    border-top: 2px solid #05a59f;
}

/* اتجاه النص */
.footer.rtl {
    direction: rtl;
    text-align: right;
}

.footer.ltr {
    direction: ltr;
    text-align: left;
}

/* تحسينات للشاشات الصغيرة */
@media (max-width: 768px) {
    .footer {
        min-height: auto;
        padding: 30px 0 80px; /* زيادة الحشو السفلي لتفادي الشريط الثابت */
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-title {
        font-size: 1.2rem;
    }
    
    .footer-logo {
        margin-bottom: 15px;
    }
    
    .footer-line {
        height: 40px;
        font-size: 12px;
        padding: 0 10px;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 20px 0 70px;
    }
    
    .footer-container {
        padding: 0 15px;
    }
    
    .footer-grid {
        gap: 25px;
    }
    
    .footer-title {
        font-size: 1.1rem;
    }
    
    .footer-list li {
        margin-bottom: 8px;
    }
    
    .contact-info p {
        font-size: 0.9rem;
    }
}