.tabie-footer-shell {
    padding: 2rem 0 1.5rem;
    background: transparent;
    font-family: "QatarMediaCorporation", "TanseekModernProArabic", sans-serif;
    direction: rtl;
}

.tabie-footer-shell h1,
.tabie-footer-shell h2,
.tabie-footer-shell h3,
.tabie-footer-shell h4,
.tabie-footer-shell h5,
.tabie-footer-shell h6,
.tabie-footer-shell p,
.tabie-footer-shell a,
.tabie-footer-shell li,
.tabie-footer-shell span {
    font-family: "QatarMediaCorporation", "TanseekModernProArabic", sans-serif;
    /* font-weight: 500; */
}

.tabie-scroll-top-fab {
    position: fixed;
    bottom: 24px;
    z-index: 1200;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    border: 0;
    background: linear-gradient(135deg, #5f47cf, #4b38b3);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 14px 30px rgba(73, 56, 176, 0.45);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.tabie-scroll-top-fab.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

html[dir="rtl"] .tabie-scroll-top-fab {
    left: 24px;
}

html[dir="ltr"] .tabie-scroll-top-fab {
    right: 24px;
}

.tabie-footer-card {
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, #262b3d 0%, #202537 55%, #1d2231 100%);
    padding: 2.6rem 2.8rem 1.6rem;
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.tabie-footer-main {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2.8rem;
}

.tabie-footer-brand {
    flex: 1;
    max-width: 640px;
    text-align: right;
}

.tabie-footer-sitemap {
    flex: 1;
    max-width: 740px;
    display: flex;
    flex-direction: column;
}

.tabie-footer-logo {
    width: 78px;
    height: auto;
    object-fit: cover;
    margin-bottom: 1rem;
}
.tabie-footer-logo-qmc {
    width: 255px;
    height: auto;
    margin-left: 10px;
    object-fit: cover;
    margin-bottom: 1rem;
}
.tabie-footer-desc {
    margin: 0;
    color: rgba(239, 243, 255, 0.7);
    font-size: 20px;
    line-height: 1.9;
}

.tabie-footer-connect {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    margin-top: 1.8rem;
}

.tabie-footer-apps {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.9rem;
    margin-top: 0;
}

.tabie-footer-app-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 220px;
    height: 68px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    box-shadow: none;
    overflow: hidden;
    transition: transform 0.25s ease;
}

.tabie-footer-app-link::before {
    content: "";
    position: absolute;
    top: -120%;
    left: -65%;
    width: 50%;
    height: 300%;
    background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.3) 45%, transparent 70%);
    transform: translateX(-180%) rotate(12deg);
    transition: transform 0.55s ease;
}

.tabie-footer-app-link:hover,
.tabie-footer-app-link:focus {
    transform: translateY(-2px) scale(1.02);
}

.tabie-footer-app-link:hover::before,
.tabie-footer-app-link:focus::before {
    transform: translateX(520%) rotate(12deg);
}

.tabie-footer-app-link img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: fill;
    display: block;
    transition: transform 0.25s ease;
}

.tabie-footer-app-link:hover img,
.tabie-footer-app-link:focus img {
    transform: scale(1.02);
}

.tabie-footer-links {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.6rem 2rem;
}

.tabie-footer-col-title {
    margin: 0 0 1.15rem;
    font-size: 20px;
    font-weight: 500;
    color: #f4f6fb;
}

.tabie-footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

[dir="rtl"] .tabie-footer-menu {
    padding-left: 0;
    /* padding-right: 2rem; */
}

.tabie-footer-menu li + li {
    margin-top: 0.7rem;
}

.tabie-footer-menu a {
    color: rgba(233, 237, 248, 0.6);
    font-size: 20px;
    text-decoration: none;
    transition: color 0.2s ease;
    text-align: right;
}

.tabie-footer-menu a:hover,
.tabie-footer-menu a:focus {
    color: #fff;
}

.tabie-footer-social {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.8rem;
    margin-top: 0;
}

html[dir="rtl"] .tabie-footer-connect .tabie-footer-social {
    order: 1;
    justify-content: flex-start;
}

html[dir="rtl"] .tabie-footer-connect .tabie-footer-apps {
    order: 2;
    justify-content: flex-end;
}

html[dir="ltr"] .tabie-footer-connect .tabie-footer-social {
    order: 2;
    justify-content: flex-end;
}

html[dir="ltr"] .tabie-footer-connect .tabie-footer-apps {
    order: 1;
    justify-content: flex-start;
}

.tabie-footer-social-link {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.09);
    color: rgba(244, 247, 255, 0.9);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.tabie-footer-social-link:hover,
.tabie-footer-social-link:focus {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.tabie-footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 1.3rem 0 1.1rem;
}

.tabie-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
}

.tabie-footer-scroll-btn {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    background: linear-gradient(135deg, #5f47cf, #4b38b3);
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 14px 30px rgba(73, 56, 176, 0.45);
}

.tabie-footer-scroll-btn:hover,
.tabie-footer-scroll-btn:focus {
    color: #fff;
    transform: translateY(-1px);
}

.tabie-footer-copy {
    margin: 0;
    color: rgba(232, 236, 246, 0.66);
    font-size: 20px;
    text-align: end;
}

#back-to-top {
    display: none !important;
}

@media (max-width: 1200px) {
    .tabie-footer-card {
        padding: 2.1rem 1.8rem 1.4rem;
    }

    .tabie-footer-main {
        gap: 1.8rem;
    }

    .tabie-footer-col-title,
    .tabie-footer-menu a,
    .tabie-footer-desc,
    .tabie-footer-copy {
        font-size: 18px;
    }

    .tabie-footer-app-link {
        width: 190px;
        height: 60px;
    }
}

@media (max-width: 900px) {
    .tabie-footer-main {
        flex-direction: column !important;
    }

    .tabie-footer-brand,
    .tabie-footer-sitemap,
    .tabie-footer-links {
        max-width: none;
    }

    .tabie-footer-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tabie-footer-app-link {
        width: 160px;
        height: 52px;
    }

    .tabie-footer-bottom {
        flex-direction: column;
        align-items: flex-end;
    }

    .tabie-footer-copy {
        text-align: end;
    }
}

@media (max-width: 640px) {
    .tabie-footer-shell {
        padding: 1.2rem 0 1rem;
    }

    .tabie-footer-card {
        border-radius: 24px;
        padding: 1.5rem 1rem 1rem;
    }

    .tabie-footer-links {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.2rem;
    }

    .tabie-footer-connect {
        gap: 0.6rem;
        flex-wrap: nowrap;
        align-items: center;
    }

    .tabie-footer-app-link {
        width: clamp(88px, 28vw, 118px);
        height: auto;
        aspect-ratio: 2.9 / 1;
        flex: 0 1 auto;
    }

    .tabie-footer-apps {
        min-width: 0;
        gap: 0.45rem;
    }

    .tabie-footer-social {
        min-width: 0;
    }

    .tabie-footer-col-title {
        margin-bottom: 0.55rem;
    }

    .tabie-footer-social-link {
        width: 40px;
        height: 40px;
        font-size: 17px;
        flex: 0 0 auto;
    }

    .tabie-footer-scroll-btn {
        width: 54px;
        height: 54px;
        font-size: 20px;
    }

    .tabie-scroll-top-fab {
        width: 50px;
        height: 50px;
        font-size: 18px;
        bottom: 16px;
    }

}

@media (max-width: 360px) {
    .tabie-footer-connect {
        flex-wrap: wrap;
        justify-content: center;
    }

    .tabie-footer-social,
    .tabie-footer-apps {
        width: 100%;
        justify-content: center !important;
    }
}
