﻿

/* Safe, page-scoped RTL polish for index-3.html. */
html[dir="rtl"] body.home-three-rtl {
    --tg-body-font-family: var(--font-yekanbakh), sans-serif;
    --tg-heading-font-family: var(--font-lalezar), sans-serif;
    --tg-berlin-font-family: var(--font-yekanbakh), sans-serif;
    direction: rtl;
    text-align: right;
    font-family: var(--tg-body-font-family);
    line-height: 1.85;
}

html[dir="rtl"] body.home-three-rtl h1,
html[dir="rtl"] body.home-three-rtl h2,
html[dir="rtl"] body.home-three-rtl h3,
html[dir="rtl"] body.home-three-rtl h4,
html[dir="rtl"] body.home-three-rtl h5,
html[dir="rtl"] body.home-three-rtl h6 {
    font-family: var(--tg-heading-font-family);
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: 0;
    text-transform: none;
}

html[dir="rtl"] body.home-three-rtl p,
html[dir="rtl"] body.home-three-rtl a,
html[dir="rtl"] body.home-three-rtl button,
html[dir="rtl"] body.home-three-rtl input,
html[dir="rtl"] body.home-three-rtl textarea {
    letter-spacing: 0;
}

/* Desktop header only. Mobile and off-canvas state rules remain untouched. */
@media (min-width: 1200px) {
    html[dir="rtl"] body.home-three-rtl .tgmenu__nav {
        direction: rtl;
        display: flex;
        align-items: center;
    }

    html[dir="rtl"] body.home-three-rtl .tgmenu__nav > .logo {
        order: 1;
        flex: 0 0 auto;
        margin: 0 0 0 34px;
    }

    html[dir="rtl"] body.home-three-rtl .tgmenu__navbar-wrap {
        order: 2;
        flex: 1 1 auto;
        min-width: 0;
    }

    html[dir="rtl"] body.home-three-rtl .tgmenu__navbar-wrap > ul.navigation {
        direction: rtl;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        flex-direction: row;
        gap: 0 25px;
        margin: 0;
        padding: 0;
    }

    html[dir="rtl"] body.home-three-rtl .tgmenu__navbar-wrap > ul.navigation > li {
        margin: 0;
    }

    html[dir="rtl"] body.home-three-rtl .tgmenu__navbar-wrap ul li a {
        font-family: var(--tg-body-font-family);
        font-size: 15px;
        font-weight: 650;
        white-space: nowrap;
    }

    html[dir="rtl"] body.home-three-rtl .tgmenu__navbar-wrap ul li .sub-menu {
        right: 0;
        left: auto;
        min-width: 220px;
        text-align: right;
        transform-origin: right top;
    }

    html[dir="rtl"] body.home-three-rtl .tgmenu__navbar-wrap ul li .sub-menu .sub-menu {
        right: 100%;
        left: auto;
    }

    html[dir="rtl"] body.home-three-rtl .tgmenu__action {
        order: 3;
        flex: 0 0 auto;
        margin: 0 28px 0 0;
    }

    html[dir="rtl"] body.home-three-rtl .tgmenu__action > ul {
        margin: 0;
    }
}

html[dir="rtl"] body.home-three-rtl .tg-btn-4 span {
    font-family: var(--tg-body-font-family);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}

html[dir="rtl"] body.home-three-rtl .banner__content,
html[dir="rtl"] body.home-three-rtl .slider__content,
html[dir="rtl"] body.home-three-rtl .section__title.text-start,
html[dir="rtl"] body.home-three-rtl .section__title.text-xl-start {
    text-align: right !important;
}

html[dir="rtl"] body.home-three-rtl .banner__content .title {
    font-size: clamp(3rem, 5vw, 5.25rem);
    line-height: 1.2;
}

html[dir="rtl"] body.home-three-rtl .banner__content p,
html[dir="rtl"] body.home-three-rtl .about__content-three p {
    font-size: 17px;
    line-height: 1.95;
}

html[dir="rtl"] body.home-three-rtl .section__title .sub-title2 {
    font-family: var(--tg-body-font-family);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.7;
}

html[dir="rtl"] body.home-three-rtl .section__title .title2 {
    font-size: clamp(2.25rem, 3.5vw, 3.75rem);
    line-height: 1.35;
}

/* Keep the original physical geometry while localizing the content itself. */
html[dir="rtl"] body.home-three-rtl .upcoming-match__item2 .upcoming-match__wrap,
html[dir="rtl"] body.home-three-rtl .upcoming-match__item2 .upcoming-match__content {
    direction: ltr;
}

html[dir="rtl"] body.home-three-rtl .upcoming-match__item2 .team--info {
    direction: rtl;
}

html[dir="rtl"] body.home-three-rtl .upcoming-match__item2 .info-left .social-wrap {
    direction: rtl;
    align-items: center;
}

html[dir="rtl"] body.home-three-rtl .video__area .row:first-child > .col-lg-auto:last-child {
    text-align: right !important;
}

html[dir="rtl"] body.home-three-rtl .video-tab-wrap {
    direction: ltr;
    flex-direction: row-reverse;
    justify-content: flex-start;
}

html[dir="rtl"] body.home-three-rtl .video__area .section__title .sub-title2,
html[dir="rtl"] body.home-three-rtl .video__area .section__title .title2,
html[dir="rtl"] body.home-three-rtl .video-tab-wrap .video-tab-label,
html[dir="rtl"] body.home-three-rtl .video-card-title .video-card-title-text {
    direction: rtl;
    unicode-bidi: plaintext;
    text-align: right;
}

html[dir="rtl"] body.home-three-rtl .scroll__top i.fa-angle-up {
    transform: none;
}

html[dir="rtl"] body.home-three-rtl .service-card-details,
html[dir="rtl"] body.home-three-rtl .blog-card-content,
html[dir="rtl"] body.home-three-rtl .team__content,
html[dir="rtl"] body.home-three-rtl .footer-widget,
html[dir="rtl"] body.home-three-rtl .copyright__text {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] body.home-three-rtl .service-card-meta,
html[dir="rtl"] body.home-three-rtl .service-card-tag,
html[dir="rtl"] body.home-three-rtl .blog-post-meta ul,
html[dir="rtl"] body.home-three-rtl .copyright__menu ul {
    direction: rtl;
}

html[dir="rtl"] body.home-three-rtl .footer-text {
    margin-right: 0;
    margin-left: 30px;
}

html[dir="rtl"] body.home-three-rtl .copyright__menu ul {
    justify-content: flex-start !important;
}

@media (max-width: 1199.98px) {
    html[dir="rtl"] body.home-three-rtl .banner__content,
    html[dir="rtl"] body.home-three-rtl .section__title.text-start,
    html[dir="rtl"] body.home-three-rtl .section__title.text-xl-start {
        text-align: center !important;
    }

    html[dir="rtl"] body.home-three-rtl .banner__content p {
        margin-right: auto;
        margin-left: auto;
    }
}

@media (max-width: 767.98px) {
    html[dir="rtl"] body.home-three-rtl .banner__content .title {
        font-size: clamp(2.6rem, 13vw, 4rem);
    }

    html[dir="rtl"] body.home-three-rtl .banner__content p,
    html[dir="rtl"] body.home-three-rtl .about__content-three p {
        font-size: 16px;
        line-height: 1.9;
    }

    html[dir="rtl"] body.home-three-rtl .footer-widget,
    html[dir="rtl"] body.home-three-rtl .copyright__text {
        text-align: center;
    }

    html[dir="rtl"] body.home-three-rtl .footer-text {
        margin-left: 0;
    }

    html[dir="rtl"] body.home-three-rtl .copyright__menu ul {
        justify-content: center !important;
    }
}
