/* =========================
   FOOTER BASE
========================= */

    .site-footer {
        background: #0b1d3d;
        color: #fff;
        overflow: hidden;
        position: relative;
    }

    .site-footer::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 80% 20%, rgba(0, 180, 180, .12), transparent 45%);
        pointer-events: none;
    }

    /* =========================
   NEWSLETTER
========================= */

    .footer-newsletter {
        max-width: 1400px;
        margin: 40px auto 0;
        padding: 70px 48px;

        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 40px;

        background: rgba(255, 255, 255, .03);
        backdrop-filter: blur(14px);

        border: 1px solid rgba(255, 255, 255, .08);
        border-radius: 24px;

        position: relative;
        z-index: 2;
    }

    .footer-newsletter h3 {
        font-size: 2rem;
        font-weight: 900;
    }

    .footer-newsletter-form {
        display: flex;
        gap: 12px;
        flex: 1;
        justify-content: flex-end;
    }

    .footer-newsletter-form input {
        width: 360px;
        padding: 15px 18px;
        border-radius: 14px;
        border: 1px solid rgba(255, 255, 255, .12);
        background: rgba(255, 255, 255, .05);
        color: #fff;
    }

    /* =========================
   MAIN LAYOUT
========================= */

    .footer-inner {
        max-width: 1400px;
        margin: 0 auto;
        padding: 80px 48px;

        display: grid;
        grid-template-columns: 340px 1fr;
        gap: 90px;

        position: relative;
        z-index: 2;
    }

    /* =========================
   LOGO
========================= */

    .footer-video-logo {
        width: 258px;
        height: 244px;
        border-radius: 50%;
        overflow: hidden;

        background: radial-gradient(circle, #31afbc, #041018);
        display: flex;
        align-items: center;
        justify-content: center;

        box-shadow: 0 30px 70px rgba(0, 0, 0, .55);
    }

    .footer-video-logo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .footer-main {
        width: 100%;
        min-width: 0;
    }

    /* =========================
   COLUMNS
========================= */
    .footer-cols {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 70px;
    }

    .footer-cols h4 {
        font-size: .8rem;
        text-transform: uppercase;
        letter-spacing: .15em;
        color: #04A4CA;
        font-weight: 600;
        margin: 0 0 16px 0;
    }

    /* RTL: Align footer headings to the right */
    [dir="rtl"] .footer-cols h4 {
        text-align: right;
    }

    /* RTL: Right-align other sections (not Contact Us) */
    /* [dir="rtl"] .footer-cols > div:not(:last-child) .footer-link-list {
        align-items: flex-end;
    } */

    /* RTL: Center only the Contact Us section (last column) */
    [dir="rtl"] .footer-cols > div:last-child h4 {
        text-align: center;
    }

    [dir="rtl"] .footer-cols > div:last-child .footer-link-list {
        align-items: center;
    }
    

    /* links */
    .footer-link-list {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .footer-link {
        color: rgba(255, 255, 255, .75);
        text-decoration: none;
        font-size: .9rem;
        transition: .2s;
    }

    .footer-link:hover {
        color: #04A4CA;
        transform: translateX(4px);
    }

    /* countries line stays on one line */
    .footer-link-list>div {
        white-space: nowrap;
        color: rgba(255, 255, 255, .75);
        font-size: .9rem;
    }

    /* Force LTR only for contact details (email, phone, cities) - not affected by RTL */
    .footer-email,
    .footer-phone {
        direction: ltr !important;
        text-align: left !important;
        unicode-bidi: embed;
    }

    /* Cities line should always be LTR */
    .footer-link-list > div {
        direction: ltr !important;
        text-align: left !important;
    }

    /* RTL: Reverse hover direction for Arabic text links */
    [dir="rtl"] .footer-link:hover {
        transform: translateX(-4px);
    }

    /* But keep LTR contact details with forward slide */
    [dir="rtl"] .footer-email:hover,
    [dir="rtl"] .footer-phone:hover {
        transform: translateX(4px);
    }

    /* =========================
   BOTTOM BAR (FIXED)
========================= */

    .footer-bottom {
        border-top: 1px solid rgba(255, 255, 255, .06);
        position: relative;
        z-index: 2;
    }

    .footer-bottom>div {
        max-width: 1400px;
        margin: 0 auto;

        padding: 24px 48px;

        display: flex;
        justify-content: space-between;
        align-items: center;

        flex-wrap: wrap;
        gap: 12px;

        font-size: .78rem;
        color: rgba(255, 255, 255, .5);
    }

    .footer-bottom a {
        color: rgba(255, 255, 255, .75);
        text-decoration: none;
        transition: .2s;
    }

    .footer-bottom a:hover {
        color: #04A4CA;
    }


    /* =========================
   FOOTER LOGO CENTER FIX
========================= */

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* logo wrapper */
    .footer-logo-wrap {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    /* ensure logo stays centered */
    .footer-video-logo {
        margin: 0 auto;
    }

    /* socials under logo centered */
    .footer-socials {
        justify-content: center;
    }

    /* =========================
   RESPONSIVE FIX (IMPORTANT)
========================= */

    /* TABLET */
    @media (max-width: 1024px) {
        .footer-inner {
            grid-template-columns: 1fr;
            gap: 50px;
            padding: 60px 32px;
        }

        .footer-brand {
            flex-direction: row;
            align-items: center;
            gap: 32px;
            text-align: left;
        }

        .footer-socials {
            justify-content: flex-start;
        }

        .footer-cols {
            grid-template-columns: repeat(2, 1fr);
        }

        .footer-newsletter {
            flex-direction: column;
            text-align: center;
            padding: 48px 32px;
        }

        .footer-newsletter-form {
            justify-content: center;
            width: 100%;
        }

        .footer-newsletter-form input {
            width: 100%;
            max-width: 340px;
        }

        /* countries still on one line at tablet */
        .footer-link-list>div {
            white-space: nowrap;
        }
    }

    /* MOBILE */
    @media (max-width: 768px) {
        .footer-inner {
            padding: 50px 20px;
            gap: 40px;
        }

        .footer-brand {
            flex-direction: column;
            align-items: center;
            text-align: center;
        }

        .footer-socials {
            justify-content: center;
        }

        .footer-cols {
            grid-template-columns: 1fr;
            gap: 32px;
            text-align: center;
        }

        .footer-link-list {
            align-items: center;
            display: flex;
            flex-direction: column;
        }

        /* RTL mobile: override and keep centered */
        [dir="rtl"] .footer-cols {
            text-align: center;
        }

        [dir="rtl"] .footer-cols h4 {
            text-align: center;
        }

        [dir="rtl"] .footer-link-list {
            align-items: center;
        }

        /* allow countries to wrap on mobile if needed */
        .footer-link-list>div {
            white-space: normal;
        }

        .footer-newsletter {
            margin: 20px 16px 0;
            padding: 36px 20px;
            border-radius: 18px;
        }

        .footer-newsletter-form {
            flex-direction: column;
            align-items: stretch;
        }

        .footer-newsletter-form input {
            max-width: 100%;
        }

        .footer-newsletter-form .btn-teal {
            width: 100%;
            justify-content: center;
        }

        .footer-bottom>div {
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            gap: 10px;
            padding: 20px 16px;
        }
    }

    /* SMALL MOBILE */
    @media (max-width: 480px) {
        .footer-newsletter {
            padding: 30px 16px;
        }

        .footer-video-logo {
            width: 180px;
            height: 180px;
        }

        .footer-newsletter h3 {
            font-size: 1.5rem;
        }

        .footer-bottom>div {
            font-size: .72rem;
        }
    }
