/* Footer */
.main-footer {
    background-color: #061224 !important;
    color: var(--white);
    padding: 2.5rem 0 0;
    margin-top: auto;
    width: 100%;
    position: relative;
    z-index: 999;
}

.footer-grid {
    display: grid;
    grid-template-columns: 3fr 1fr 1.2fr 1.2fr;
    gap: 1.5rem;
    align-items: start;
    padding-bottom: 1.5rem;
}

@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    .footer-col h3::after {
        left: 50% !important;
        transform: translateX(-50%);
        right: auto !important;
    }
    .contact-methods {
        display: inline-block;
        text-align: left;
    }
    html[dir="rtl"] .contact-methods {
        text-align: right;
    }
    .contact-methods li {
        justify-content: flex-start;
    }
}

.footer-col h3 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.75rem;
    display: inline-block;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    /* Default RTL */
    width: 40px;
    height: 3px;
    background-color: var(--accent-color);
}

html[dir="ltr"] .footer-col h3::after {
    right: auto;
    left: 0;
}

.footer-col p {
    color: #94a3b8;
    line-height: 1.8;
    font-size: 0.95rem;
}

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

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col ul li a {
    color: #cbd5e1;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.footer-col ul li a:hover {
    color: var(--accent-color);
    transform: translateX(-5px);
}

html[dir="ltr"] .footer-col ul li a:hover {
    transform: translateX(5px);
}

.social-links {
    margin-top: 1.5rem;
    display: flex;
    gap: 0.75rem;
}

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

.social-links a:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-5px);
    color: var(--white);
}

.social-links a .fa-x-twitter {
    color: var(--white) !important;
}

.contact-methods li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #cbd5e1;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.contact-methods i {
    color: var(--accent-color);
    width: 20px;
    margin-top: 5px;
    text-align: center;
}

.footer-bottom {
    background-color: transparent;
    padding: 1rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 0.875rem;
    position: relative;
    border-bottom: 4px solid var(--accent-color);
}

.footer-bottom.split-design {
    padding: 0;
    border-top: none;
}

.footer-bottom-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1rem 0;
    gap: 20px;
}

.footer-split-line {
    height: 1px;
    background-color: #ffffff;
    flex-grow: 1;
    opacity: 0.8;
}

.footer-social-icons {
    display: flex;
    gap: 15px;
}

.footer-social-icons a {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all 0.3s;
}

.footer-social-icons a i,
.footer-social-icons a svg {
    color: #ffffff !important;
}

/* Specific fix for X icon if it uses a unique class or SVG */
.fa-x-twitter {
    color: #ffffff !important;
}

.footer-social-icons a:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-3px);
}

.footer-copyright {
    padding-bottom: 1.5rem;
}