@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&family=Lalezar&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lalezar&display=swap');


/* =====================================
   TDS JO - ARABIC DESIGN FIX
   ===================================== */

/* Arabic Typography */

html[lang^="ar"] body,
html[lang^="ar"] p,
html[lang^="ar"] a,
html[lang^="ar"] button,
html[lang^="ar"] input,
html[lang^="ar"] textarea,
html[lang^="ar"] select {
    font-family: 'IBM Plex Sans Arabic', sans-serif !important;
    letter-spacing: 0 !important;
}

html[lang^="ar"] h1,
html[lang^="ar"] h2,
html[lang^="ar"] h3,
html[lang^="ar"] h1 span,
html[lang^="ar"] h2 span {
    font-family: 'Lalezar', sans-serif !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    line-height: 1.25 !important;
}

/* Horizontal Overflow */

html[lang^="ar"],
html[lang^="ar"] body {
    overflow-x: clip !important;
}

/* Navigation */

html[lang^="ar"] .site-header nav a {
    font-size: 15px !important;
    font-weight: 600 !important;
}

html[lang^="ar"] .site-header button {
    font-size: 15px !important;
}

/* Arabic Hero - Desktop */

@media (min-width: 1025px) {

    html[lang^="ar"] .hero-layout {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
        direction: ltr !important;
        align-items: center !important;
        gap: 40px !important;
        position: relative !important;
    }

    html[lang^="ar"] .hero-copy {
        grid-column: 2 !important;
        grid-row: 1 !important;
        direction: rtl !important;
        text-align: right !important;
        position: relative !important;
        transform: none !important;
        min-width: 0 !important;
        z-index: 5 !important;
    }

    html[lang^="ar"] .hero-visual {
        grid-column: 1 !important;
        grid-row: 1 !important;
        position: relative !important;
        inset: auto !important;
        width: 100% !important;
        height: 650px !important;
        transform: none !important;
        opacity: 1 !important;
        min-width: 0 !important;
    }

    html[lang^="ar"] .hero-visual img {
        position: relative !important;
        inset: auto !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        transform: none !important;
        filter: brightness(0.85) !important;
        opacity: 1 !important;
    }
}

/* Hero Heading */

html[lang^="ar"] .hero h1 {
    font-size: clamp(42px, 5vw, 82px) !important;
    line-height: 1.2 !important;
    margin-bottom: 25px !important;
}

/* Hero Description */

html[lang^="ar"] .hero-copy p {
    font-size: 18px !important;
    font-weight: 400 !important;
    line-height: 1.9 !important;
}

/* Buttons */

html[lang^="ar"] .hero a,
html[lang^="ar"] button {
    font-size: 16px !important;
    font-weight: 600 !important;
}

/* Section Headings */

html[lang^="ar"] .section h2 {
    font-size: clamp(32px, 4vw, 52px) !important;
}

html[lang^="ar"] .section p {
    font-size: 17px !important;
    line-height: 1.9 !important;
}

html[lang^="ar"] .section-kicker {
    font-size: 14px !important;
    letter-spacing: 0 !important;
}

/* Technology Partners */

html[lang^="ar"] .technology-partners .partners-heading,
html[lang^="ar"] .technology-partners h2,
html[lang^="ar"] .technology-partners p,
html[lang^="ar"] .technology-partners .section-kicker {
    text-align: right !important;
}

html[lang^="ar"] .technology-partners .partners-heading,
html[lang^="ar"] .technology-partners .partners-grid {
    margin-right: 0 !important;
    margin-left: auto !important;
}

/* Tablet and Mobile */

@media (max-width: 1024px) {

    html[lang^="ar"] .hero-layout {
        display: block !important;
        position: relative !important;
        direction: rtl !important;
    }

    html[lang^="ar"] .hero-copy {
        position: relative !important;
        text-align: right !important;
        transform: none !important;
        z-index: 5 !important;
    }

    html[lang^="ar"] .hero-visual {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        pointer-events: none !important;
        z-index: -1 !important;
    }

    html[lang^="ar"] .hero-visual img {
        position: absolute !important;
        left: 50% !important;
        right: auto !important;
        width: 130% !important;
        max-width: none !important;
        height: 100% !important;
        object-fit: contain !important;
        transform: translateX(-50%) !important;
        opacity: 0.35 !important;
        filter: brightness(0.55) !important;
    }
}

@media (max-width: 767px) {

    html[lang^="ar"] .hero h1 {
        font-size: 46px !important;
        line-height: 1.2 !important;
    }

    html[lang^="ar"] .hero-copy p {
        font-size: 16px !important;
        line-height: 1.8 !important;
    }

    html[lang^="ar"] .section h2 {
        font-size: 34px !important;
    }

    html[lang^="ar"] .section p {
        font-size: 16px !important;
    }
}

/* =====================================
   TDS JO - ARABIC HERO VISUAL FIX
   ===================================== */

/* Mirror Background Glow */

html[lang^="ar"] .hero {
    background: radial-gradient(
        ellipse at 20% 55%,
        rgba(132, 32, 90, 0.22),
        transparent 60%
    ), #0c080d !important;
}

/* Unified Arabic Heading Font */

html[lang^="ar"] .hero h1,
html[lang^="ar"] .hero h1 * {
    font-family: 'Lalezar', sans-serif !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    line-height: 1.15 !important;
}

/* Desktop Heart Size and Position */

@media (min-width: 1025px) {

    html[lang^="ar"] .hero-layout {
        grid-template-columns: minmax(0, 0.95fr)
                               minmax(0, 1.05fr) !important;
        gap: 30px !important;
    }

    html[lang^="ar"] .hero-visual {
        height: 750px !important;
        overflow: visible !important;
        background: transparent !important;
        transform: none !important;
    }

    html[lang^="ar"] .hero-visual img {
        position: absolute !important;
        width: 130% !important;
        max-width: none !important;
        height: 115% !important;
        top: 50% !important;
        left: 50% !important;
        right: auto !important;
        bottom: auto !important;
        object-fit: contain !important;
        transform: translate(-50%, -50%) !important;
        filter: brightness(0.60) !important;
        opacity: 1 !important;
    }

    html[lang^="ar"] .hero-copy {
        transform: translateY(-40px) !important;
    }

    html[lang^="ar"] .hero h1 {
        font-size: clamp(60px, 5.5vw, 90px) !important;
    }
}

/* Tablet */

@media (min-width: 768px) and (max-width: 1024px) {

    html[lang^="ar"] .hero-visual img {
        filter: brightness(0.65) !important;
    }
}

/* Mobile */

@media (max-width: 767px) {

    html[lang^="ar"] .hero-visual img {
        width: 150% !important;
        filter: brightness(0.60) !important;
        opacity: 0.50 !important;
    }

    html[lang^="ar"] .hero h1 {
        font-size: 46px !important;
    }
}

/* =====================================
   TDS JO - ARABIC HEADER ALIGNMENT
   ===================================== */

/* Keep header layout identical to English */

html[lang^="ar"] .site-header,
html[lang^="ar"] .site-header .container,
html[lang^="ar"] .site-header .header-inner,
html[lang^="ar"] .site-header .header-layout {
    direction: ltr !important;
    flex-direction: row !important;
}

/* Logo on the left */

html[lang^="ar"] .site-header .site-branding,
html[lang^="ar"] .site-header .brand,
html[lang^="ar"] .site-header .logo,
html[lang^="ar"] .site-header .custom-logo-link {
    direction: ltr !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    flex-shrink: 0 !important;
}

/* Arabic navigation on the right */

html[lang^="ar"] .site-header nav {
    direction: rtl !important;
    margin-left: auto !important;
    margin-right: 0 !important;
    text-align: right !important;
}

/* Arabic navigation text */

html[lang^="ar"] .site-header nav a {
    direction: rtl !important;
    font-family: 'IBM Plex Sans Arabic', sans-serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
}

/* Mobile header */

@media (max-width: 767px) {

    html[lang^="ar"] .site-header {
        direction: ltr !important;
    }

    html[lang^="ar"] .site-header nav {
        direction: rtl !important;
        text-align: right !important;
    }
}
/* Arabic Header - Proposal Button Size */

html[lang^="ar"] .site-header a[href*="#contact"] {
    padding: 10px 18px !important;
    min-height: 40px !important;
    height: auto !important;
    min-width: 0 !important;
    width: auto !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    border-radius: 5px !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}

/* TDS JO - Arabic Mobile RTL Fix */

@media screen and (max-width: 1024px) {

    html[lang^="ar"],
    html[lang^="ar"] body {
        direction: ltr !important;
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    html[lang^="ar"] main,
    html[lang^="ar"] .section,
    html[lang^="ar"] .hero,
    html[lang^="ar"] .site-footer {
        direction: rtl !important;
        text-align: right !important;
        max-width: 100% !important;
        overflow-x: clip !important;
    }

    html[lang^="ar"] .hero-layout {
        overflow: hidden !important;
    }

    html[lang^="ar"] .site-header {
        direction: ltr !important;
    }

    html[lang^="ar"] .site-header nav {
        direction: rtl !important;
    }

    html[lang^="ar"] #tds-floating-contact {
        direction: ltr !important;
        right: 15px !important;
        left: auto !important;
    }
}
/* Arabic Footer Logo - Mobile Only */

@media screen and (max-width: 767px) {

    html[lang^="ar"] .site-footer::before,
    html[lang^="ar"] footer::before {
        left: auto !important;
        right: 0 !important;
        bottom: 100px !important;
        width: 150px !important;
        height: 80px !important;
    }

}
/* Arabic Service Icons - Left Position */

html[lang^="ar"] .service-card {
    position: relative !important;
}

html[lang^="ar"] .service-card .service-symbol {
    position: absolute !important;
    top: 30px !important;
    left: 30px !important;
    right: auto !important;
    margin: 0 !important;
    transform: none !important;
}

html[lang^="ar"] .service-card .service-no {
    position: absolute !important;
    top: 30px !important;
    right: 30px !important;
    left: auto !important;
}
/* Footer Company Information */

.footer-company {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-company strong {
    font-size: 18px;
    font-weight: 700;
}

.footer-company p {
    font-size: 13px;
    color: #aaa0aa;
    margin: 0 0 12px;
}

.footer-company span,
.footer-company a {
    font-size: 14px;
    line-height: 1.6;
}

.footer-company a {
    align-self: flex-start;
    text-decoration: none;
    color: inherit;
}
/* Footer Company Information */

.footer-company {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-company .footer-company-title {
    color: #FFB54A !important;
    font-size: 13px !important;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.footer-company p {
    font-size: 15px;
    margin: 0 0 15px;
    line-height: 1.7;
}

.footer-company span {
    font-size: 14px;
    line-height: 1.7;
}

html[lang^="ar"] .footer-company {
    direction: rtl;
    text-align: right;
}

html[lang^="ar"] .footer-company-title {
    letter-spacing: 0 !important;
}
/* Arabic Sticky Header Fix */

html[lang^="ar"] .site-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 99999 !important;
    width: 100% !important;
    background-color: #090709 !important;
}

/* Fix overflow conflict */

html[lang^="ar"],
html[lang^="ar"] body {
    overflow-x: clip !important;
    overflow-y: visible !important;
}

/* WordPress Admin Bar */

html[lang^="ar"] body.admin-bar .site-header {
    top: 32px !important;
}

@media screen and (max-width: 782px) {

    html[lang^="ar"] body.admin-bar .site-header {
        top: 46px !important;
    }

}

@media screen and (max-width: 600px) {

    html[lang^="ar"] body.admin-bar .site-header {
        top: 0 !important;
    }

}
/* Arabic Hero - Subtitle Font Size */

html[lang^="ar"] .hero .section-kicker,
html[lang^="ar"] .hero .eyebrow {
    font-size: 20px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    letter-spacing: 0 !important;
}

/* Arabic Hero - Bottom Tagline */

html[lang^="ar"] .hero-bottom,
html[lang^="ar"] .hero-bottom span,
html[lang^="ar"] .hero-bottom p {
    font-size: 18px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
}

/* Mobile Font Size */

@media screen and (max-width: 767px) {

    html[lang^="ar"] .hero .section-kicker,
    html[lang^="ar"] .hero .eyebrow {
        font-size: 14px !important;
    }

    html[lang^="ar"] .hero-bottom,
    html[lang^="ar"] .hero-bottom span,
    html[lang^="ar"] .hero-bottom p {
        font-size: 14px !important;
    }
}
/* TDS JO - Hero Buttons Center Fix */

.hero .hero-actions > a.btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 16px 30px !important;
    text-indent: 0 !important;
    line-height: 1.5 !important;
    box-sizing: border-box !important;
    gap: 0 !important;
}

/* Remove empty arrow spacing */

.hero .hero-actions > a.btn span:empty {
    display: none !important;
}
/* Responsive Project Videos - AR & EN */

.single-tds_project .entry-content iframe {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    border: 0 !important;
    border-radius: 12px !important;
    margin: 0 auto 25px !important;
}

.single-tds_project .wp-block-embed {
    width: 100% !important;
    margin: 0 0 25px !important;
}

.single-tds_project .wp-block-embed__wrapper {
    width: 100% !important;
}