/* ==========================================================================
   Project Editorial Dropdown Menu | Mukoun | Clean Production CSS
   ========================================================================== */

/* ==========================================================================
   Dropdown Container
   ========================================================================== */

header.header-one .pe-nav-project {
    position: relative;
}

header.header-one .pe-nav-project-menu {
    position: absolute;
    left: 50%;
    top: calc(100% + 14px);

    width: min(1240px, calc(100vw - 40px));

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    display: block !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;

    transform: translateX(-50%) translateY(10px);
    transition:
        opacity 0.28s ease,
        transform 0.28s ease,
        visibility 0.28s ease;

    z-index: 1000;
}

header.header-one .pe-nav-project:hover > .pe-nav-project-menu,
header.header-one .pe-nav-project:focus-within > .pe-nav-project-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

header.header-one .pe-nav-project-menu .wrapper,
header.header-one .pe-nav-project-menu .container {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ==========================================================================
   Main Shell
   ========================================================================== */

header.header-one .pedm-section {
    width: 100%;
    margin: 0;
    padding: 0;
}

header.header-one .pedm-shell {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 42px;
    align-items: start;

    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 34px;

    background: #ffffff;
    border-radius: 24px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.10);

    max-height: 720px;
    overflow: hidden;
}

/* ==========================================================================
   Left Intro
   ========================================================================== */

header.header-one .pedm-intro {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

header.header-one .pedm-eyebrow {
    display: inline-flex;
    align-items: center;

    margin-bottom: 12px;

    color: #686969;
    font-size: 15px;
    line-height: 1;
    font-weight: 500;
    letter-spacing: 0.01em;
}

header.header-one .pedm-title {
    margin: 0 0 22px;

    color: #17324a;
    font-size: clamp(2.3rem, 1.75rem + 1vw, 3.4rem);
    line-height: 1.04;
    font-weight: 800;
    letter-spacing: -0.045em;

    max-width: 9ch;
}

header.header-one .pedm-description {
    margin: 0;

    color: #355168;
    font-size: 15.5px;
    line-height: 1.9;
    font-weight: 400;

    max-width: 100%;
}

/* ==========================================================================
   CTA
   ========================================================================== */

header.header-one .pedm-cta {
    margin-top: 30px;

    display: inline-flex;
    align-items: center;
    gap: 16px;

    text-decoration: none !important;
    color: #d62927 !important;

    transition:
        transform 0.22s ease,
        color 0.22s ease;
}

header.header-one .pedm-cta:hover {
    transform: translateY(-2px);
    color: #bf1f1d !important;
}

header.header-one .pedm-cta-icon {
    width: 62px;
    height: 62px;
    flex-shrink: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 999px;
    background: #d62927;
    color: #ffffff;

    transition:
        background 0.22s ease,
        box-shadow 0.22s ease;
}

header.header-one .pedm-cta:hover .pedm-cta-icon {
    background: #bf1f1d;
    box-shadow: 0 14px 28px rgba(214, 41, 39, 0.16);
}

header.header-one .pedm-cta-icon i {
    font-size: 20px;
    line-height: 1;
}

header.header-one .pedm-cta-text {
    color: #d62927;
    font-size: 24px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.03em;
}

/* ==========================================================================
   Cards Grid
   ========================================================================== */

header.header-one .pedm-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px 28px;
    align-content: start;

    min-width: 0;
    max-height: 560px;

    overflow-y: auto;
    overflow-x: hidden;

    padding-right: 8px;

    scrollbar-width: thin;
    scrollbar-color: rgba(23, 50, 74, 0.24) transparent;
}

header.header-one .pedm-cards::-webkit-scrollbar {
    width: 8px;
}

header.header-one .pedm-cards::-webkit-scrollbar-track {
    background: transparent;
}

header.header-one .pedm-cards::-webkit-scrollbar-thumb {
    background: rgba(23, 50, 74, 0.22);
    border-radius: 999px;
}

header.header-one .pedm-cards::-webkit-scrollbar-thumb:hover {
    background: rgba(23, 50, 74, 0.38);
}

/* ==========================================================================
   Project Card
   ========================================================================== */

header.header-one .pedm-card {
    display: block;
    min-width: 0;

    color: #0f172a !important;
    text-decoration: none !important;

    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}

header.header-one .pedm-card:hover {
    transform: translateY(-4px);
    color: #0f172a !important;
}

/* Image border-radius */
header.header-one .pedm-card__media {
    width: 100%;
    aspect-ratio: 16 / 10;

    margin: 0 0 16px;
    padding: 0;

    overflow: hidden;
    border-radius: 14px;/* Image border-radius */

    background: #f3f4f6;
}

/* Image border-radius */
header.header-one .pedm-card__media img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center center;

    border-radius: 14px; /* Image border-radius */


    transition: transform 0.35s ease;
}

header.header-one .pedm-card:hover .pedm-card__media img {
    transform: scale(1.025);
}

/* Content */
header.header-one .pedm-card__content {
    padding: 0 !important;
    margin: 0;
}

header.header-one .pedm-card__category,
header.header-one .pedm-card__description,
header.header-one .pedm-card__link {
    display: none !important;
}

/* Title: keep in one line */
header.header-one .pedm-card__title,
header.header-one .pedm-card__title b {
    display: block !important;

    margin: 0 !important;

    white-space: nowrap !important;
    word-break: normal !important;
    overflow-wrap: normal !important;

    color: #0f172a !important;

    font-size: clamp(1.45rem, 1.25vw, 1.9rem) !important;
    line-height: 1.15 !important;
    font-weight: 800 !important;
    letter-spacing: -0.04em !important;
}

/* ==========================================================================
   Hide Mega Menu After Click
   ========================================================================== */

header.header-one .pe-nav-project.pe-nav-project--force-hide > .pe-nav-project-menu,
header.header-one .pe-nav-project.pe-nav-project--force-hide:hover > .pe-nav-project-menu,
header.header-one .pe-nav-project.pe-nav-project--force-hide:focus-within > .pe-nav-project-menu {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateX(-50%) translateY(12px) !important;
}

/* ==========================================================================
   Large Screens
   ========================================================================== */

@media (min-width: 1400px) {
    header.header-one .pedm-card__title,
    header.header-one .pedm-card__title b {
        font-size: 1.85rem !important;
    }
}

@media (min-width: 1600px) {
    header.header-one .pe-nav-project-menu {
        width: min(1320px, calc(100vw - 64px));
    }

    header.header-one .pedm-shell {
        grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
        gap: 48px;
    }

    header.header-one .pedm-card__title,
    header.header-one .pedm-card__title b {
        font-size: 1.95rem !important;
    }
}

/* ==========================================================================
   Tablet / Small Desktop
   ========================================================================== */

@media (max-width: 1199.98px) {
    header.header-one .pe-nav-project-menu {
        width: min(1080px, calc(100vw - 24px));
    }

    header.header-one .pedm-shell {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 28px;
        max-height: none;
        overflow: visible;
    }

    header.header-one .pedm-title {
        max-width: none;
    }

    header.header-one .pedm-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 26px;
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }

    header.header-one .pedm-card__title,
    header.header-one .pedm-card__title b {
        font-size: 1.55rem !important;
        white-space: nowrap !important;
    }
}

/* ==========================================================================
   Mobile Dropdown Behavior
   ========================================================================== */

@media (max-width: 991.98px) {
    header.header-one .pe-nav-project-menu {
        position: static !important;

        width: 100% !important;
        margin-top: 14px;

        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;

        transform: none !important;
    }

    header.header-one .pedm-shell {
        padding: 20px;
        border-radius: 18px;
        gap: 22px;
    }

    header.header-one .pedm-title {
        font-size: 34px;
    }

    header.header-one .pedm-description {
        font-size: 14px;
    }

    header.header-one .pedm-cta-icon {
        width: 54px;
        height: 54px;
    }

    header.header-one .pedm-cta-text {
        font-size: 20px;
    }

    header.header-one .pedm-cards {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    header.header-one .pedm-card__media {
        border-radius: 20px;
        margin-bottom: 14px;
    }

    header.header-one .pedm-card__media img {
        border-radius: 20px;
    }

    header.header-one .pedm-card__title,
    header.header-one .pedm-card__title b {
        font-size: 1.45rem !important;
        white-space: nowrap !important;
    }
}

/* ==========================================================================
   Small Mobile
   ========================================================================== */

@media (max-width: 575.98px) {
    header.header-one .pedm-shell {
        padding: 16px;
    }

    header.header-one .pedm-title {
        font-size: 28px;
    }

    header.header-one .pedm-description {
        font-size: 13px;
    }

    header.header-one .pedm-cta {
        gap: 12px;
    }

    header.header-one .pedm-cta-text {
        font-size: 18px;
    }

    header.header-one .pedm-cta-icon {
        width: 48px;
        height: 48px;
    }

    header.header-one .pedm-card__title,
    header.header-one .pedm-card__title b {
        font-size: 1.25rem !important;
        white-space: nowrap !important;
    }
}

/* ==========================================================================
   RTL Support
   ========================================================================== */

html[dir="rtl"] header.header-one .pedm-intro {
    text-align: right;
    align-items: flex-start;
}

html[dir="rtl"] header.header-one .pedm-cards {
    padding-right: 0;
    padding-left: 8px;
}

html[dir="rtl"] header.header-one .pedm-cta-icon i {
    transform: rotate(180deg);
}

/* =========================================================
   Hide Vertical Scrollbar From Projects Editorial Cards
   مع بقاء التصميم كما هو
   ========================================================= */

header.header-one .pedm-cards {
    overflow-y: visible !important;
    overflow-x: hidden !important;
    max-height: none !important;
    padding-right: 0 !important;

    scrollbar-width: none !important;        /* Firefox */
    -ms-overflow-style: none !important;     /* IE / Edge القديم */
}

header.header-one .pedm-cards::-webkit-scrollbar {
    display: none !important;                /* Chrome / Edge / Safari */
    width: 0 !important;
    height: 0 !important;
}

header.header-one .pedm-cards::-webkit-scrollbar-track,
header.header-one .pedm-cards::-webkit-scrollbar-thumb {
    display: none !important;
    background: transparent !important;
}

/* =========================================================
   PROJECTS EDITORIAL — FINAL RTL / LTR DIRECTION
   The intro remains on the left and cards remain on the right.
   Only text direction and card flow change with the language.
========================================================= */

/* Fixed physical desktop layout for Arabic and English */
header.header-one .pedm-section .pedm-shell {
    direction: ltr !important;
    grid-template-columns:
        minmax(300px, 380px)
        minmax(0, 1fr) !important;
}

/* Intro always remains in the left column */
header.header-one .pedm-section .pedm-intro {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 100% !important;
    align-items: stretch !important;
}

/* Cards always remain in the right column */
header.header-one .pedm-section .pedm-cards {
    grid-column: 2 !important;
    grid-row: 1 !important;
}

/* =========================================================
   Arabic — RTL
========================================================= */

header.header-one .pedm-section.pedm-rtl,
header.header-one .pedm-section[dir="rtl"] {
    direction: rtl !important;
}

/* Arabic intro */
header.header-one .pedm-section.pedm-rtl .pedm-intro,
header.header-one .pedm-section[dir="rtl"] .pedm-intro {
    direction: rtl !important;
    text-align: right !important;
}

/* Arabic intro text */
header.header-one .pedm-section.pedm-rtl .pedm-eyebrow,
header.header-one .pedm-section.pedm-rtl .pedm-title,
header.header-one .pedm-section.pedm-rtl .pedm-description,
header.header-one .pedm-section[dir="rtl"] .pedm-eyebrow,
header.header-one .pedm-section[dir="rtl"] .pedm-title,
header.header-one .pedm-section[dir="rtl"] .pedm-description {
    width: 100% !important;
    direction: rtl !important;
    unicode-bidi: isolate !important;
    text-align: right !important;
    letter-spacing: 0 !important;
}

header.header-one .pedm-section.pedm-rtl .pedm-title,
header.header-one .pedm-section[dir="rtl"] .pedm-title {
    max-width: 100% !important;
    line-height: 1.3 !important;
}

header.header-one .pedm-section.pedm-rtl .pedm-description,
header.header-one .pedm-section[dir="rtl"] .pedm-description {
    line-height: 2 !important;
}

/* Arabic CTA */
header.header-one .pedm-section.pedm-rtl .pedm-cta,
header.header-one .pedm-section[dir="rtl"] .pedm-cta {
    align-self: flex-end !important;
    margin-right: 0 !important;
    margin-left: auto !important;
    direction: rtl !important;
}

/* Arabic cards: first item starts from the right */
header.header-one .pedm-section.pedm-rtl .pedm-cards,
header.header-one .pedm-section[dir="rtl"] .pedm-cards {
    direction: rtl !important;
    text-align: right !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
}

/* Arabic card content */
header.header-one .pedm-section.pedm-rtl .pedm-card,
header.header-one .pedm-section.pedm-rtl .pedm-card__content,
header.header-one .pedm-section.pedm-rtl .pedm-card__category,
header.header-one .pedm-section.pedm-rtl .pedm-card__title,
header.header-one .pedm-section.pedm-rtl .pedm-card__title b,
header.header-one .pedm-section.pedm-rtl .pedm-card__description,
header.header-one .pedm-section[dir="rtl"] .pedm-card,
header.header-one .pedm-section[dir="rtl"] .pedm-card__content,
header.header-one .pedm-section[dir="rtl"] .pedm-card__category,
header.header-one .pedm-section[dir="rtl"] .pedm-card__title,
header.header-one .pedm-section[dir="rtl"] .pedm-card__title b,
header.header-one .pedm-section[dir="rtl"] .pedm-card__description {
    direction: rtl !important;
    unicode-bidi: isolate !important;
    text-align: right !important;
    letter-spacing: 0 !important;
}

/* Arabic card titles may wrap naturally */
header.header-one .pedm-section.pedm-rtl .pedm-card__title,
header.header-one .pedm-section.pedm-rtl .pedm-card__title b,
header.header-one .pedm-section[dir="rtl"] .pedm-card__title,
header.header-one .pedm-section[dir="rtl"] .pedm-card__title b {
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    line-height: 1.45 !important;
    font-weight: 900 !important;
}

/* =========================================================
   English — LTR
========================================================= */

header.header-one .pedm-section.pedm-ltr,
header.header-one .pedm-section[dir="ltr"] {
    direction: ltr !important;
}

/* English intro */
header.header-one .pedm-section.pedm-ltr .pedm-intro,
header.header-one .pedm-section[dir="ltr"] .pedm-intro {
    direction: ltr !important;
    text-align: left !important;
}

/* English intro text */
header.header-one .pedm-section.pedm-ltr .pedm-eyebrow,
header.header-one .pedm-section.pedm-ltr .pedm-title,
header.header-one .pedm-section.pedm-ltr .pedm-description,
header.header-one .pedm-section[dir="ltr"] .pedm-eyebrow,
header.header-one .pedm-section[dir="ltr"] .pedm-title,
header.header-one .pedm-section[dir="ltr"] .pedm-description {
    width: 100% !important;
    direction: ltr !important;
    unicode-bidi: isolate !important;
    text-align: left !important;
}

header.header-one .pedm-section.pedm-ltr .pedm-title,
header.header-one .pedm-section[dir="ltr"] .pedm-title {
    max-width: 9ch !important;
}

/* English CTA */
header.header-one .pedm-section.pedm-ltr .pedm-cta,
header.header-one .pedm-section[dir="ltr"] .pedm-cta {
    align-self: flex-start !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    direction: ltr !important;
}

/* English cards: first item starts from the left */
header.header-one .pedm-section.pedm-ltr .pedm-cards,
header.header-one .pedm-section[dir="ltr"] .pedm-cards {
    direction: ltr !important;
    text-align: left !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
}

/* English card content */
header.header-one .pedm-section.pedm-ltr .pedm-card,
header.header-one .pedm-section.pedm-ltr .pedm-card__content,
header.header-one .pedm-section.pedm-ltr .pedm-card__category,
header.header-one .pedm-section.pedm-ltr .pedm-card__title,
header.header-one .pedm-section.pedm-ltr .pedm-card__title b,
header.header-one .pedm-section.pedm-ltr .pedm-card__description,
header.header-one .pedm-section[dir="ltr"] .pedm-card,
header.header-one .pedm-section[dir="ltr"] .pedm-card__content,
header.header-one .pedm-section[dir="ltr"] .pedm-card__category,
header.header-one .pedm-section[dir="ltr"] .pedm-card__title,
header.header-one .pedm-section[dir="ltr"] .pedm-card__title b,
header.header-one .pedm-section[dir="ltr"] .pedm-card__description {
    direction: ltr !important;
    unicode-bidi: isolate !important;
    text-align: left !important;
}

/* English card titles stay on one line on desktop */
header.header-one .pedm-section.pedm-ltr .pedm-card__title,
header.header-one .pedm-section.pedm-ltr .pedm-card__title b,
header.header-one .pedm-section[dir="ltr"] .pedm-card__title,
header.header-one .pedm-section[dir="ltr"] .pedm-card__title b {
    white-space: nowrap !important;
}

/* =========================================================
   Tablet
========================================================= */

@media (max-width: 1199.98px) {
    header.header-one .pedm-section .pedm-shell {
        grid-template-columns: 1fr !important;
    }

    header.header-one .pedm-section .pedm-intro {
        grid-column: 1 !important;
        grid-row: 1 !important;
    }

    header.header-one .pedm-section .pedm-cards {
        grid-column: 1 !important;
        grid-row: 2 !important;
    }
}

/* =========================================================
   Mobile
========================================================= */

@media (max-width: 575.98px) {
    header.header-one .pedm-section.pedm-rtl .pedm-title,
    header.header-one .pedm-section[dir="rtl"] .pedm-title {
        font-size: 26px !important;
        line-height: 1.4 !important;
    }

    header.header-one .pedm-section.pedm-rtl .pedm-description,
    header.header-one .pedm-section[dir="rtl"] .pedm-description {
        font-size: 13px !important;
        line-height: 1.9 !important;
    }

    header.header-one .pedm-section.pedm-rtl .pedm-card__title,
    header.header-one .pedm-section.pedm-rtl .pedm-card__title b,
    header.header-one .pedm-section[dir="rtl"] .pedm-card__title,
    header.header-one .pedm-section[dir="rtl"] .pedm-card__title b {
        font-size: 1.22rem !important;
        line-height: 1.5 !important;
    }
}

/* =========================================================
   ENGLISH DESKTOP LAYOUT ONLY
   Arabic layout is intentionally untouched.
   English: cards on the left, intro content on the right.
========================================================= */

@media (min-width: 1200px) {
    header.header-one .pedm-section.pedm-ltr .pedm-shell,
    header.header-one .pedm-section[dir="ltr"] .pedm-shell {
        direction: ltr !important;
        grid-template-columns:
            minmax(0, 1fr)
            minmax(300px, 380px) !important;
    }

    header.header-one .pedm-section.pedm-ltr .pedm-cards,
    header.header-one .pedm-section[dir="ltr"] .pedm-cards {
        grid-column: 1 !important;
        grid-row: 1 !important;
        direction: ltr !important;
        text-align: left !important;
        padding-right: 0 !important;
        padding-left: 0 !important;
    }

    header.header-one .pedm-section.pedm-ltr .pedm-intro,
    header.header-one .pedm-section[dir="ltr"] .pedm-intro {
        grid-column: 2 !important;
        grid-row: 1 !important;
        direction: ltr !important;
        text-align: left !important;
        align-items: flex-start !important;
    }

    header.header-one .pedm-section.pedm-ltr .pedm-eyebrow,
    header.header-one .pedm-section.pedm-ltr .pedm-title,
    header.header-one .pedm-section.pedm-ltr .pedm-description,
    header.header-one .pedm-section[dir="ltr"] .pedm-eyebrow,
    header.header-one .pedm-section[dir="ltr"] .pedm-title,
    header.header-one .pedm-section[dir="ltr"] .pedm-description {
        direction: ltr !important;
        unicode-bidi: isolate !important;
        text-align: left !important;
    }

    header.header-one .pedm-section.pedm-ltr .pedm-cta,
    header.header-one .pedm-section[dir="ltr"] .pedm-cta {
        align-self: flex-end !important;
        margin-left: auto !important;
        margin-right: 0 !important;
        direction: ltr !important;
    }

    header.header-one .pedm-section.pedm-ltr .pedm-card,
    header.header-one .pedm-section.pedm-ltr .pedm-card__content,
    header.header-one .pedm-section.pedm-ltr .pedm-card__title,
    header.header-one .pedm-section.pedm-ltr .pedm-card__title b,
    header.header-one .pedm-section[dir="ltr"] .pedm-card,
    header.header-one .pedm-section[dir="ltr"] .pedm-card__content,
    header.header-one .pedm-section[dir="ltr"] .pedm-card__title,
    header.header-one .pedm-section[dir="ltr"] .pedm-card__title b {
        direction: ltr !important;
        unicode-bidi: isolate !important;
        text-align: left !important;
    }
}

/* Join Us dropdown — Arabic */
.mukoun-join-dropdown[dir="rtl"] .submenu {
    direction: rtl !important;
    text-align: right !important;
}

.mukoun-join-dropdown[dir="rtl"] .submenu li,
.mukoun-join-dropdown[dir="rtl"] .submenu li a {
    direction: rtl !important;
    text-align: right !important;
}

/* Join Us dropdown — English */
.mukoun-join-dropdown[dir="ltr"] .submenu {
    direction: ltr !important;
    text-align: left !important;
}

.mukoun-join-dropdown[dir="ltr"] .submenu li,
.mukoun-join-dropdown[dir="ltr"] .submenu li a {
    direction: ltr !important;
    text-align: left !important;
}

/* =========================================================
   MUKOUN HEADER — ARABIC DESKTOP LAYOUT
   يطبق على العربية فقط
========================================================= */

@media (min-width: 1200px) {

    /* الحاوية الرئيسية */
    header.header-one.header-one--rtl .header-main-one-wrapper {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: 100% !important;
        direction: ltr !important;
    }

    /* الشعار في أقصى اليمين */
    header.header-one.header-one--rtl .header-main-one-wrapper > .thumbnail {
        order: 3 !important;
        flex: 0 0 auto !important;

        margin-right: 0 !important;
        margin-left: 34px !important;
    }

    header.header-one.header-one--rtl .thumbnail a,
    header.header-one.header-one--rtl .thumbnail img {
        display: block !important;
    }

    /* منطقة القائمة والأزرار */
    header.header-one.header-one--rtl .main-header {
        order: 1 !important;

        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;

        width: 100% !important;
        min-width: 0 !important;
        direction: ltr !important;
    }

    /* القائمة بجانب الشعار من اليمين */
    header.header-one.header-one--rtl .main-header > .mukoun-nav-area,
    header.header-one.header-one--rtl .main-header > .nav-area:first-child {
        order: 2 !important;

        display: flex !important;
        align-items: center !important;

        margin-right: 0 !important;
        margin-left: 0 !important;

        direction: rtl !important;
    }

    /* ترتيب روابط القائمة من اليمين إلى اليسار */
    header.header-one.header-one--rtl .mukoun-nav-area > .parent-nav {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;

        direction: rtl !important;
        text-align: right !important;
    }

    header.header-one.header-one--rtl .mukoun-nav-area .main-nav,
    header.header-one.header-one--rtl .mukoun-nav-area .main-nav > a {
        direction: rtl !important;
        text-align: right !important;
    }

    /* الأزرار في أقصى اليسار */
    header.header-one.header-one--rtl .main-header > .button-area {
        order: 1 !important;

        display: flex !important;
        flex-direction: row-reverse !important;
        align-items: center !important;
        justify-content: flex-start !important;

        margin-right: auto !important;
        margin-left: 0 !important;

        direction: rtl !important;
    }

    /* زر انضم إلينا */
    header.header-one.header-one--rtl .mukoun-join-dropdown {
        margin-right: 0 !important;
        margin-left: 0 !important;
        direction: rtl !important;
    }

    /* قائمة انضم إلينا المنسدلة */
    header.header-one.header-one--rtl .mukoun-join-dropdown .submenu {
        right: auto !important;
        left: 0 !important;

        direction: rtl !important;
        text-align: right !important;
    }

    header.header-one.header-one--rtl .mukoun-join-dropdown .submenu li,
    header.header-one.header-one--rtl .mukoun-join-dropdown .submenu a {
        direction: rtl !important;
        text-align: right !important;
    }

    /* زر تسجيل الدخول */
    header.header-one.header-one--rtl .nav-login-item,
    header.header-one.header-one--rtl .nav-login-link {
        direction: rtl !important;
    }

    header.header-one.header-one--rtl .nav-login-link {
        display: inline-flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
    }

    /* اللغة تكون بعد الروابط في الجهة اليسرى */
    header.header-one.header-one--rtl .mukoun-language-nav {
        direction: ltr !important;
    }

    header.header-one.header-one--rtl .mukoun-language-switch {
        direction: ltr !important;
    }
}

/* =========================================================
   ARABIC HEADER ALIGNMENT
========================================================= */

header.header-one.header-one--rtl {
    direction: rtl !important;
}

header.header-one.header-one--rtl .submenu {
    direction: rtl !important;
    text-align: right !important;
}

header.header-one.header-one--rtl .submenu li,
header.header-one.header-one--rtl .submenu li a {
    direction: rtl !important;
    text-align: right !important;
}

/* الإنجليزية تبقى بالترتيب الأصلي */
header.header-one.header-one--ltr {
    direction: ltr !important;
}

/* ==========================================================================
   MUKOUN TYPOGRAPHY STANDARD — TAJAWAL
   Source: Mukoun_Tajawal_Typography_Guide_AR.md
   Scope: Projects Editorial mega menu only

   IMPORTANT:
   - Typography only.
   - No changes to layout, grid, cards, images, colors, spacing, borders,
     shadows, hover effects, RTL/LTR positioning or responsive structure.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Base font
   -------------------------------------------------------------------------- */

header.header-one .pedm-section,
header.header-one .pedm-section button,
header.header-one .pedm-section input,
header.header-one .pedm-section select,
header.header-one .pedm-section textarea {
    font-family: "Tajawal", Arial, sans-serif !important;
    font-synthesis: none !important;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

header.header-one .pedm-section h1,
header.header-one .pedm-section h2,
header.header-one .pedm-section h3,
header.header-one .pedm-section h4,
header.header-one .pedm-section h5,
header.header-one .pedm-section h6,
header.header-one .pedm-section p,
header.header-one .pedm-section span,
header.header-one .pedm-section a,
header.header-one .pedm-section b,
header.header-one .pedm-section strong,
header.header-one .pedm-section i {
    font-family: inherit !important;
}

/* Arabic text must not inherit Latin letter spacing. */
header.header-one .pedm-section[dir="rtl"] h1,
header.header-one .pedm-section[dir="rtl"] h2,
header.header-one .pedm-section[dir="rtl"] h3,
header.header-one .pedm-section[dir="rtl"] h4,
header.header-one .pedm-section[dir="rtl"] h5,
header.header-one .pedm-section[dir="rtl"] h6,
header.header-one .pedm-section[dir="rtl"] p,
header.header-one .pedm-section[dir="rtl"] span,
header.header-one .pedm-section[dir="rtl"] a,
header.header-one .pedm-section[dir="rtl"] b {
    letter-spacing: 0 !important;
}

/* --------------------------------------------------------------------------
   Eyebrow
   Guide: 15px / 800 / 1.35
   -------------------------------------------------------------------------- */

header.header-one .pedm-section .pedm-eyebrow {
    font-size: 15px !important;
    line-height: 1.35 !important;
    font-weight: 800 !important;
}

/* --------------------------------------------------------------------------
   Intro title
   This compact mega-menu heading uses the guide's card-heading hierarchy
   so the existing menu dimensions and layout remain unchanged.
   -------------------------------------------------------------------------- */

/* English */
header.header-one .pedm-section[dir="ltr"] .pedm-title,
header.header-one .pedm-section.pedm-ltr .pedm-title {
    font-size: clamp(2.08rem, 1.62rem + 0.38vw, 2.48rem) !important;
    line-height: 1.42 !important;
    font-weight: 800 !important;
}

/* Arabic */
header.header-one .pedm-section[dir="rtl"] .pedm-title,
header.header-one .pedm-section.pedm-rtl .pedm-title {
    font-size: clamp(2.18rem, 1.70rem + 0.42vw, 2.58rem) !important;
    line-height: 1.58 !important;
    font-weight: 800 !important;
}

/* --------------------------------------------------------------------------
   Intro description
   Guide-compatible body hierarchy for a compact component.
   -------------------------------------------------------------------------- */

/* English */
header.header-one .pedm-section[dir="ltr"] .pedm-description,
header.header-one .pedm-section.pedm-ltr .pedm-description {
    font-size: 1.50rem !important;
    line-height: 2 !important;
    font-weight: 500 !important;
}

/* Arabic */
header.header-one .pedm-section[dir="rtl"] .pedm-description,
header.header-one .pedm-section.pedm-rtl .pedm-description {
    font-size: 1.58rem !important;
    line-height: 2.12 !important;
    font-weight: 500 !important;
}

/* --------------------------------------------------------------------------
   Project card titles
   Compact role/card heading hierarchy from the guide.
   -------------------------------------------------------------------------- */

/* English */
header.header-one .pedm-section[dir="ltr"] .pedm-card__title,
header.header-one .pedm-section[dir="ltr"] .pedm-card__title b,
header.header-one .pedm-section.pedm-ltr .pedm-card__title,
header.header-one .pedm-section.pedm-ltr .pedm-card__title b {
    font-size: 1.56rem !important;
    line-height: 1.50 !important;
    font-weight: 800 !important;
}

/* Arabic */
header.header-one .pedm-section[dir="rtl"] .pedm-card__title,
header.header-one .pedm-section[dir="rtl"] .pedm-card__title b,
header.header-one .pedm-section.pedm-rtl .pedm-card__title,
header.header-one .pedm-section.pedm-rtl .pedm-card__title b {
    font-size: 1.66rem !important;
    line-height: 1.65 !important;
    font-weight: 800 !important;
}

/* Hidden fields still inherit Tajawal if enabled later. */
header.header-one .pedm-section .pedm-card__category,
header.header-one .pedm-section .pedm-card__description {
    font-family: inherit !important;
}

/* --------------------------------------------------------------------------
   CTA
   Guide: small heading/button weight 700
   -------------------------------------------------------------------------- */

header.header-one .pedm-section .pedm-cta,
header.header-one .pedm-section .pedm-cta .rts-btn,
header.header-one .pedm-section .pedm-cta i {
    font-family: inherit !important;
    font-size: 15px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
}

/* --------------------------------------------------------------------------
   Tablet
   -------------------------------------------------------------------------- */

@media (max-width: 991.98px) {
    header.header-one .pedm-section[dir="ltr"] .pedm-title,
    header.header-one .pedm-section.pedm-ltr .pedm-title {
        font-size: 2.08rem !important;
        line-height: 1.42 !important;
    }

    header.header-one .pedm-section[dir="rtl"] .pedm-title,
    header.header-one .pedm-section.pedm-rtl .pedm-title {
        font-size: 2.18rem !important;
        line-height: 1.58 !important;
    }

    header.header-one .pedm-section[dir="ltr"] .pedm-description,
    header.header-one .pedm-section.pedm-ltr .pedm-description {
        font-size: 1.48rem !important;
        line-height: 2 !important;
    }

    header.header-one .pedm-section[dir="rtl"] .pedm-description,
    header.header-one .pedm-section.pedm-rtl .pedm-description {
        font-size: 1.48rem !important;
        line-height: 2.12 !important;
    }
}

/* --------------------------------------------------------------------------
   Mobile
   Guide mobile card-title sizes:
   English 1.82rem / Arabic 1.92rem
   -------------------------------------------------------------------------- */

@media (max-width: 767.98px) {
    header.header-one .pedm-section[dir="ltr"] .pedm-title,
    header.header-one .pedm-section.pedm-ltr .pedm-title {
        font-size: 1.82rem !important;
        line-height: 1.42 !important;
    }

    header.header-one .pedm-section[dir="rtl"] .pedm-title,
    header.header-one .pedm-section.pedm-rtl .pedm-title {
        font-size: 1.92rem !important;
        line-height: 1.58 !important;
    }

    header.header-one .pedm-section[dir="ltr"] .pedm-description,
    header.header-one .pedm-section.pedm-ltr .pedm-description {
        font-size: 1.36rem !important;
        line-height: 2 !important;
    }

    header.header-one .pedm-section[dir="rtl"] .pedm-description,
    header.header-one .pedm-section.pedm-rtl .pedm-description {
        font-size: 1.43rem !important;
        line-height: 2.10 !important;
    }

    header.header-one .pedm-section[dir="ltr"] .pedm-card__title,
    header.header-one .pedm-section[dir="ltr"] .pedm-card__title b,
    header.header-one .pedm-section.pedm-ltr .pedm-card__title,
    header.header-one .pedm-section.pedm-ltr .pedm-card__title b {
        font-size: 1.82rem !important;
        line-height: 1.50 !important;
    }

    header.header-one .pedm-section[dir="rtl"] .pedm-card__title,
    header.header-one .pedm-section[dir="rtl"] .pedm-card__title b,
    header.header-one .pedm-section.pedm-rtl .pedm-card__title,
    header.header-one .pedm-section.pedm-rtl .pedm-card__title b {
        font-size: 1.92rem !important;
        line-height: 1.65 !important;
    }
}

/* --------------------------------------------------------------------------
   Small mobile
   -------------------------------------------------------------------------- */

@media (max-width: 575.98px) {
    header.header-one .pedm-section .pedm-eyebrow {
        font-size: 12px !important;
    }

    header.header-one .pedm-section[dir="ltr"] .pedm-title,
    header.header-one .pedm-section.pedm-ltr .pedm-title {
        font-size: 1.72rem !important;
    }

    header.header-one .pedm-section[dir="rtl"] .pedm-title,
    header.header-one .pedm-section.pedm-rtl .pedm-title {
        font-size: 1.82rem !important;
    }

    header.header-one .pedm-section[dir="ltr"] .pedm-card__title,
    header.header-one .pedm-section[dir="ltr"] .pedm-card__title b,
    header.header-one .pedm-section.pedm-ltr .pedm-card__title,
    header.header-one .pedm-section.pedm-ltr .pedm-card__title b {
        font-size: 1.72rem !important;
    }

    header.header-one .pedm-section[dir="rtl"] .pedm-card__title,
    header.header-one .pedm-section[dir="rtl"] .pedm-card__title b,
    header.header-one .pedm-section.pedm-rtl .pedm-card__title,
    header.header-one .pedm-section.pedm-rtl .pedm-card__title b {
        font-size: 1.82rem !important;
    }
}

/* =========================================================
   Building Excellence Across Every Sector
   عرض العنوان في سطر واحد
========================================================= */

.pedm-title {
    width: max-content !important;
    max-width: none !important;

    white-space: nowrap !important;
    word-break: normal !important;
    overflow-wrap: normal !important;

    line-height: 1.35 !important;
}
@media (min-width: 1400px) {

    .pedm-title {
        width: max-content !important;
        max-width: none !important;

        white-space: nowrap !important;

        font-size: 2.1rem !important;
        line-height: 1.35 !important;
        font-weight: 800 !important;
    }
}


@media (max-width: 991.98px) {

    .pedm-title {
        width: auto !important;
        max-width: 100% !important;

        white-space: normal !important;
    }
}

/* ==========================================================================
   PROJECTS EDITORIAL — LANGUAGE FONT POLICY
   Arabic = Tajawal | English = DM Sans
   ========================================================================== */

html[lang^="ar"] header.header-one .pedm-section[dir="rtl"],
html[lang^="ar"] header.header-one .pedm-section[dir="rtl"]
:is(h1, h2, h3, h4, h5, h6, p, a, span, b, strong, button),
html[lang^="ar"] header.header-one .pedm-section.pedm-rtl,
html[lang^="ar"] header.header-one .pedm-section.pedm-rtl
:is(h1, h2, h3, h4, h5, h6, p, a, span, b, strong, button) {
    font-family: "Tajawal", Arial, sans-serif !important;
    letter-spacing: 0 !important;
}

html[lang^="en"] header.header-one .pedm-section[dir="ltr"],
html[lang^="en"] header.header-one .pedm-section[dir="ltr"]
:is(h1, h2, h3, h4, h5, h6, p, a, span, b, strong, button),
html[lang^="en"] header.header-one .pedm-section.pedm-ltr,
html[lang^="en"] header.header-one .pedm-section.pedm-ltr
:is(h1, h2, h3, h4, h5, h6, p, a, span, b, strong, button) {
    font-family: "DM Sans", Arial, sans-serif !important;
}

/* This CTA uses an <i> element as a text wrapper in the supplied Blade. */
html[lang^="ar"] header.header-one .pedm-section[dir="rtl"] .pedm-cta i {
    font-family: "Tajawal", Arial, sans-serif !important;
}

html[lang^="en"] header.header-one .pedm-section[dir="ltr"] .pedm-cta i {
    font-family: "DM Sans", Arial, sans-serif !important;
}


/* =========================================================
   PROJECTS EDITORIAL
   Responsive fix for large / 27-inch+ screens
   ========================================================= */


/* ---------------------------------------------------------
   English desktop
   منع قص عنوان Building Excellence...
   --------------------------------------------------------- */

@media (min-width: 1200px) {

    header.header-one .pedm-section.pedm-ltr .pedm-title,
    header.header-one .pedm-section[dir="ltr"] .pedm-title {

        width: 100% !important;
        max-width: 100% !important;

        white-space: normal !important;
        word-break: normal !important;
        overflow-wrap: normal !important;

        overflow: visible !important;

        font-size: clamp(1.9rem, 1.6vw, 2.1rem) !important;
        line-height: 1.35 !important;
    }
}


/* ---------------------------------------------------------
   Large screens - 27 inch / QHD / 2K / 4K
   توسيع Mega Menu + عمود النص
   --------------------------------------------------------- */

@media (min-width: 1800px) {

    header.header-one .pe-nav-project-menu {
        width: min(1600px, calc(100vw - 100px)) !important;
    }


    header.header-one .pedm-shell {
        width: 100% !important;
        max-width: 1600px !important;
    }


    /* English:
       Cards = left
       Intro = right
    */
    header.header-one .pedm-section.pedm-ltr .pedm-shell,
    header.header-one .pedm-section[dir="ltr"] .pedm-shell {

        grid-template-columns:
            minmax(0, 1fr)
            minmax(520px, 600px) !important;

        column-gap: 55px !important;
    }


    /* العنوان يصبح سطر واحد لأن العمود أصبح واسعاً */
    header.header-one .pedm-section.pedm-ltr .pedm-title,
    header.header-one .pedm-section[dir="ltr"] .pedm-title {

        width: 100% !important;
        max-width: none !important;

        white-space: nowrap !important;

        font-size: clamp(1.9rem, 1.25vw, 2.15rem) !important;
        line-height: 1.35 !important;
    }
}


/* ---------------------------------------------------------
   Very Large Screens - 2K / 4K
   --------------------------------------------------------- */

@media (min-width: 2200px) {

    header.header-one .pe-nav-project-menu {
        width: min(1700px, calc(100vw - 140px)) !important;
    }


    header.header-one .pedm-shell {
        max-width: 1700px !important;
    }


    header.header-one .pedm-section.pedm-ltr .pedm-shell,
    header.header-one .pedm-section[dir="ltr"] .pedm-shell {

        grid-template-columns:
            minmax(0, 1fr)
            minmax(580px, 650px) !important;

        column-gap: 65px !important;
    }


    header.header-one .pedm-section.pedm-ltr .pedm-title,
    header.header-one .pedm-section[dir="ltr"] .pedm-title {

        white-space: nowrap !important;

        font-size: 2.15rem !important;
    }
}
