﻿@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap');

/* RTL overrides for Arabic pages */
html[dir="rtl"] {
    direction: rtl;
}

html[dir="rtl"],
html[dir="rtl"] body,
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6,
html[dir="rtl"] p,
html[dir="rtl"] a,
html[dir="rtl"] span,
html[dir="rtl"] div,
html[dir="rtl"] button,
html[dir="rtl"] input,
html[dir="rtl"] textarea {
    font-family: 'Cairo', sans-serif !important;
}

html[dir="rtl"] body {
    text-align: right;
}

html[dir="rtl"] .c-navigation__inner {
    flex-direction: row-reverse;
}

html[dir="rtl"] .c-navigation__menu {
    margin-left: 0;
    margin-right: auto;
    order: 1;
}

html[dir="rtl"] .c-navigation__menu-item {
    margin-right: 0;
    margin-left: auto;
    order: 2;
}

html[dir="rtl"] .c-navigation__menu>li {
    margin: 0 5px 0 0;
}

html[dir="rtl"] .c-navigation__menu-item>li {
    margin: 0 5px 0 0;
}

html[dir="rtl"] .c-topbar__menu {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-start;
    margin: 0;
    text-align: right;
    width: 100%;
    direction: rtl;
}

html[dir="rtl"] .c-topbar__menu>li {
    margin: 0;
}

html[dir="rtl"] .c-topbar__menu>li.has-children>a:after,
html[dir="rtl"] .c-topbar__menu>li.has-children>button:after {
    margin-left: 0;
    margin-right: .5em;
}

html[dir="rtl"] .c-topbar__menu>li>ul,
html[dir="rtl"] .c-topbar__menu>li>ul>li,
html[dir="rtl"] .c-topbar__menu>li>ul>li>a,
html[dir="rtl"] .c-topbar__menu-heading {
    text-align: right;
}

html[dir="rtl"] .c-topbar__menu>li>ul>li>a:before {
    left: auto;
    right: 0;
}

html[dir="rtl"] .language-option__flag {
    display: inline-block;
    flex: 0 0 1.35em;
    font-size: 1rem;
    line-height: 1;
    text-align: center;
    width: 1.35em;
}

html[dir="rtl"] .language-option__flag img,
html[dir="rtl"] .c-offcanvas__lang-flag {
    border-radius: 2px;
    display: block;
    height: 14px;
    object-fit: cover;
    width: 22px;
}

html[dir="rtl"] .c-offcanvas__lang a {
    align-items: center;
    display: inline-flex;
    gap: .5rem;
}

html[dir="rtl"] .language-option__label {
    line-height: 1.2;
    text-transform: none;
}

html[dir="rtl"] .topbar-contact-link {
    align-items: center;
    display: inline-flex;
    gap: .5rem;
    justify-content: flex-start;
    width: 100%;
}

html[dir="rtl"] .topbar-contact-link i {
    color: currentColor;
    font-size: .95rem;
    width: 1rem;
}

html[dir="rtl"] input,
html[dir="rtl"] textarea {
    text-align: right;
}

/* ==========================================================================
   Premium Arabic Typography Overrides
   ========================================================================== */

html[dir="rtl"] .institutional-lead-text,
html[dir="rtl"] .footer-premium-heading,
html[dir="rtl"] .footer-premium-link,
html[dir="rtl"] .footer-premium-copyright {
    font-family: 'Cairo', sans-serif !important;
}

html[dir="rtl"] .footer-premium-heading {
    border-bottom: 2px solid #2a72b8;
    padding-bottom: 8px;
    margin-bottom: 1.25rem !important;
    display: inline-block;
    font-weight: 700 !important;
    font-size: 1.5rem !important;
    /* Slightly adjusted for standard Arabic clarity */
}

html[dir="rtl"] .footer-premium-link {
    font-weight: 600 !important;
    font-size: 1.15rem !important;
}

html[dir="rtl"] .footer-premium-copyright {
    font-weight: 600 !important;
    font-size: 1.1rem !important;
}

html[dir="rtl"] .home-footer-tysers {
    background-color: #001b36;
    padding-top: 3rem !important;
    padding-bottom: 1rem !important;
}

html[dir="rtl"] .home-footer-tysers > .container {
    border-bottom: 1px solid #454545;
    padding-bottom: 4rem !important;
}

html[dir="rtl"] .home-footer-tysers .footer-premium-heading {
    font-family: 'Cairo', sans-serif !important;
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    color: #2a72b8 !important;
    border-bottom: 0 !important;
    padding-bottom: 0 !important;
    margin-bottom: 1rem !important;
    letter-spacing: 0 !important;
    display: inline-block;
}

html[dir="rtl"] .home-footer-tysers .footer-premium-link {
    font-family: 'Cairo', sans-serif !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    color: #fff !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
    display: inline-block;
    padding: 0.25rem 0 !important;
    transform: none !important;
}

html[dir="rtl"] .home-footer-tysers .footer-premium-link:hover,
html[dir="rtl"] .home-footer-tysers .footer-premium-link:focus {
    color: #2a72b8 !important;
    transform: none !important;
}

html[dir="rtl"] .home-footer-tysers a.text-gray-dark,
html[dir="rtl"] .home-footer-tysers a.text-gray-dark:link,
html[dir="rtl"] .home-footer-tysers a.text-gray-dark:visited {
    color: #fff !important;
}

html[dir="rtl"] .home-footer-tysers a.text-gray-dark:hover,
html[dir="rtl"] .home-footer-tysers a.text-gray-dark:focus {
    color: #2a72b8 !important;
}

html[dir="rtl"] .home-footer-tysers .footer-premium-copyright {
    font-family: 'Cairo', sans-serif !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    color: #969696 !important;
    letter-spacing: 0 !important;
    border-top-color: #454545 !important;
}

html[dir="rtl"] .home-footer-tysers .footer-premium-copyright p {
    color: inherit !important;
}

html[dir="rtl"] .institutional-lead-text {
    line-height: 1.9 !important;
    /* Increased leading for Arabic */
    font-size: 1.5rem !important;
    font-weight: 600 !important;
}

/* Premium Video Showcase Typography (RTL) */
html[dir="rtl"] .video-slide__copy h3 {
    font-family: 'Cairo', sans-serif !important;
    font-weight: 700 !important;
    font-size: 1.7rem !important;
    color: #ffffff !important;
    line-height: 1.5 !important;
    margin-bottom: 14px !important;
    line-height: 1.5 !important;
    margin-bottom: 14px !important;
}

html[dir="rtl"] .video-slide__copy p {
    font-family: 'Cairo', sans-serif !important;
    font-weight: 500 !important;
    font-size: 1.15rem !important;
    line-height: 1.9 !important;
    color: #f1f5f9 !important;
}

/* Force English font for the brand logo text */
html[dir="rtl"] .c-navigation__menu-item-link {
    font-family: Roboto, Helvetica Neue, Helvetica, Arial, sans-serif !important;
}

/* Soft overlay + text shadow for Arabic hero sections and header text over imagery */
html[dir="rtl"] {
    --ar-hero-overlay-top: rgba(7, 24, 42, 0.18);
    --ar-hero-overlay-middle: rgba(7, 24, 42, 0.08);
    --ar-hero-overlay-bottom: rgba(7, 24, 42, 0.24);
    --ar-hero-overlay-strong-top: rgba(7, 24, 42, 0.5);
    --ar-hero-overlay-strong-middle: rgba(7, 24, 42, 0.22);
    --ar-hero-overlay-strong-bottom: rgba(7, 24, 42, 0.58);
    --ar-hero-text-shadow: 0 3px 18px rgba(0, 0, 0, 0.42);
    --ar-header-text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

html[dir="rtl"] body.has-hero .c-hero {
    isolation: isolate;
    overflow: hidden;
    position: relative;
}

html[dir="rtl"] body.has-hero .c-hero::before {
    background: linear-gradient(
        180deg,
        var(--ar-hero-overlay-top) 0%,
        var(--ar-hero-overlay-middle) 48%,
        var(--ar-hero-overlay-bottom) 100%
    );
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: 1;
}

html[dir="rtl"] body.has-hero .c-hero__inner,
html[dir="rtl"] body.has-hero .c-hero__content,
html[dir="rtl"] body.has-hero .hero__content,
html[dir="rtl"] body.has-hero .title-block,
html[dir="rtl"] body.has-hero .title-block__content,
html[dir="rtl"] body.has-hero .title-block__supporting {
    position: relative;
    z-index: 2;
}

html[dir="rtl"] body.has-hero .c-hero .hero__image::before,
html[dir="rtl"] body.has-hero #hero_238604 .hero .hero--gradient::before {
    background: linear-gradient(
        180deg,
        var(--ar-hero-overlay-strong-top) 0%,
        var(--ar-hero-overlay-strong-middle) 48%,
        var(--ar-hero-overlay-strong-bottom) 100%
    ) !important;
}

html[dir="rtl"] body.has-hero .c-hero__heading,
html[dir="rtl"] body.has-hero .c-hero__subheading,
html[dir="rtl"] body.has-hero .hero__title,
html[dir="rtl"] body.has-hero .hero__subtitle,
html[dir="rtl"] body.has-hero .title-block__title,
html[dir="rtl"] body.has-hero .title-block__title p,
html[dir="rtl"] body.has-hero .title-block__supporting p,
html[dir="rtl"] body.has-hero .title-block__supporting a {
    text-shadow: var(--ar-hero-text-shadow) !important;
}

html[dir="rtl"] body.has-hero #main-navigation .c-navigation__menu-item-link,
html[dir="rtl"] body.has-hero #topbar .c-topbar__menu > li > a,
html[dir="rtl"] body.has-hero #topbar .c-topbar__menu > li > button,
html[dir="rtl"] body.has-hero #topbar .topbar-contact-link,
html[dir="rtl"] body.has-hero #main-navigation .c-navigation__toggle {
    text-shadow: var(--ar-header-text-shadow);
}
