/* 1. Layout & Background */
.blu-footer-section {
    background-color: #14161e; /* rgb(20,22,30) */
    color: #ffffff;
    padding: 32px 16px;
    width: 100%;
}

.blu-footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 2. Top Section (Logo + Nav) */
.blu-footer-top {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 32px;
}

.blu-footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 450px;
}

.blu-footer-logo-link {
    text-decoration: none;
    display: inline-block;
}

.blu-footer-logo {
    font-size: 24px; /* text-xl/2xl */
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.blu-footer-slogan {
    font-size: 14px;
    color: #ffffff;
    line-height: 1.6;
    margin: 0;
    opacity: 0.9;
}

/* Navigation */
.blu-footer-nav {
    display: flex;
    flex-direction: column; /* Mobile: Col */
    gap: 16px;
}

.blu-footer-nav-link {
    color: #ffffff;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 400;
}

.blu-footer-nav-link:hover {
    color: #d1d5db; /* gray-300 */
}

/* 3. Bottom Section (Legal + Social) */
.blu-footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-top: 24px;
    border-top: 1px solid #374151; /* gray-700 separator */
}

.blu-footer-legal {
    font-size: 12px;
    color: #ffffff;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    opacity: 0.8;
}

.blu-footer-privacy-link {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s;
}

.blu-footer-privacy-link:hover {
    text-decoration: underline;
}

/* Social Icons */
.blu-footer-social {
    display: flex;
    align-items: center;
    gap: 16px;
}

.blu-social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s;
    font-size: 12px;
}

.blu-social-link:hover {
    color: #d1d5db;
}

.blu-social-link svg {
    width: 16px;
    height: 16px;
}

.blu-social-text {
    display: none; /* Hidden on mobile usually, reference hides on lg */
}

/* =================================================================== */
/* 4. Responsive Breakpoints (Desktop)
/* =================================================================== */

@media (min-width: 640px) { /* sm */
    .blu-footer-slogan { font-size: 16px; }
    .blu-footer-nav { flex-direction: row; gap: 24px; }
    .blu-footer-nav-link { font-size: 16px; }
    .blu-footer-legal { font-size: 14px; }
    .blu-social-link svg { width: 20px; height: 20px; }
}

@media (min-width: 1024px) { /* lg */
    .blu-footer-section { padding: 48px 24px; }
    
    .blu-footer-top {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 56px;
    }

    .blu-footer-bottom {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding-top: 32px;
    }

    .blu-social-text {
        display: inline-block; /* Show text on desktop */
        font-size: 14px;
    }
}

/* =================================================================== */
/* 5. RTL Support
/* =================================================================== */

:lang(ar) .blu-footer-section {
    direction: rtl;
    text-align: right;
    font-family: 'Noto Sans Arabic', sans-serif;
}

:lang(ar) .blu-footer-top,
:lang(ar) .blu-footer-bottom {
    text-align: right;
}