
/* ===== تنسيقات الفوتر ===== */
.main-footer {
    background-color: #424242;
    color: #ffffff;
    min-height: 60px;
    font-size: 16;
    font-family: 'Noto Kufi Arabic', sans-serif;
    direction: rtl;
    border-top: 1px solid #e1e1e1;
    margin-top: 40px;
}

/* الحاوية الداخلية */
.footer-inner {
    width: 100%;
    max-width: 1430px;
    margin: 0 auto;
    padding: 32px 24px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    box-sizing: border-box;
}

/* جهة الشعار والوصف */
.footer-brand {
    max-width: 430px;
}

.footer-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.footer-logo {
    display: block;
    max-width: 170px;
    height: auto;
    margin-bottom: 14px;
}

.footer-description {
    margin: 0;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.9;
}

/* روابط الفوتر */
.footer-links {
    min-width: 280px;
    text-align: right;
}

.footer-links h4 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
}

.footer-links nav {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px 0;
}

.footer-links nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    padding: 0 12px;
    transition: color 0.2s ease;
}

.footer-links nav a:first-child {
    padding-right: 0;
}

.footer-links nav a + a::before {
    content: "|";
    color: #b7b7b7;
    margin-left: 12px;
    font-weight: 400;
}

.footer-links nav a:hover {
    color: #000000;
}

/* نص حفظ الحقوق */
.footer-bottom {
    border-top: 1px solid #e1e1e1;
    padding: 14px 20px;
    text-align: center;
    background: rgba(0, 0, 0, 0.03);
}

.footer-bottom p {
    margin: 0;
    font-size: 13px;
    color: #ffffff;
}

.cookie-consent-box {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: min(420px, calc(100% - 40px));
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 12px 35px rgba(0,0,0,0.16);
    border-radius: 14px;
    z-index: 99999;
    direction: rtl;
}

.cookie-consent-content {
    padding: 18px;
}

.cookie-consent-content p {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.8;
    color: #374151;
}

.cookie-consent-content a {
    color: #7f46a4;
    text-decoration: none;
    font-weight: 600;
}

.cookie-consent-content a:hover {
    text-decoration: underline;
}

#acceptCookiesBtn {
    border: 0;
    background: #7f46a4;
    color: #fff;
    padding: 10px 22px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
}

#acceptCookiesBtn:hover {
    background: #69378b;
}

/* تجاوب الجوال */
@media (max-width: 768px) {
    .main-footer {
        min-height: auto;
    }

    .footer-inner {
        flex-direction: column;
        gap: 26px;
        padding: 28px 18px;
    }

    .footer-brand,
    .footer-links {
        max-width: 100%;
        min-width: 100%;
    }

    .footer-links nav {
        align-items: flex-start;
    }

    .footer-links nav a {
        padding: 0 10px;
    }

    .footer-links nav a:first-child {
        padding-right: 0;
    }
}