/**
 * Footer RTL Fix
 * راست‌چین کردن فوتر برای زبان فارسی
 */

/* راست‌چین کردن لینک‌های فوتر */
.footer-links ul {
    text-align: right !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
    list-style: none;
    margin: 0;
}

.footer-links ul li {
    text-align: right !important;
    direction: rtl !important;
}

.footer-links ul li a {
    text-align: right !important;
    direction: rtl !important;
    display: block;
}

/* راست‌چین کردن عنوان‌های فوتر */
.footer-links h5.linktitle {
    text-align: right !important;
    direction: rtl !important;
}

/* راست‌چین کردن کل بخش footer-links */
.footer-links {
    text-align: right !important;
    direction: rtl !important;
}

/* راست‌چین کردن بخش کپی‌رایت */
.footercreditnote {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    text-align: right !important;
    direction: rtl !important;
}

.footercreditnote > div {
    text-align: right !important;
    direction: rtl !important;
}

.footercreditnote p {
    text-align: right !important;
    direction: rtl !important;
    margin: 0;
}

.footercreditnote a {
    text-align: right !important;
    direction: rtl !important;
}

/* راست‌چین کردن لینک‌های پایین فوتر */
.linkftsw {
    text-align: right !important;
    direction: rtl !important;
}

.linkftsw ul.list-h-styled {
    display: flex !important;
    gap: 20px;
    justify-content: flex-end !important;
    text-align: right !important;
    direction: rtl !important;
    padding: 0;
    margin: 0;
    list-style: none;
}

.linkftsw ul.list-h-styled li {
    text-align: right !important;
    direction: rtl !important;
}

.linkftsw ul.list-h-styled li a {
    text-align: right !important;
    direction: rtl !important;
}

/* راست‌چین کردن متن توضیحات */
.subsc-div-sw {
    text-align: right !important;
    direction: rtl !important;
}

.subsc-div-sw h4,
.subsc-div-sw p {
    text-align: right !important;
    direction: rtl !important;
}

/* راست‌چین کردن بخش برند */
.footer-brand-info {
    text-align: right !important;
    direction: rtl !important;
}

/* راست‌چین کردن لوگو */
.footer-logo-sw {
    text-align: right !important;
    direction: rtl !important;
}

/* راست‌چین کردن career link */
.career-link-btn-sw {
    text-align: right !important;
    direction: rtl !important;
}

.career-link-btn-sw span {
    text-align: right !important;
    direction: rtl !important;
}

/* راست‌چین کردن متن متحرک */
.moving-text-box {
    text-align: right !important;
    direction: rtl !important;
    overflow: hidden;
    position: relative;
}

.moving-text {
    text-align: right !important;
    direction: rtl !important;
    white-space: nowrap;
    animation: slide-right-rtl 140s linear infinite !important;
    -webkit-animation: slide-right-rtl 140s linear infinite !important;
}

/* Animation برای RTL - از راست به چپ */
@keyframes slide-right-rtl {
    0% {
        transform: translateX(0);
        -webkit-transform: translateX(0);
    }
    100% {
        transform: translateX(100%);
        -webkit-transform: translateX(100%);
    }
}

@-webkit-keyframes slide-right-rtl {
    0% {
        -webkit-transform: translateX(0);
        transform: translateX(0);
    }
    100% {
        -webkit-transform: translateX(100%);
        transform: translateX(100%);
    }
}

/* راست‌چین کردن آدرس‌ها */
.ft-address-blocks {
    text-align: right !important;
    direction: rtl !important;
}

/* راست‌چین کردن award badges */
.award-badge-block {
    justify-content: flex-start !important;
    text-align: right !important;
    direction: rtl !important;
}

/* راست‌چین کردن تمام footer */
footer {
    text-align: right !important;
    direction: rtl !important;
}

footer * {
    direction: rtl !important;
}

/* راست‌چین کردن row ها در footer */
footer .row {
    direction: rtl !important;
}

footer .col-lg-3,
footer .col-lg-4,
footer .col-lg-6,
footer .col-md-6 {
    text-align: right !important;
    direction: rtl !important;
}

/* Dark Mode Compatibility */
body.dark .footer-links ul li a,
body.darkmode .footer-links ul li a {
    color: var(--white-color);
}

body.dark .footer-links h5.linktitle,
body.darkmode .footer-links h5.linktitle {
    color: var(--white-color);
}

body.dark .footercreditnote p,
body.darkmode .footercreditnote p {
    color: var(--white-color);
}

body.dark .footercreditnote a,
body.darkmode .footercreditnote a {
    color: var(--white-color);
}

body.dark .subsc-div-sw h4,
body.darkmode .subsc-div-sw h4 {
    color: var(--white-color);
}

body.dark .subsc-div-sw p,
body.darkmode .subsc-div-sw p {
    color: var(--white-color);
}

/* Responsive */
@media (max-width: 768px) {
    .footercreditnote {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footercreditnote p {
        text-align: center;
    }
    
    .linkftsw ul.list-h-styled {
        justify-content: center;
    }
}
