/**
 * Footer Styles for MyTheme
 * Custom footer with bilingual support (EN/AR)
 */

/* Footer Main Container */
.moj-footer {
    background: rgba(207, 217, 223, 0.3) url('../img/footer-lines.png') repeat-y top center;
    background-size: contain;
    padding-top: 2.5rem;
    position: relative;
}

/* Footer Columns */
.footer-col h5 {
    font-size: 1.15rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: #0d4261;
}

/* Footer Navigation List */
.footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav-list li {
    margin-bottom: 1rem;
}

.footer-nav-list a {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    transition: opacity 0.3s;
    font-weight: 400;
    color: #6e8ea0;
}

.footer-nav-list a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.footer-nav-list a i {
    font-size: 1rem;
    color: #8a1538;
    text-shadow: 0 1px #8a1538;
}

/* Contact Row */
.contact-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 1rem;
    gap: 0.5rem;
}

.contact-icon {
    width: 2.2rem;
    height: 2.2rem;
    background-color: #6e8ea0;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    line-height: 0;
}

.contact-text,
a.contact-text {
    color: #0d4261;
}

/* Social Links */
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.social-links a {
    font-size: 1.1rem;
    transition: color 0.3s;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 100px;
    background: rgba(207, 217, 223, 0.6);
    display: flex;
    padding: 0.5rem;
    align-content: center;
    justify-content: center;
    flex-wrap: wrap;
    color: #6e8ea0;
}

.social-links a:hover {
    opacity: 0.8;
}

/* App Download Buttons */
.moj-footer .app-btns img {
    width: 10rem;
    border-radius: 0.35rem;
    background-color: #ffffff;
    display: block;
    margin: 0.5rem;
}

/* Copyright Bar */
.copyright {
    text-align: center;
    font-size: 0.85rem;
    background-color: #0d4261;
    padding: 1rem 0;
    color: #ffffff;
    margin-top: 2rem;
}

/* Legal Links */
.legal-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.legal-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
}

.legal-links a:hover {
    text-decoration: underline;
}

/* RTL Support */
[dir="rtl"] .footer-nav-list a {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

[dir="rtl"] .contact-row {
    flex-direction: row;
}

[dir="rtl"] .social-links {
    flex-direction: row;
}

/* AR: visually align the تابعنا heading with the first social icon glyph (icons sit inside 0.5rem-padded circles, so the heading otherwise looks ~0.5rem off the icon row start). */
[dir="rtl"] .footer-col h5 {
    padding-inline-start: 0.5rem;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .moj-footer .footer-col {
        margin-bottom: 2rem;
    }
    
    .moj-footer .footer-col.mob-col {
        text-align: center;
    }
    
    .moj-footer .footer-col.mob-col .contact-row {
        justify-content: center;
    }
    
    .moj-footer .footer-col.mob-col .app-btns {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .social-links {
        justify-content: center;
    }
}
