/* =========================================================
   PKL HEADER — FINAL RESPONSIVE LAYOUT
   File: public/assets/pkl/css/nav.css

   FINAL DESKTOP LAYOUT

   English (physical left -> right):
   PKL | About | Projects | Warehouses | Career | Contact | العربية | Login

   Arabic (physical left -> right):
   English | تسجيل الدخول | اتصل بنا | الوظائف | المستودعات | المشاريع | من نحن | PKL

   Therefore in Arabic:
   - Language + Login are at the EXTREME LEFT.
   - Logo is at the EXTREME RIGHT.
   - Navigation stays between them.

   The fix is structural: desktop tools are NOT inside <ul>.
   ========================================================= */

:root {
    --pkl-header-cyan: #00c8f0;
    --pkl-header-white: #f7f7f7;
    --pkl-header-dark: #0d1b2a;
    --pkl-header-border: rgba(0, 200, 240, .34);
    --pkl-header-height: 86px;
}

/* ---------------------------------------------------------
   Full-width header shell — this is what allows true far-left
   and far-right placement.
   --------------------------------------------------------- */
.header-one .pkl-header-shell {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding-inline: clamp(22px, 2.6vw, 52px) !important;
}

.header-one .header-main-one-wrapper {
    width: 100% !important;
    min-height: var(--pkl-header-height) !important;
    margin: 0 !important;
    padding: 0 !important;
    direction: ltr !important;
}

.header-one .logo-box,
.header-one .main-header,
.header-one .pkl-header-desktop-tools,
.header-one .pkl-header-mobile-tools {
    min-width: 0;
}

.header-one .logo-box a,
.header-one .logo-box img {
    display: block;
}

.header-one .logo-box img {
    width: clamp(145px, 9.8vw, 205px) !important;
    height: auto !important;
    object-fit: contain !important;
}

/* ---------------------------------------------------------
   DESKTOP >= 1200px
   Use CSS GRID with explicit PHYSICAL areas.
   No RTL flex-order tricks.
   --------------------------------------------------------- */
@media (min-width: 1200px) {

    .header-one .header-main-one-wrapper {
        display: grid !important;
        align-items: center !important;
        column-gap: clamp(16px, 1.8vw, 34px) !important;
    }

    /* English: logo LEFT, tools RIGHT */
    html[lang^="en"] .header-one .header-main-one-wrapper,
    html[dir="ltr"] .header-one .header-main-one-wrapper {
        grid-template-columns:
            minmax(160px, 220px)
            minmax(0, 1fr)
            minmax(245px, 315px) !important;
        grid-template-areas: "logo nav tools" !important;
    }

    /* Arabic: tools LEFT, logo RIGHT */
    html[lang^="ar"] .header-one .header-main-one-wrapper,
    html[dir="rtl"] .header-one .header-main-one-wrapper {
        grid-template-columns:
            minmax(245px, 315px)
            minmax(0, 1fr)
            minmax(160px, 220px) !important;
        grid-template-areas: "tools nav logo" !important;
    }

    .header-one .logo-box {
        grid-area: logo !important;
        margin: 0 !important;
        padding: 0 !important;
        align-self: center !important;
    }

    html[lang^="en"] .header-one .logo-box,
    html[dir="ltr"] .header-one .logo-box {
        justify-self: start !important;
    }

    html[lang^="ar"] .header-one .logo-box,
    html[dir="rtl"] .header-one .logo-box {
        justify-self: end !important;
    }

    .header-one .main-header {
        grid-area: nav !important;
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .header-one .nav-area {
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .header-one .nav-area > .pkl-desktop-nav {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        gap: clamp(18px, 1.65vw, 34px) !important;
        list-style: none !important;
    }

    html[lang^="en"] .header-one .nav-area > .pkl-desktop-nav,
    html[dir="ltr"] .header-one .nav-area > .pkl-desktop-nav {
        direction: ltr !important;
        flex-direction: row !important;
    }

    html[lang^="ar"] .header-one .nav-area > .pkl-desktop-nav,
    html[dir="rtl"] .header-one .nav-area > .pkl-desktop-nav {
        direction: rtl !important;
        flex-direction: row !important;
    }

    .header-one .pkl-primary-nav-item {
        flex: 0 0 auto !important;
        margin: 0 !important;
        padding: 0 !important;
        white-space: nowrap !important;
    }

    .header-one .nav-main-link {
        white-space: nowrap !important;
    }

    html[lang^="ar"] .header-one .nav-main-link,
    html[dir="rtl"] .header-one .nav-main-link {
        direction: rtl !important;
        text-align: right !important;
        font-family: "PKL Tajawal", "Tajawal", Tahoma, Arial, sans-serif !important;
        letter-spacing: 0 !important;
    }

    /* Desktop tools are a SEPARATE grid area. */
    .header-one .pkl-header-desktop-tools {
        grid-area: tools !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        gap: 9px !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        direction: ltr !important;
    }

    html[lang^="en"] .header-one .pkl-header-desktop-tools,
    html[dir="ltr"] .header-one .pkl-header-desktop-tools {
        justify-content: flex-end !important;
    }

    /* THIS pins both controls to the extreme LEFT in Arabic. */
    html[lang^="ar"] .header-one .pkl-header-desktop-tools,
    html[dir="rtl"] .header-one .pkl-header-desktop-tools {
        justify-content: flex-start !important;
    }

    .header-one .pkl-header-desktop-tools__language,
    .header-one .pkl-header-desktop-tools__auth {
        flex: 0 0 auto !important;
    }

    .header-one .pkl-header-mobile-tools {
        display: none !important;
    }
}

/* ---------------------------------------------------------
   Language switcher — TEXT ONLY
   --------------------------------------------------------- */
.header-one .pkl-language-switcher--text-only {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 0 !important;
    height: 44px !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 0 15px !important;
    border: 1px solid var(--pkl-header-border) !important;
    border-radius: 999px !important;
    background: var(--pkl-header-white) !important;
    color: var(--pkl-header-dark) !important;
    box-shadow: none !important;
    gap: 0 !important;
    white-space: nowrap !important;
    text-decoration: none !important;
}

.header-one .pkl-language-switcher--text-only .pkl-language-switcher__icon,
.header-one .pkl-language-switcher--text-only::before,
.header-one .pkl-language-switcher--text-only::after {
    display: none !important;
    content: none !important;
}

.header-one .pkl-language-switcher--text-only .pkl-language-switcher__label {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--pkl-header-dark) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

.header-one .pkl-language-switcher--text-only.pkl-language-switcher--to-ar .pkl-language-switcher__label {
    font-family: "PKL Tajawal", "Tajawal", Tahoma, Arial, sans-serif !important;
    font-size: 15px !important;
    font-weight: 500 !important;
}

/* ---------------------------------------------------------
   AUTH CONTROL
   --------------------------------------------------------- */
.header-one .pkl-auth-actions {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
}

.header-one .pkl-auth-btn {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    min-width: 174px !important;
    height: 48px !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 5px 12px 5px 6px !important;
    gap: 10px !important;
    border: 1px solid rgba(0, 200, 240, .42) !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, #0d1b2a 0%, #102f43 100%) !important;
    color: var(--pkl-header-white) !important;
    box-shadow: 0 8px 24px rgba(13,27,42,.15) !important;
    text-decoration: none !important;
    overflow: hidden !important;
    white-space: nowrap !important;
}

.header-one .pkl-auth-btn::before,
.header-one .pkl-auth-btn::after {
    display: none !important;
    content: none !important;
}

.header-one .pkl-auth-btn__icon {
    display: grid !important;
    place-items: center !important;
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
    flex: 0 0 36px !important;
    border-radius: 50% !important;
    border: 1px solid rgba(247,247,247,.15) !important;
    background: var(--pkl-header-cyan) !important;
    color: var(--pkl-header-dark) !important;
}

.header-one .pkl-auth-btn__icon svg {
    width: 19px !important;
    height: 19px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.8 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

.header-one .pkl-auth-btn__content {
    display: flex !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 3px !important;
}

.header-one .pkl-auth-btn__label {
    color: var(--pkl-header-white) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.05 !important;
    white-space: nowrap !important;
}

.header-one .pkl-auth-btn__meta {
    max-width: 100px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    color: rgba(247,247,247,.66) !important;
    font-size: 9px !important;
    font-weight: 500 !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
}

.header-one .pkl-auth-btn__chevron {
    display: grid !important;
    place-items: center !important;
    width: 17px !important;
    height: 17px !important;
    flex: 0 0 17px !important;
    color: rgba(247,247,247,.58) !important;
}

.header-one .pkl-auth-btn__chevron svg {
    width: 14px !important;
    height: 14px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.8 !important;
}

html[lang^="ar"] .header-one .pkl-auth-btn,
html[dir="rtl"] .header-one .pkl-auth-btn {
    direction: rtl !important;
    padding: 5px 6px 5px 12px !important;
}

html[lang^="ar"] .header-one .pkl-auth-btn__content,
html[dir="rtl"] .header-one .pkl-auth-btn__content {
    text-align: right !important;
    font-family: "PKL Tajawal", "Tajawal", Tahoma, Arial, sans-serif !important;
}

html[lang^="ar"] .header-one .pkl-auth-btn__chevron,
html[dir="rtl"] .header-one .pkl-auth-btn__chevron {
    transform: rotate(180deg) !important;
}

.header-one .pkl-auth-logout-form {
    display: inline-flex !important;
    margin: 0 !important;
}

.header-one .pkl-auth-icon-btn {
    display: grid !important;
    place-items: center !important;
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    padding: 0 !important;
    border: 1px solid var(--pkl-header-border) !important;
    border-radius: 50% !important;
    background: var(--pkl-header-white) !important;
    color: var(--pkl-header-dark) !important;
}

.header-one .pkl-auth-icon-btn svg {
    width: 18px !important;
    height: 18px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.8 !important;
}

/* ---------------------------------------------------------
   Common laptop widths
   --------------------------------------------------------- */
@media (min-width: 1200px) and (max-width: 1450px) {
    .header-one .pkl-header-shell {
        padding-inline: 20px !important;
    }

    html[lang^="en"] .header-one .header-main-one-wrapper,
    html[dir="ltr"] .header-one .header-main-one-wrapper {
        grid-template-columns: 155px minmax(0, 1fr) 250px !important;
    }

    html[lang^="ar"] .header-one .header-main-one-wrapper,
    html[dir="rtl"] .header-one .header-main-one-wrapper {
        grid-template-columns: 250px minmax(0, 1fr) 155px !important;
    }

    .header-one .logo-box img {
        width: 150px !important;
    }

    .header-one .nav-area > .pkl-desktop-nav {
        gap: 14px !important;
    }

    .header-one .pkl-auth-btn {
        min-width: 158px !important;
    }
}

/* ---------------------------------------------------------
   TABLET / MOBILE < 1200px
   --------------------------------------------------------- */
@media (max-width: 1199.98px) {
    .header-one .pkl-header-shell {
        padding-inline: 16px !important;
    }

    .header-one .header-main-one-wrapper {
        display: grid !important;
        align-items: center !important;
        min-height: 72px !important;
        column-gap: 12px !important;
    }

    html[lang^="en"] .header-one .header-main-one-wrapper,
    html[dir="ltr"] .header-one .header-main-one-wrapper {
        grid-template-columns: auto minmax(0,1fr) !important;
        grid-template-areas: "logo mobile" !important;
    }

    html[lang^="ar"] .header-one .header-main-one-wrapper,
    html[dir="rtl"] .header-one .header-main-one-wrapper {
        grid-template-columns: minmax(0,1fr) auto !important;
        grid-template-areas: "mobile logo" !important;
    }

    .header-one .logo-box {
        grid-area: logo !important;
        margin: 0 !important;
    }

    html[lang^="en"] .header-one .logo-box { justify-self: start !important; }
    html[lang^="ar"] .header-one .logo-box { justify-self: end !important; }

    .header-one .logo-box img {
        width: clamp(108px, 24vw, 145px) !important;
    }

    .header-one .main-header,
    .header-one .pkl-header-desktop-tools {
        display: none !important;
    }

    .header-one .pkl-header-mobile-tools {
        grid-area: mobile !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 7px !important;
        min-width: 0 !important;
    }

    html[lang^="en"] .header-one .pkl-header-mobile-tools {
        justify-content: flex-end !important;
        direction: ltr !important;
    }

    html[lang^="ar"] .header-one .pkl-header-mobile-tools,
    html[dir="rtl"] .header-one .pkl-header-mobile-tools {
        justify-content: flex-start !important;
        direction: ltr !important;
    }

    .header-one .pkl-header-mobile-tools .pkl-language-switcher--text-only {
        height: 40px !important;
        min-height: 40px !important;
        padding: 0 10px !important;
    }

    .header-one .pkl-header-mobile-tools .pkl-language-switcher__label {
        font-size: 13px !important;
    }

    .header-one .pkl-auth-actions--compact .pkl-auth-btn {
        display: grid !important;
        place-items: center !important;
        width: 40px !important;
        min-width: 40px !important;
        height: 40px !important;
        min-height: 40px !important;
        padding: 3px !important;
        gap: 0 !important;
        border-radius: 50% !important;
    }

    .header-one .pkl-auth-actions--compact .pkl-auth-btn__icon {
        width: 32px !important;
        min-width: 32px !important;
        height: 32px !important;
        flex-basis: 32px !important;
    }

    .header-one .pkl-auth-actions--compact .pkl-auth-btn__content,
    .header-one .pkl-auth-actions--compact .pkl-auth-btn__chevron {
        display: none !important;
    }

    .header-one .menu-btn {
        margin: 0 !important;
    }
}

@media (max-width: 420px) {
    .header-one .pkl-header-shell {
        padding-inline: 10px !important;
    }

    .header-one .pkl-header-mobile-tools {
        gap: 5px !important;
    }

    .header-one .pkl-header-mobile-tools .pkl-language-switcher--text-only {
        height: 36px !important;
        min-height: 36px !important;
        padding: 0 8px !important;
    }

    .header-one .pkl-header-mobile-tools .pkl-language-switcher__label {
        font-size: 12px !important;
    }

    .header-one .pkl-auth-actions--compact .pkl-auth-btn {
        width: 36px !important;
        min-width: 36px !important;
        height: 36px !important;
        min-height: 36px !important;
    }

    .header-one .pkl-auth-actions--compact .pkl-auth-btn__icon {
        width: 28px !important;
        min-width: 28px !important;
        height: 28px !important;
        flex-basis: 28px !important;
    }
}



/* =========================================================
   PKL HEADER — PHYSICAL ORDER FINAL FIX
   MUST STAY AT THE VERY END OF nav.css

   This fix does NOT depend on html dir/order/grid-template-areas.
   header-one.blade.php physically changes DOM order per language.

   Arabic physical left -> right:
   [ English ][ Login ] | NAV | PKL

   English physical left -> right:
   PKL | NAV | [ العربية ][ Login ]
   ========================================================= */

/* Header must use the full browser width. */
.header-one .pkl-header-shell {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding-left: clamp(12px, 1.25vw, 24px) !important;
    padding-right: clamp(12px, 1.25vw, 24px) !important;
}

/* Kill any old wrapper layout because desktop/mobile now have their own rows. */
.header-one .header-main-one-wrapper {
    display: none !important;
}


/* =========================================================
   DESKTOP >= 1200px
   ========================================================= */
@media (min-width: 1200px) {

    .header-one .pkl-header-desktop-row {
        /*
         * DOM is already in the correct PHYSICAL order.
         * Force LTR layout so Arabic cannot reverse the three regions.
         */
        direction: ltr !important;

        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;

        width: 100% !important;
        min-width: 0 !important;
        min-height: 84px !important;

        margin: 0 !important;
        padding: 0 !important;

        gap: clamp(14px, 1.25vw, 26px) !important;
    }

    /* LEFT/RIGHT utility area. Fixed enough for language + login. */
    .header-one .pkl-header-desktop-tools {
        display: flex !important;
        align-items: center !important;

        flex: 0 0 clamp(270px, 17vw, 320px) !important;
        width: clamp(270px, 17vw, 320px) !important;
        min-width: 270px !important;

        margin: 0 !important;
        padding: 0 !important;

        gap: 9px !important;
        direction: ltr !important;
    }

    /* Because Arabic DOM puts tools FIRST, this pins them to physical far LEFT. */
    .header-one.pkl-header--ar .pkl-header-desktop-tools {
        justify-content: flex-start !important;
    }

    /* English DOM puts tools LAST, so align them to physical far RIGHT. */
    .header-one.pkl-header--en .pkl-header-desktop-tools {
        justify-content: flex-end !important;
    }

    .header-one .pkl-header-desktop-tools__language,
    .header-one .pkl-header-desktop-tools__auth {
        flex: 0 0 auto !important;
        order: 0 !important;
        margin: 0 !important;
    }

    /* Navigation owns ALL remaining center space. */
    .header-one .pkl-header-nav-host {
        display: block !important;

        flex: 1 1 0 !important;
        width: auto !important;
        min-width: 0 !important;

        margin: 0 !important;
        padding: 0 !important;
    }

    .header-one .pkl-header-nav-host .nav-area {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .header-one .pkl-header-nav-host .pkl-desktop-nav {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-wrap: nowrap !important;

        width: 100% !important;
        min-width: 0 !important;

        margin: 0 !important;
        padding: 0 !important;

        gap: clamp(18px, 1.55vw, 32px) !important;

        list-style: none !important;
    }

    /* Only the links themselves use RTL in Arabic. */
    .header-one.pkl-header--ar .pkl-header-nav-host .pkl-desktop-nav {
        direction: rtl !important;
        flex-direction: row !important;
    }

    .header-one.pkl-header--en .pkl-header-nav-host .pkl-desktop-nav {
        direction: ltr !important;
        flex-direction: row !important;
    }

    .header-one .pkl-primary-nav-item {
        flex: 0 0 auto !important;
        margin: 0 !important;
        padding: 0 !important;
        white-space: nowrap !important;
        order: 0 !important;
    }

    /* Logo area. Because Arabic DOM puts logo LAST, it is physical far RIGHT. */
    .header-one .pkl-header-logo-host {
        display: flex !important;
        align-items: center !important;

        flex: 0 0 clamp(165px, 11vw, 220px) !important;
        width: clamp(165px, 11vw, 220px) !important;
        min-width: 165px !important;

        margin: 0 !important;
        padding: 0 !important;
    }

    .header-one.pkl-header--ar .pkl-header-logo-host {
        justify-content: flex-end !important;
    }

    .header-one.pkl-header--en .pkl-header-logo-host {
        justify-content: flex-start !important;
    }

    .header-one .pkl-header-logo-host a {
        display: inline-flex !important;
        align-items: center !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .header-one .pkl-header-logo-host img {
        display: block !important;
        width: clamp(145px, 9.5vw, 205px) !important;
        max-width: 100% !important;
        height: auto !important;
        margin: 0 !important;
    }

    .header-one .pkl-header-mobile-row {
        display: none !important;
    }
}


/* =========================================================
   LAPTOP WIDTHS
   Prevent center nav from crowding tools/logo.
   ========================================================= */
@media (min-width: 1200px) and (max-width: 1450px) {

    .header-one .pkl-header-desktop-row {
        gap: 10px !important;
    }

    .header-one .pkl-header-desktop-tools {
        flex-basis: 250px !important;
        width: 250px !important;
        min-width: 250px !important;
        gap: 6px !important;
    }

    .header-one .pkl-header-logo-host {
        flex-basis: 170px !important;
        width: 170px !important;
        min-width: 170px !important;
    }

    .header-one .pkl-header-nav-host .pkl-desktop-nav {
        gap: 12px !important;
    }

    .header-one .pkl-auth-btn {
        min-width: 150px !important;
    }
}


/* =========================================================
   TABLET / MOBILE < 1200px
   Physical order also follows DOM:
   AR: controls left, logo right
   EN: logo left, controls right
   ========================================================= */
@media (max-width: 1199.98px) {

    .header-one .pkl-header-desktop-row {
        display: none !important;
    }

    .header-one .pkl-header-mobile-row {
        direction: ltr !important;

        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;

        width: 100% !important;
        min-height: 68px !important;

        margin: 0 !important;
        padding: 0 !important;

        gap: 10px !important;
    }

    .header-one .pkl-header-mobile-tools {
        display: inline-flex !important;
        align-items: center !important;

        flex: 0 0 auto !important;
        gap: 6px !important;

        direction: ltr !important;
    }

    .header-one .pkl-header-logo-host {
        display: flex !important;
        align-items: center !important;
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: 0 !important;
    }

    .header-one.pkl-header--ar .pkl-header-logo-host {
        justify-content: flex-end !important;
    }

    .header-one.pkl-header--en .pkl-header-logo-host {
        justify-content: flex-start !important;
    }

    .header-one .pkl-header-logo-host img {
        width: clamp(112px, 22vw, 150px) !important;
        height: auto !important;
    }
}


/* =========================================================
   FINAL SAFETY RESET
   Old Arabic order/grid rules must not move desktop regions.
   ========================================================= */
@media (min-width: 1200px) {

    .header-one.pkl-header--ar .pkl-header-desktop-tools,
    .header-one.pkl-header--ar .pkl-header-nav-host,
    .header-one.pkl-header--ar .pkl-header-logo-host,
    .header-one.pkl-header--en .pkl-header-desktop-tools,
    .header-one.pkl-header--en .pkl-header-nav-host,
    .header-one.pkl-header--en .pkl-header-logo-host {
        grid-area: auto !important;
        grid-column: auto !important;
        grid-row: auto !important;
        order: 0 !important;
    }
}



/* =========================================================
   PKL HEADER — EXACT LOGO SCALE FIX
   FINAL OVERRIDE — MUST BE THE LAST BLOCK IN nav.css

   Based on the two reference screenshots:
   current visible logo ≈ 107 x 38 px
   desired visible logo ≈ 193 x 69 px
   required visual scale ≈ 1.80x

   We therefore scale the ACTUAL logo image instead of only
   changing width. This avoids the internal transparent-space
   problem in the PNG and preserves the current header height.
   ========================================================= */

@media (min-width: 1600px) {

    /* Reserve enough space so the enlarged logo never overlaps navigation */
    .header-one .pkl-header-logo-host {
        flex: 0 0 340px !important;
        width: 340px !important;
        min-width: 340px !important;
        max-width: 340px !important;

        display: flex !important;
        align-items: center !important;

        margin: 0 !important;
        padding: 0 !important;

        overflow: visible !important;
    }

    /* Arabic = physical far right */
    .header-one.pkl-header--ar .pkl-header-logo-host {
        justify-content: flex-end !important;
    }

    /* English = physical far left */
    .header-one.pkl-header--en .pkl-header-logo-host {
        justify-content: flex-start !important;
    }

    .header-one .pkl-header-logo-host > a {
        display: flex !important;
        align-items: center !important;

        width: 100% !important;
        height: 100% !important;

        margin: 0 !important;
        padding: 0 !important;

        overflow: visible !important;
    }

    /*
       Target the exact PKL asset used by header-one.blade.php.
       Keep the normal layout box at the current size, then
       enlarge the rendered image exactly 1.80x.
    */
    .header-one .pkl-header-logo-host img[src*="logisitc_logo"] {
        display: block !important;

        width: 180px !important;
        min-width: 180px !important;
        max-width: 180px !important;

        height: auto !important;
        max-height: none !important;

        margin: 0 !important;
        padding: 0 !important;

        object-fit: contain !important;

        transform: scale(1.80) !important;
        backface-visibility: hidden !important;

        position: relative !important;
        z-index: 3 !important;
    }

    /* Enlarge toward the page center without moving the outer edge */
    .header-one.pkl-header--ar
    .pkl-header-logo-host img[src*="logisitc_logo"] {
        transform-origin: right center !important;
    }

    .header-one.pkl-header--en
    .pkl-header-logo-host img[src*="logisitc_logo"] {
        transform-origin: left center !important;
    }
}


/* =========================================================
   1451px–1599px
   ========================================================= */
@media (min-width: 1451px) and (max-width: 1599.98px) {

    .header-one .pkl-header-logo-host {
        flex: 0 0 290px !important;
        width: 290px !important;
        min-width: 290px !important;
        max-width: 290px !important;

        overflow: visible !important;
    }

    .header-one .pkl-header-logo-host img[src*="logisitc_logo"] {
        width: 170px !important;
        min-width: 170px !important;
        max-width: 170px !important;

        height: auto !important;
        max-height: none !important;

        transform: scale(1.65) !important;
    }

    .header-one.pkl-header--ar
    .pkl-header-logo-host img[src*="logisitc_logo"] {
        transform-origin: right center !important;
    }

    .header-one.pkl-header--en
    .pkl-header-logo-host img[src*="logisitc_logo"] {
        transform-origin: left center !important;
    }
}


/* =========================================================
   1200px–1450px
   ========================================================= */
@media (min-width: 1200px) and (max-width: 1450px) {

    .header-one .pkl-header-logo-host {
        flex: 0 0 230px !important;
        width: 230px !important;
        min-width: 230px !important;
        max-width: 230px !important;

        overflow: visible !important;
    }

    .header-one .pkl-header-logo-host img[src*="logisitc_logo"] {
        width: 150px !important;
        min-width: 150px !important;
        max-width: 150px !important;

        height: auto !important;
        max-height: none !important;

        transform: scale(1.42) !important;
    }

    .header-one.pkl-header--ar
    .pkl-header-logo-host img[src*="logisitc_logo"] {
        transform-origin: right center !important;
    }

    .header-one.pkl-header--en
    .pkl-header-logo-host img[src*="logisitc_logo"] {
        transform-origin: left center !important;
    }
}


/* =========================================================
   Tablet / Mobile
   No transform scaling; use safe normal sizes.
   ========================================================= */
@media (max-width: 1199.98px) {

    .header-one .pkl-header-logo-host img[src*="logisitc_logo"] {
        transform: none !important;
        max-height: none !important;
    }
}
