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

.lwf-footer {
    direction: rtl;
    margin-top: 60px;
    background: #262B35;
    color: #fff;
}


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



.lwf-footer__container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;

     padding: 32px 24px 48px;

    display: grid;
    grid-template-columns:
        1.7fr
        1fr
        1fr
        1.4fr;

    gap: 50px;

    box-sizing: border-box;
}


/* =========================================
   ABOUT
========================================= */

.lwf-footer__about {
    text-align: right;
}

.lwf-footer__logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 72px;
    height: 72px;

    margin-bottom: 18px;
}

.lwf-footer__logo img {
    width: 100%;
    height: 100%;

    object-fit: contain;
}

.lwf-footer__about h2 {
    margin: 0 0 14px;

    color: #fff;

    font-size: 19px;
    font-weight: 700;

    line-height: 1.6;
}

.lwf-footer__about p {
    max-width: 380px;

    margin: 0;

    color: #cbd5e1;

    font-size: 13px;
    line-height: 2;
}


/* =========================================
   SOCIAL
========================================= */

.lwf-footer__socials {
    display: flex;
    align-items: center;

    gap: 9px;

    margin-top: 22px;
}

.lwf-footer__social {
    width: 36px;
    height: 36px;

   

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

    color: #fff;

    text-decoration: none;

    transition:
        transform .2s ease,
        opacity .2s ease;
}

.lwf-footer__social:hover {
    transform: translateY(-3px);
    opacity: .9;
}

.lwf-footer__social i {
    font-size: 20px;
    line-height: 1.5;
}

.lwf-footer__social--youtube {
    background: #ff0000;
}

.lwf-footer__social--tiktok {
    background: #000;
}

.lwf-footer__social--linkedin {
    background: #0a66c2;
}

.lwf-footer__social--x {
    background: #000;
}

.lwf-footer__social--default {
    background: #00985f;
}


/* =========================================
   COLUMNS
========================================= */

.lwf-footer__column h3,
.lwf-footer__contact h3 {
    position: relative;

    margin: 8px 0 22px;

    padding-right: 12px;

    color: #fff;

    font-size: 16px;
    font-weight: 700;
}


.lwf-footer__column h3::before,
.lwf-footer__contact h3::before {
    content: "";

    position: absolute;

    right: 0;
    top: 50%;

    width: 3px;
    height: 20px;

    background: #00985f;

    border-radius: 3px;

    transform: translateY(-50%);
}

.lwf-footer__column ul {
    list-style: none;

    margin: 0;
    padding: 0;
}

.lwf-footer__column li {
    margin-bottom: 13px;
}

.lwf-footer__column a {
    color: #cbd5e1;

    text-decoration: none;

    font-size: 13px;
    font-weight: 500;

    transition: color .2s ease;
}

.lwf-footer__column a:hover {
    color: #fff;
}


/* =========================================
   CONTACT
========================================= */

.lwf-footer__contact-item {
    display: flex;
    align-items: flex-start;

    gap: 11px;

    margin-bottom: 16px;

    color: #cbd5e1;

    font-size: 12px;
    line-height: 1.7;
}

.lwf-footer__contact-icon {
    flex: 0 0 30px;

    width: 30px;
    height: 30px;

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

    border-radius: 8px;

    background: #0b7650;

    color: #fff;
}

.lwf-footer__contact-icon i {
    font-size: 12px;
}

.lwf-footer__contact-item a {
    color: #cbd5e1;

    text-decoration: none;

    word-break: break-word;
}

.lwf-footer__contact-item a:hover {
    color: #fff;
}

.lwf-footer__contact-item > span:not(.lwf-footer__contact-icon),
.lwf-footer__contact-item > a {
    transform: translateY(5px);
}

.lwf-footer__contact-item > a[href^="tel:"] {
    direction: ltr;
    unicode-bidi: isolate;
}

/* =========================================
   BOTTOM
========================================= */

.lwf-footer__bottom {
    border-top: 1px solid rgba(255,255,255,.08);
}

.lwf-footer__bottom-container {
    width: 100%;
    max-width: 1180px;

    margin: 0 auto;

    padding: 17px 24px;

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

    gap: 20px;

    box-sizing: border-box;
}

.lwf-footer__bottom p {
    margin: 0;

    color: #94a3b8;

    font-size: 11px;
    line-height: 1.7;
}

.lwf-footer__legal {
    display: flex;
    align-items: center;
    gap: 18px;
}

.lwf-footer__legal a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 11px;
    line-height: 1.7;
    transition: color .2s ease;
}

.lwf-footer__legal a:hover {
    color: #fff;
}


/* =========================================
   MOBILE BOTTOM NAV
========================================= */

.lwf-mobile-nav {
    display: none;
}


@media (max-width: 900px) {

    .lwf-footer {
        margin-top: 45px;
    }

    .lwf-footer__container {
        grid-template-columns: 1fr 1fr;

        gap: 35px 25px;

        padding: 38px 20px;
    }

    .lwf-footer__about {
        grid-column: 1 / -1;
    }

    .lwf-footer__about p {
        max-width: 100%;
    }

    .lwf-footer__bottom-container {
        padding: 15px 20px;

        flex-direction: column;

        text-align: center;

        gap: 5px;
    }

.lwf-footer__legal {
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

    /* Mobile navigation */

    .lwf-mobile-nav {
        position: fixed;

        bottom: 0;
        left: 0;
        right: 0;

        height: 70px;

        background: #fff;

        display: flex;

        justify-content: space-around;
        align-items: center;

        border-top: 1px solid #e5e7eb;

        box-shadow: 0 -6px 20px rgba(0,0,0,.08);

        z-index: 9999;
    }

    .lwf-mobile-nav a {
        display: flex;

        flex-direction: column;

        align-items: center;
        justify-content: center;

        gap: 4px;

        color: #666;

        text-decoration: none;

        font-size: 12px;
        font-weight: 600;
    }

    .lwf-mobile-nav a i {
        font-size: 20px;
    }

    .lwf-mobile-nav a.active {
        color: #00985f;
    }

   
}


@media (max-width: 600px) {

    .lwf-footer {
        margin-top: 35px;
    }

    .lwf-footer__container {
        grid-template-columns: 1fr;

        gap: 30px;

        padding: 35px 20px;
    }

    .lwf-footer__about {
        grid-column: auto;
    }

    .lwf-footer__about h2 {
        font-size: 17px;
    }

    .lwf-footer__column h3,
    .lwf-footer__contact h3 {
        margin-bottom: 17px;
    }

    .lwf-footer__bottom-container {
        padding: 14px 15px;
    }

    .lwf-footer__bottom p {
        font-size: 10px;
    }

    .lwf-footer__social {
    width: 40px;
    height: 40px;
    font-size: 16px;
}

.lwf-footer__social i {
    font-size: 18px;
}
}

/* =========================================================
   Footer Social Media
   ========================================================= */

.lwf-footer__socials {
    margin-top: 22px;
}

.lwf-footer__socials-title {
    margin-bottom: 12px;

    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
}

.lwf-footer__socials-list {
    display: flex;
    align-items: center;
    gap: 8px;
    direction: rtl;
}

.lwf-footer__social {
    width: 30px;
    height: 30px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 0;
    border: none;

    color: #ffffff;
    text-decoration: none;

    font-size: 23px;
}

.lwf-footer__social:hover {
    transform: translateY(-2px);
    opacity: .9;
}

/* YouTube */
.lwf-footer__social[aria-label="يوتيوب"],
.lwf-footer__social[aria-label="YouTube"] {
    background: #ff0000;
}

/* TikTok */
.lwf-footer__social[aria-label="تيك توك"],
.lwf-footer__social[aria-label="TikTok"] {
    background: #111111;
}

/* X */
.lwf-footer__social[aria-label="إكس"],
.lwf-footer__social[aria-label="اكس"],
.lwf-footer__social[aria-label="X"],
.lwf-footer__social[aria-label="تويتر"],
.lwf-footer__social[aria-label="Twitter"] {
    background: #111111;
}

/* LinkedIn */
.lwf-footer__social[aria-label="لينكدإن"],
.lwf-footer__social[aria-label="LinkedIn"] {
    background: #0a66c2;
}

/* Snapchat */
.lwf-footer__social[aria-label="سناب شات"],
.lwf-footer__social[aria-label="Snapchat"] {
    background: #000000;
}

/* Threads */
.lwf-footer__social[aria-label="ثريدز"],
.lwf-footer__social[aria-label="Threads"] {
    background: #000000;
}

/* =========================================================
   الجهات الكروية
========================================================= */

.lwf-footer__federations {
    width: 100%;
    padding: 28px 20px 24px;
}

.lwf-footer__federations-container {
    max-width: 1180px;
    margin: 0 auto;

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

    gap: 55px;
}

.lwf-footer__federation {
    width: 78px;
    height: 78px;

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

    text-decoration: none;
    flex-shrink: 0;
}

.lwf-footer__federation img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;

    transition:
        transform .2s ease,
        opacity .2s ease;
}

.lwf-footer__federation:hover img {
    transform: translateY(-4px);
    opacity: .9;
}

.lwf-footer__federations-line {
    width: calc(100% - 40px);
    max-width: 1180px;

    height: 1px;

    margin: 0 auto;

    background: rgba(255, 255, 255, .12);
}

@media (max-width: 700px) {

    .lwf-footer__federations {
        padding: 22px 15px 20px;
    }

    .lwf-footer__federations-container {
        gap: 18px;
        flex-wrap: wrap;
    }

    .lwf-footer__federation {
        width: 58px;
        height: 58px;
    }

    .lwf-footer__federations-line {
        width: calc(100% - 30px);
        margin-bottom: 25px;
    }

}

/* =========================================================
   FOOTER — FRENCH / LTR
   ========================================================= */

.lwf-footer--fr {
    direction: ltr;
}

/* Main container */
.lwf-footer--fr .lwf-footer__container {
    direction: ltr;
}

/* About */
.lwf-footer--fr .lwf-footer__about {
    text-align: left;
}

.lwf-footer--fr .lwf-footer__about p {
    text-align: left;
}

/* Column titles */
.lwf-footer--fr .lwf-footer__column h3,
.lwf-footer--fr .lwf-footer__contact h3 {
    padding-right: 0;
    padding-left: 12px;
}

.lwf-footer--fr .lwf-footer__column h3::before,
.lwf-footer--fr .lwf-footer__contact h3::before {
    right: auto;
    left: 0;
}

/* Columns */
.lwf-footer--fr .lwf-footer__column,
.lwf-footer--fr .lwf-footer__contact {
    direction: ltr;
    text-align: left;
}

.lwf-footer--fr .lwf-footer__column ul {
    direction: ltr;
    text-align: left;
}

/* Contact */
.lwf-footer--fr .lwf-footer__contact-item {
    direction: ltr;
    text-align: left;
}

/* Social media */
.lwf-footer--fr .lwf-footer__socials {
    direction: ltr;
    text-align: left;
}

.lwf-footer--fr .lwf-footer__socials-list {
    direction: ltr;
    justify-content: flex-start;
}

/* Bottom */
.lwf-footer--fr .lwf-footer__bottom-container {
    direction: ltr;
}

.lwf-footer--fr .lwf-footer__bottom {
    direction: ltr;
}

.lwf-footer--fr .lwf-footer__legal {
    direction: ltr;
}

/* Federation logos */
.lwf-footer--fr .lwf-footer__federations {
    direction: ltr;
}

.lwf-footer--fr .lwf-footer__federations-container {
    direction: ltr;
}


/* 404 page: keep footer at the bottom of short pages */
body:has(.lwf-404-page) {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body:has(.lwf-404-page) > .lwf-footer {
    margin-top: auto;
}

.lwf-404-page {
    flex: 1;
    width: 100%;
    box-sizing: border-box;
}

.lwf-404 {
    min-height: 264px;
    padding: 60px 20px;
    box-sizing: border-box;
    text-align: center;
}

/* Custom Social Media Images */
.lwf-footer__social-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
}

/* Remove old backgrounds from custom icons */
.lwf-footer__social--facebook,
.lwf-footer__social--instagram {
    background: transparent;
}