/* Header navigation styles */
.main-navigation li a {
    transition: all 0.3s ease;
}

.main-navigation li a:hover {
    color: #ED1A23 !important;
}

.main-navigation li a.is-active {
    text-decoration: underline;
    text-underline-offset: 5px;
}

/* Latin font for emails and numbers */
.latin-font,
.english-content {
    font-family: 'Arial', sans-serif !important;
    direction: ltr !important;
    display: inline-block;
    unicode-bidi: isolate;
}

/* Ensure emails and phone numbers always stay in English format */
.latin-font,
.english-content,
[data-i18n*="email"],
[data-i18n*="phone"],
[data-i18n*="Email"],
[data-i18n*="Phone"] {
    font-family: 'Arial', sans-serif !important;
    direction: ltr !important;
    display: inline-block;
    unicode-bidi: isolate;
}

/* Force LTR direction for contact information in both languages */
html[dir="rtl"] .latin-font,
html[dir="rtl"] .english-content,
html[dir="rtl"] [data-i18n*="email"],
html[dir="rtl"] [data-i18n*="phone"],
html[dir="rtl"] [data-i18n*="Email"],
html[dir="rtl"] [data-i18n*="Phone"] {
    direction: ltr !important;
    text-align: left !important;
    font-family: 'Arial', sans-serif !important;
}

/* Fix arrow direction for RTL/LTR */
html[dir="rtl"] .fx-pr-btn-1 i.fa-angle-right {
    transform: rotate(180deg);
}

html[dir="rtl"] .fx-slider-btn-2-item i.fa-angle-left,
html[dir="rtl"] .fx-slider-btn-2-item i.fa-angle-right,
html[dir="rtl"] .fx-client-1-slider-btn-left i.fa-angle-left,
html[dir="rtl"] .fx-client-1-slider-btn-right i.fa-angle-right {
    transform: rotate(180deg);
}

/* Fix RTL hover effects for client pagination buttons - only when NOT in swiper transition */
/* Left button RTL animations */
html[dir="rtl"] .fx-client-1-slider:not(.swiper-transitioning) .fx-client-1-slider-btn-left.fx-slider-btn-1-item i:first-child {
    transform: translateX(0px) rotate(180deg);
    transition: all 0.4s cubic-bezier(0.55, 0.085, 0, 0.99);
}

html[dir="rtl"] .fx-client-1-slider:not(.swiper-transitioning) .fx-client-1-slider-btn-left.fx-slider-btn-1-item i:last-child {
    transform: translateX(35px) rotate(180deg);
    transition: all 0.4s cubic-bezier(0.55, 0.085, 0, 0.99);
}

html[dir="rtl"] .fx-client-1-slider:not(.swiper-transitioning) .fx-client-1-slider-btn-left.fx-slider-btn-1-item:hover i:first-child {
    transform: translateX(-35px) rotate(180deg);
}

html[dir="rtl"] .fx-client-1-slider:not(.swiper-transitioning) .fx-client-1-slider-btn-left.fx-slider-btn-1-item:hover i:last-child {
    transform: translateX(0px) rotate(180deg);
}

/* Right button RTL animations - mirror the left button */
html[dir="rtl"] .fx-client-1-slider:not(.swiper-transitioning) .fx-client-1-slider-btn-right.fx-slider-btn-1-item i:first-child {
    transform: translateX(0px) rotate(180deg);
    transition: all 0.4s cubic-bezier(0.55, 0.085, 0, 0.99);
}

html[dir="rtl"] .fx-client-1-slider:not(.swiper-transitioning) .fx-client-1-slider-btn-right.fx-slider-btn-1-item i:last-child {
    transform: translateX(-35px) rotate(180deg);
    transition: all 0.4s cubic-bezier(0.55, 0.085, 0, 0.99);
}

html[dir="rtl"] .fx-client-1-slider:not(.swiper-transitioning) .fx-client-1-slider-btn-right.fx-slider-btn-1-item:hover i:first-child {
    transform: translateX(35px) rotate(180deg);
}

html[dir="rtl"] .fx-client-1-slider:not(.swiper-transitioning) .fx-client-1-slider-btn-right.fx-slider-btn-1-item:hover i:last-child {
    transform: translateX(0px) rotate(180deg);
}

/* Disable complex RTL button animations during swiper operations */
html[dir="rtl"] .fx-client-1-slider.swiper-transitioning .fx-client-1-slider-btn-left.fx-slider-btn-1-item i,
html[dir="rtl"] .fx-client-1-slider.swiper-transitioning .fx-client-1-slider-btn-right.fx-slider-btn-1-item i {
    transform: translateX(0px) rotate(180deg) !important;
    transition: none !important;
}

html[dir="rtl"] .txa-offcanvas-services-item i.fa-arrow-right {
    transform: rotate(180deg);
}

html[dir="rtl"] i.fa-arrow-up-right {
    transform: rotate(270deg);
}

/* Default navigation styles */
.main-navigation li a {
    color: black !important;
    font-weight: 600;
    transition: color 0.3s;
}

.main-navigation li a:hover {
    color: #ED1A23 !important;
}

/* Sticky header styles */
.txa_sticky_header.sticky-menu-active .main-navigation li a {
    color: #39B54A !important;
}

.txa_sticky_header.sticky-menu-active .main-navigation li a:hover {
    color: #ED1A23 !important;
}

/* Language toggle styles - Services page - AR/EN format with offset */
.lang-toggle {
    background: transparent !important;
    border: none !important;
    padding: 8px 12px !important;
    display: flex !important;
    align-items: baseline !important;
    gap: 0 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    transition: none !important;
    height: 40px !important;
    min-width: 60px !important;
    direction: ltr !important;
}

.lang-toggle:hover {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

.lang-toggle .lang-item {
    cursor: pointer;
    color: rgba(0, 0, 0, 0.6);
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
}

.lang-toggle .lang-item[data-lang="ar"] {
    transform: translateY(-3px);
    margin-right: 2px;
}

.lang-toggle .lang-item[data-lang="en"] {
    transform: translateY(3px);
    margin-left: 2px;
}

.lang-toggle .lang-item.active {
    color: #ED1A23;
    font-weight: 700;
}

.lang-toggle .lang-separator {
    color: rgba(0, 0, 0, 0.6);
    font-weight: 800;
    margin: 0 1px;
    font-size: 20px;
}

/* Sticky header language toggle */
.txa_sticky_header.sticky-menu-active .lang-toggle .lang-item {
    color: rgba(57, 181, 74, 0.6);
}

.txa_sticky_header.sticky-menu-active .lang-toggle .lang-item.active {
    color: #ED1A23;
}

/* Hide language toggle in header on mobile view */
@media (max-width: 991px) {
    .fx-header-3-action-link .lang-toggle {
        display: none !important;
    }
}

/* Sidebar language toggle styles - inline next to logo */
.txa-offcanvas-lang-toggle-inline .lang-toggle {
    justify-content: flex-end;
}

.txa-offcanvas-lang-toggle-inline .lang-toggle .lang-item {
    color: rgba(57, 181, 74, 0.6);
}

.txa-offcanvas-lang-toggle-inline .lang-toggle .lang-item.active {
    color: #ED1A23;
}

.txa-offcanvas-lang-toggle-inline .lang-toggle .lang-separator {
    color: rgba(57, 181, 74, 0.6);
}

/* Sidebar WhatsApp button row - full width */
.txa-offcanvas-whatsapp-row {
    display: flex;
}

.txa-offcanvas-whatsapp-row .whatsapp-btn {
    background-color: transparent !important;
    border-radius: 25px !important;
    border: 2px solid #39B54A !important;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.txa-offcanvas-whatsapp-row .whatsapp-btn:hover {
    border-color: #ED1A23 !important;
}

.txa-offcanvas-whatsapp-row .whatsapp-btn:hover span,
.txa-offcanvas-whatsapp-row .whatsapp-btn:hover i {
    color: #ED1A23;
}

.txa-offcanvas-whatsapp-row .whatsapp-btn span {
    color: #39B54A;
    font-weight: 600;
}

.txa-offcanvas-whatsapp-row .whatsapp-btn i {
    color: #39B54A;
}

/* RTL WhatsApp button in row */
html[dir="rtl"] .txa-offcanvas-whatsapp-row .whatsapp-btn {
    flex-direction: row-reverse !important;
}

.txa_sticky_header.sticky-menu-active .lang-toggle .lang-separator {
    color: rgba(57, 181, 74, 0.6);
}

/* WhatsApp button styles */
.whatsapp-btn {
    background-color: transparent !important;
    border-radius: 25px !important;
    border: 2px solid black !important;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    border-color: #ED1A23 !important;
}

.whatsapp-btn:hover span,
.whatsapp-btn:hover i {
    color: #ED1A23;
}

.whatsapp-btn span {
    color: black;
    font-weight: 600;
}

.whatsapp-btn {
    flex-direction: row !important;
}

.whatsapp-btn i {
    color: black;
    margin-left: 8px;
    margin-right: 0;
}

/* RTL WhatsApp icon positioning */
html[dir="rtl"] .whatsapp-btn {
    flex-direction: row-reverse !important;
}

html[dir="rtl"] .whatsapp-btn i {
    margin-left: 0 !important;
    margin-right: 8px !important;
}

html[dir="rtl"] .txa_sticky_header.sticky-menu-active .whatsapp-btn i {
    margin-left: 0 !important;
    margin-right: 8px !important;
}

/* WhatsApp button order - text first, icon second for LTR */
.fx-pr-btn-1.whatsapp-btn .text {
    order: 1 !important;
}

.fx-pr-btn-1.whatsapp-btn i {
    order: 2 !important;
}

/* WhatsApp button order for RTL - icon first, text second */
html[dir="rtl"] .fx-pr-btn-1.whatsapp-btn .text {
    order: 2 !important;
}

html[dir="rtl"] .fx-pr-btn-1.whatsapp-btn i {
    order: 1 !important;
}

/* Prevent WhatsApp icon from being flipped/rotated */
.whatsapp-btn i.fa-whatsapp,
.whatsapp-btn-cta i.fa-whatsapp {
    transform: none !important;
}

html[dir="rtl"] .whatsapp-btn i.fa-whatsapp,
html[dir="rtl"] .whatsapp-btn-cta i.fa-whatsapp {
    transform: none !important;
}

.txa_sticky_header.sticky-menu-active .whatsapp-btn {
    background-color: transparent !important;
    border: 2px solid #39B54A !important;
}

.txa_sticky_header.sticky-menu-active .whatsapp-btn span,
.txa_sticky_header.sticky-menu-active .whatsapp-btn i {
    color: #39B54A;
}

.whatsapp-btn:hover,
.txa_sticky_header.sticky-menu-active .whatsapp-btn:hover {
    border-color: #ED1A23 !important;
}

.whatsapp-btn:hover span,
.whatsapp-btn:hover i,
.txa_sticky_header.sticky-menu-active .whatsapp-btn:hover span,
.txa_sticky_header.sticky-menu-active .whatsapp-btn:hover i {
    color: #ED1A23 !important;
}

/* Explicitly handle logo swap */
.fx-header-3-main-logo .default-logo {
    display: block;
}

.fx-header-3-main-logo .sticky-logo {
    display: none;
}

.txa_sticky_header.sticky-menu-active .fx-header-3-main-logo .default-logo {
    display: none;
}

.txa_sticky_header.sticky-menu-active .fx-header-3-main-logo .sticky-logo {
    display: block;
}

/* Arabic text spacing fixes */
html[dir="rtl"] .fx-scn-title-2 {
    line-height: 1.4 !important;
    margin-bottom: 25px !important;
}

html[dir="rtl"] .fx-project-2-slider-item-box h5.title {
    line-height: 1.4 !important;
    margin-bottom: 15px !important;
}

html[dir="rtl"] .fx-project-2-slider-item-box p.disc {
    line-height: 1.6 !important;
    margin-bottom: 20px !important;
}

html[dir="rtl"] .fx-client-4-title {
    line-height: 1.5 !important;
    margin-bottom: 30px !important;
}

html[dir="rtl"] .fx-scn-title-3 {
    line-height: 1.4 !important;
    margin-bottom: 20px !important;
}

html[dir="rtl"] .fx-project-6-item-content h2.item-title {
    line-height: 1.4 !important;
    margin-bottom: 15px !important;
}

html[dir="rtl"] .fx-project-6-item-content p.item-disc {
    line-height: 1.6 !important;
    margin-bottom: 20px !important;
}

html[dir="rtl"] .fx-footer-1-contact {
    line-height: 1.6 !important;
}

html[dir="rtl"] .fx-footer-1-contact li {
    margin-bottom: 15px !important;
}

html[dir="rtl"] .fx-footer-1-menu-2 li {
    margin-bottom: 8px !important;
}

html[dir="rtl"] .fx-cta-1-content-title {
    line-height: 1.4 !important;
    margin-bottom: 25px !important;
}

html[dir="rtl"] .txa-offcanvas-services-item {
    line-height: 1.5 !important;
    margin-bottom: 10px !important;
}

/* Fix Arabic navigation buttons - swap positions and arrows */
html[dir="rtl"] .fx-project-2-slider-btn {
    display: flex !important;
    flex-direction: row-reverse !important;
}

html[dir="rtl"] .fx-p2-slider-prev {
    order: 3 !important;
}

html[dir="rtl"] .fx-p2-slider-next {
    order: 1 !important;
}

html[dir="rtl"] .fx-p2-scrollbar {
    order: 2 !important;
}

/* Fix arrow directions for RTL navigation */
html[dir="rtl"] .fx-p2-slider-prev i.fa-angle-left {
    transform: rotate(180deg) !important;
}

html[dir="rtl"] .fx-p2-slider-next i.fa-angle-right {
    transform: rotate(180deg) !important;
}

/* Footer location link styling */
.fx-footer-1-contact li a {
    color: inherit;
    transition: color 0.3s ease;
}

.fx-footer-1-contact li a:hover {
    color: #ED1A23;
}

/* CTA WhatsApp button styling */
.whatsapp-btn-cta {
    background-color: transparent !important;
    border-radius: 35px !important;
    border: 3px solid white !important;
    padding: 18px 45px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    text-decoration: none !important;
    width: 100%;
    max-width: 400px;
    font-size: 1.1rem;
    min-height: 65px;
}

.whatsapp-btn-cta span {
    color: white !important;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.4s ease;
}

.whatsapp-btn-cta i {
    color: white !important;
    margin-left: 12px;
    font-size: 1.4rem;
    transition: all 0.4s ease;
}

.whatsapp-btn-cta:hover {
    background-color: transparent !important;
    border-color: #25D366 !important;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn-cta:hover span,
.whatsapp-btn-cta:hover i {
    color: #25D366 !important;
}

/* RTL WhatsApp CTA icon positioning - icon on left in RTL, right in LTR */
.whatsapp-btn-cta {
    flex-direction: row !important;
}

.whatsapp-btn-cta i {
    margin-left: 12px !important;
    margin-right: 0 !important;
}

html[dir="rtl"] .whatsapp-btn-cta {
    flex-direction: row-reverse !important;
}

html[dir="rtl"] .whatsapp-btn-cta i {
    margin-left: 0 !important;
    margin-right: 12px !important;
}

/* WhatsApp CTA button order - text first, icon second for LTR */
.fx-pr-btn-1.whatsapp-btn-cta .text {
    order: 1 !important;
}

.fx-pr-btn-1.whatsapp-btn-cta i {
    order: 2 !important;
}

/* WhatsApp CTA button order for RTL - icon first, text second */
html[dir="rtl"] .fx-pr-btn-1.whatsapp-btn-cta .text {
    order: 2 !important;
}

html[dir="rtl"] .fx-pr-btn-1.whatsapp-btn-cta i {
    order: 1 !important;
}

/* ===== SERVICES CARDS DESKTOP VIEW - WHITE ARROWS ===== */
.fx-project-6-item-content .item-btn .fx-pr-btn-1 i {
    color: #fff !important;
}

/* ===== SERVICES CARDS MOBILE & RESPONSIVE DESIGN ===== */

/* Remove white background from cards and make transparent */
@media (max-width: 991px) {
    .fx-project-6-item-content {
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        text-align: center !important;
    }

    /* All text white and centered in mobile view with glow effects */
    .fx-project-6-item-content .item-count {
        color: rgba(255, 255, 255, 0.8) !important;
        justify-content: center !important;
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.6) !important;
    }

    .fx-project-6-item-content .item-title {
        color: #fff !important;
        font-size: 60px !important;
        font-weight: 700 !important;
        text-align: center !important;
        text-shadow: 0 0 15px rgba(255, 255, 255, 0.9), 0 0 30px rgba(255, 255, 255, 0.7) !important;
    }

    .fx-project-6-item-content .item-title a {
        color: #fff !important;
    }

    .fx-project-6-item-content .item-title a span {
        color: #fff !important;
    }

    .fx-project-6-item-content .item-disc {
        color: rgba(255, 255, 255, 0.9) !important;
        opacity: 1 !important;
        text-align: center !important;
        text-shadow: 0 0 8px rgba(255, 255, 255, 0.7), 0 0 16px rgba(255, 255, 255, 0.5) !important;
    }

    /* Button styling: transparent background, white border, white text, white arrow with glow */
    .fx-project-6-item-content .item-btn {
        text-align: center !important;
    }

    .fx-project-6-item-content .item-btn .fx-pr-btn-1 {
        background: transparent !important;
        border: 2px solid #fff !important;
        color: #fff !important;
        transition: all 0.3s ease !important;
        text-shadow: 0 0 8px rgba(255, 255, 255, 0.8), 0 0 16px rgba(255, 255, 255, 0.6) !important;
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.3), inset 0 0 10px rgba(255, 255, 255, 0.1) !important;
    }

    .fx-project-6-item-content .item-btn .fx-pr-btn-1 .text::before {
        color: #fff !important;
    }

    .fx-project-6-item-content .item-btn .fx-pr-btn-1 .text::after {
        color: var(--fx-clr-pr-2) !important;
    }

    .fx-project-6-item-content .item-btn .fx-pr-btn-1 i {
        color: #fff !important;
        transition: all 0.3s ease !important;
    }

    /* Hover effects: green border, green text, green arrow with green glow (NO background) - ONLY FOR BUTTONS */
    .fx-project-6-item-content .item-btn .fx-pr-btn-1:hover {
        background: transparent !important;
        border-color: var(--fx-clr-pr-1) !important;
        color: var(--fx-clr-pr-1) !important;
        text-shadow: 0 0 8px rgba(57, 181, 74, 0.8), 0 0 16px rgba(57, 181, 74, 0.6) !important;
        box-shadow: 0 0 15px rgba(57, 181, 74, 0.5), inset 0 0 10px rgba(57, 181, 74, 0.2) !important;
    }

    .fx-project-6-item-content .item-btn .fx-pr-btn-1:hover i {
        color: var(--fx-clr-pr-1) !important;
    }
}

/* Additional styling for very small mobile devices */
@media (max-width: 575px) {
    .fx-project-6-item-content {
        text-align: center !important;
    }

    .fx-project-6-item-content .item-btn .fx-pr-btn-1 {
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
        padding: 15px 20px !important;
        background: transparent !important;
        border: 2px solid #fff !important;
        text-shadow: 0 0 8px rgba(255, 255, 255, 0.8), 0 0 16px rgba(255, 255, 255, 0.6) !important;
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.3), inset 0 0 10px rgba(255, 255, 255, 0.1) !important;
    }

    .fx-project-6-item-content .item-btn .fx-pr-btn-1:hover {
        background: transparent !important;
        border-color: var(--fx-clr-pr-1) !important;
        color: var(--fx-clr-pr-1) !important;
        text-shadow: 0 0 8px rgba(57, 181, 74, 0.8), 0 0 16px rgba(57, 181, 74, 0.6) !important;
        box-shadow: 0 0 15px rgba(57, 181, 74, 0.5), inset 0 0 10px rgba(57, 181, 74, 0.2) !important;
    }

    .fx-project-6-item-content .item-title {
        font-size: 45px !important;
        font-weight: 700 !important;
        line-height: 1.2 !important;
        text-align: center !important;
        text-shadow: 0 0 15px rgba(255, 255, 255, 0.9), 0 0 30px rgba(255, 255, 255, 0.7) !important;
    }
}

/* Ensure consistent styling for all dynamic screen sizes */
@media only screen and (min-width: 768px) and (max-width: 991px) {
    .fx-project-6-item-content {
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        text-align: center !important;
    }

    .fx-project-6-item-content .item-count {
        color: rgba(255, 255, 255, 0.8) !important;
        justify-content: center !important;
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.6) !important;
    }

    .fx-project-6-item-content .item-title {
        color: #fff !important;
        font-size: 55px !important;
        font-weight: 700 !important;
        text-align: center !important;
        text-shadow: 0 0 15px rgba(255, 255, 255, 0.9), 0 0 30px rgba(255, 255, 255, 0.7) !important;
    }

    .fx-project-6-item-content .item-title a,
    .fx-project-6-item-content .item-title a span {
        color: #fff !important;
    }

    .fx-project-6-item-content .item-disc {
        color: rgba(255, 255, 255, 0.9) !important;
        opacity: 1 !important;
        text-align: center !important;
        text-shadow: 0 0 8px rgba(255, 255, 255, 0.7), 0 0 16px rgba(255, 255, 255, 0.5) !important;
    }

    .fx-project-6-item-content .item-btn {
        text-align: center !important;
    }

    .fx-project-6-item-content .item-btn .fx-pr-btn-1 {
        background: transparent !important;
        border: 2px solid #fff !important;
        color: #fff !important;
        text-shadow: 0 0 8px rgba(255, 255, 255, 0.8), 0 0 16px rgba(255, 255, 255, 0.6) !important;
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.3), inset 0 0 10px rgba(255, 255, 255, 0.1) !important;
    }

    .fx-project-6-item-content .item-btn .fx-pr-btn-1 .text::before {
        color: #fff !important;
    }

    .fx-project-6-item-content .item-btn .fx-pr-btn-1 i {
        color: #fff !important;
    }

    .fx-project-6-item-content .item-btn .fx-pr-btn-1:hover {
        background: transparent !important;
        border-color: var(--fx-clr-pr-1) !important;
        color: var(--fx-clr-pr-1) !important;
        text-shadow: 0 0 8px rgba(57, 181, 74, 0.8), 0 0 16px rgba(57, 181, 74, 0.6) !important;
        box-shadow: 0 0 15px rgba(57, 181, 74, 0.5), inset 0 0 10px rgba(57, 181, 74, 0.2) !important;
    }

    .fx-project-6-item-content .item-btn .fx-pr-btn-1:hover i {
        color: var(--fx-clr-pr-1) !important;
    }
}

/* Mobile sidebar toggle button styling - Services page - 3 horizontal lines */
.fx-header-3-action-link .fx-menu-btn-1 {
    background: transparent !important;
    border: none !important;
    padding: 8px !important;
    width: 40px !important;
    height: 40px !important;
    display: none !important;
    /* Hidden by default, shown dynamically */
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    transition: all 0.3s ease;
    margin-left: 10px !important;
}

/* Show mobile menu button only when navigation is hidden */
@media (max-width: 1200px) {
    .fx-header-3-action-link .fx-menu-btn-1 {
        display: flex !important;
    }

    .fx-header-3-action-link .whatsapp-btn {
        display: none !important;
    }
}

.fx-header-3-action-link .fx-menu-btn-1 span {
    width: 20px !important;
    height: 2px !important;
    background: black !important;
    border-radius: 1px !important;
    transition: all 0.3s ease;
    display: block !important;
}

/* Hide extra spans - only show first 3 */
.fx-header-3-action-link .fx-menu-btn-1 span:nth-child(n+4) {
    display: none !important;
}

/* Sticky header mobile toggle button */
.txa_sticky_header.sticky-menu-active .fx-header-3-action-link .fx-menu-btn-1 {
    background: transparent !important;
    border: none !important;
}

.txa_sticky_header.sticky-menu-active .fx-header-3-action-link .fx-menu-btn-1 span {
    background: #39B54A !important;
}

/* Hover effects for mobile toggle button */
.fx-header-3-action-link .fx-menu-btn-1:hover span,
.txa_sticky_header.sticky-menu-active .fx-header-3-action-link .fx-menu-btn-1:hover span {
    background: #ED1A23 !important;
}

/* Sidebar WhatsApp button styling - matches header style */
.txa-offcanvas-whatsapp .whatsapp-btn {
    background-color: transparent !important;
    border-radius: 25px !important;
    border: 2px solid #39B54A !important;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-direction: row !important;
    text-decoration: none !important;
    min-width: 200px;
}

.txa-offcanvas-whatsapp .whatsapp-btn:hover {
    border-color: #ED1A23 !important;
}

.txa-offcanvas-whatsapp .whatsapp-btn:hover span,
.txa-offcanvas-whatsapp .whatsapp-btn:hover i {
    color: #ED1A23;
}

.txa-offcanvas-whatsapp .whatsapp-btn span {
    color: #39B54A;
    font-weight: 600;
}

.txa-offcanvas-whatsapp .whatsapp-btn i {
    color: #39B54A;
    margin-left: 8px;
    margin-right: 0;
}

/* RTL WhatsApp icon positioning for sidebar */
html[dir="rtl"] .txa-offcanvas-whatsapp .whatsapp-btn {
    flex-direction: row-reverse !important;
}

html[dir="rtl"] .txa-offcanvas-whatsapp .whatsapp-btn i {
    margin-left: 0 !important;
    margin-right: 8px !important;
}

/* Prevent WhatsApp icon from being flipped/rotated in sidebar */
.txa-offcanvas-whatsapp .whatsapp-btn i.fa-brands.fa-whatsapp,
.txa-offcanvas-whatsapp .whatsapp-btn i[class*="fa-whatsapp"] {
    transform: none !important;
}

html[dir="rtl"] .txa-offcanvas-whatsapp .whatsapp-btn i.fa-brands.fa-whatsapp,
html[dir="rtl"] .txa-offcanvas-whatsapp .whatsapp-btn i[class*="fa-whatsapp"] {
    transform: none !important;
}

/* Sidebar RTL/LTR Direction Control */
.txa-offcanvas-box {
    right: -100% !important;
    left: auto !important;
}

html[dir="rtl"] .txa-offcanvas-box {
    left: -100% !important;
    right: auto !important;
}

.txa-offcanvas-box.offcanvas_box_active {
    right: 0 !important;
    left: auto !important;
}

html[dir="rtl"] .txa-offcanvas-box.offcanvas_box_active {
    left: 0 !important;
    right: auto !important;
}

/* Sidebar content direction */
.txa-offcanvas-box-container {
    direction: inherit;
}

/* Sidebar WhatsApp button - same size as header */
.txa-offcanvas-whatsapp .whatsapp-btn {
    padding: 8px 20px !important;
}

/* ========================================
                           RESPONSIVE TYPOGRAPHY - SMART SCALING
                           ======================================== */

/* Main Section Titles - Get bigger on smaller screens */
@media only screen and (max-width: 1199px) {
    .fx-scn-title-3 {
        font-size: 68px !important;
    }
}

@media only screen and (max-width: 991px) {
    .fx-scn-title-3 {
        font-size: 72px !important;
        line-height: 1.2 !important;
    }
}

@media only screen and (max-width: 767px) {
    .fx-scn-title-3 {
        font-size: 76px !important;
        line-height: 1.1 !important;
    }
}

@media only screen and (max-width: 575px) {
    .fx-scn-title-3 {
        font-size: 80px !important;
        line-height: 1.05 !important;
    }
}

@media only screen and (max-width: 480px) {
    .fx-scn-title-3 {
        font-size: 84px !important;
        line-height: 1.0 !important;
    }
}

/* Sub Titles (h2) - Get bigger on smaller screens */
@media only screen and (max-width: 1199px) {
    .fx-heading-2 {
        font-size: 44px !important;
    }
}

@media only screen and (max-width: 991px) {
    .fx-heading-2 {
        font-size: 48px !important;
        line-height: 1.2 !important;
    }
}

@media only screen and (max-width: 767px) {
    .fx-heading-2 {
        font-size: 52px !important;
        line-height: 1.15 !important;
    }
}

@media only screen and (max-width: 575px) {
    .fx-heading-2 {
        font-size: 56px !important;
        line-height: 1.1 !important;
    }
}

@media only screen and (max-width: 480px) {
    .fx-heading-2 {
        font-size: 60px !important;
        line-height: 1.05 !important;
    }
}

/* Service Item Titles - Special scaling */
@media only screen and (max-width: 1199px) {
    .item-title {
        font-size: 44px !important;
    }
}

@media only screen and (max-width: 991px) {
    .item-title {
        font-size: 48px !important;
        line-height: 1.2 !important;
    }
}

@media only screen and (max-width: 767px) {
    .item-title {
        font-size: 52px !important;
        line-height: 1.15 !important;
    }
}

@media only screen and (max-width: 575px) {
    .item-title {
        font-size: 56px !important;
        line-height: 1.1 !important;
    }
}

@media only screen and (max-width: 480px) {
    .item-title {
        font-size: 60px !important;
        line-height: 1.05 !important;
    }
}

/* Paragraphs - Same size as desktop across all screens */
.fx-para-1,
.scn-disc,
.item-disc {
    font-size: inherit !important;
    line-height: inherit !important;
}

/* Small subtitles - Moderate scaling */
@media only screen and (max-width: 991px) {
    .fx-subtitle-1 {
        font-size: 16px !important;
    }
}

@media only screen and (max-width: 767px) {
    .fx-subtitle-1 {
        font-size: 17px !important;
    }
}

@media only screen and (max-width: 575px) {
    .fx-subtitle-1 {
        font-size: 18px !important;
    }
}

/* Client title scaling */
@media only screen and (max-width: 991px) {
    .fx-client-4-title {
        font-size: 30px !important;
    }
}

@media only screen and (max-width: 767px) {
    .fx-client-4-title {
        font-size: 32px !important;
    }
}

@media only screen and (max-width: 575px) {
    .fx-client-4-title {
        font-size: 34px !important;
    }
}

/* Counter text - Same size as desktop across all screens */
.fx-counter-1-item-disc {
    font-size: inherit !important;
}



.client-logo-img {
    height: auto;
    transition: all 0.3s ease;
    margin: 0 15px;
    opacity: 0.8;
}

.client-logo-img:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Fix SVG visibility on dark backgrounds */
.fx-client-1-slider svg {
    fill: white !important;
    width: 120px !important;
    height: auto !important;
}

.fx-client-1-slider svg path,
.fx-client-1-slider svg rect,
.fx-client-1-slider svg g {
    fill: white !important;
}

.fx-client-1-slider svg:hover {
    transform: scale(1.05);
}

/* English Fonts in Arabic fix */
html[dir="rtl"] .latin-font,
html[dir="rtl"] .english-content,
html[dir="rtl"] [data-i18n*="email"],
html[dir="rtl"] [data-i18n*="phone"],
html[dir="rtl"] .no-arabic-number {
    font-family: var(--fx-ff-heading, 'Inter', sans-serif) !important;
}

/* Fix Services Project Cards RTL Alignment */
@media (min-width: 992px) {
    html[dir="rtl"] .fx-project-6-item-content {
        text-align: right !important;
        direction: rtl !important;
    }

    html[dir="rtl"] .fx-project-6-item-content .item-title,
    html[dir="rtl"] .fx-project-6-item-content .item-disc,
    html[dir="rtl"] .fx-project-6-item-content .item-btn {
        text-align: right !important;
    }
}