.content-wrapper {
    flex: 1 0 auto;
}

.main-footer {
    flex-shrink: 0;
    width: 100%;
    background-color: var(--card-bg);
    color: var(--text-main);
    padding: 40px 20px 20px;
    direction: rtl;
    border-top: 1px solid var(--border);
    box-sizing: border-box;
    transition: background 0.3s ease, color 0.3s ease;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--text-main);
}

.footer-about p {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 15px;
    text-align: justify;
}

.footer-highlight {
    color: var(--text-main) !important;
    font-weight: bold;
}

.footer-links-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.footer-links-col ul {
    list-style: none;
    padding: 0;
}

.footer-links-col ul li {
    margin-bottom: 12px;
}

.footer-links-col ul li a {
    color: var(--text-dim);
    font-size: 0.9rem;
    transition: color 0.3s;
    text-decoration: none;
}

.footer-links-col ul li a:hover {
    color: var(--accent);
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-dim);
}

@media (min-width: 1024px) {
    .footer-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }

    .footer-about {
        flex: 1;
        max-width: 45%;
    }

    .footer-links-wrapper {
        flex: 1;
        flex-direction: row;
        justify-content: space-around;
    }
}