/* SHADA-MOBILE-HEADER-R18 START */

/*
 * Correct the Farsi mobile logo composition only.
 * Desktop begins at 992px and is not affected.
 */
@media (max-width: 991.98px) {

    html[lang^="fa"] body
    .container-header
    .shada-header-logo--fa {
        box-sizing: border-box !important;

        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: center !important;

        gap: clamp(14px, 4vw, 28px) !important;

        width: calc(100vw - 48px) !important;
        min-width: 0 !important;
        max-width: 860px !important;

        direction: ltr !important;
        overflow: visible !important;
    }

    /*
     * Older header CSS positioned one or both children outside
     * normal flex flow. Reset those coordinates so flex order is
     * actually visible: text first, S second (physical right).
     */
    html[lang^="fa"] body
    .container-header
    .shada-header-logo--fa
    .shada-header-logo-fa__text {
        position: static !important;
        inset: auto !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;

        order: 1 !important;
        flex: 0 1 auto !important;
        min-width: 0 !important;

        float: none !important;
        translate: none !important;
        transform: none !important;

        margin: 0 !important;
        text-align: center !important;
        white-space: nowrap !important;
    }

    html[lang^="fa"] body
    .container-header
    .shada-header-logo--fa
    .shada-header-logo-fa__icon {
        position: static !important;
        inset: auto !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;

        order: 2 !important;
        flex:
            0 0
            clamp(72px, 13vw, 126px) !important;

        float: none !important;
        translate: none !important;
        transform: none !important;

        margin: 0 !important;
        object-fit: contain !important;
    }
}

/* SHADA-MOBILE-HEADER-R18 END */

/* === SHADA MOBILE HEADER CLEARANCE + POINTSVIEW POLISH V1 START === */

/*
 * Mobile only.
 * Desktop >= 992px is deliberately untouched.
 */

/*
 * The mobile navigation shell is inserted immediately
 * after the Joomla header. Give the English logo enough
 * white-header clearance so the teal control strip no
 * longer covers its lower edge.
 */
@media (max-width: 600px) {
    html[lang^="en"]
    body.site
    header.header.container-header.full-width {
        padding-bottom: 24px !important;
    }
}

@media (min-width: 601px) and (max-width: 991.98px) {
    html[lang^="en"]
    body.site
    header.header.container-header.full-width {
        padding-bottom: 14px !important;
    }
}


/*
 * Compact PointsView treatment inside the mobile drawer.
 * Keep the CTA and supporting description, but make it
 * read like a refined menu action instead of a large card.
 */
@media (max-width: 991.98px) {

    .shada-mobile-menu-drawer
    .shada-mobile-pointsview-cta-item {
        box-sizing: border-box !important;

        width: 100% !important;

        margin:
            .22rem 0 .48rem !important;

        padding: 0 !important;

        border: 0 !important;

        list-style: none !important;
    }


    .shada-mobile-menu-drawer
    .shada-mobile-pointsview-cta {
        box-sizing: border-box !important;

        position: relative !important;

        display: block !important;

        width: 100% !important;
        min-height: 0 !important;

        margin: 0 !important;

        padding:
            .62rem 2.15rem .60rem .72rem !important;

        border:
            1px solid
            rgba(255,255,255,.20) !important;

        border-radius: 7px !important;

        background:
            rgba(255,255,255,.065) !important;

        color: #ffffff !important;

        box-shadow: none !important;

        text-decoration: none !important;
    }


    .shada-mobile-menu-drawer
    .shada-mobile-pointsview-cta::after {
        content: "›" !important;

        position: absolute !important;

        top: 50% !important;
        right: .72rem !important;

        transform:
            translateY(-50%) !important;

        color:
            rgba(255,255,255,.76) !important;

        font-family:
            Arial,
            sans-serif !important;

        font-size: 1.35rem !important;
        font-weight: 400 !important;
        line-height: 1 !important;
    }


    .shada-mobile-menu-drawer
    .shada-mobile-pointsview-cta:hover,

    .shada-mobile-menu-drawer
    .shada-mobile-pointsview-cta:focus-visible,

    .shada-mobile-menu-drawer
    .shada-mobile-pointsview-cta:active {
        border-color:
            rgba(255,255,255,.30) !important;

        background:
            rgba(255,255,255,.10) !important;

        color: #ffffff !important;
    }


    .shada-mobile-menu-drawer
    .shada-mobile-pointsview-cta__label {
        display: block !important;

        margin: 0 !important;

        color: #ffffff !important;

        font-size: .96rem !important;
        font-weight: 760 !important;
        line-height: 1.18 !important;
    }


    .shada-mobile-menu-drawer
    .shada-mobile-pointsview-cta__description {
        display: block !important;

        margin: .14rem 0 0 !important;

        color:
            rgba(255,255,255,.72) !important;

        font-size: .70rem !important;
        font-weight: 500 !important;
        line-height: 1.24 !important;
    }
}

/* === SHADA MOBILE HEADER CLEARANCE + POINTSVIEW POLISH V1 END === */

