/*
 * AL-WASATA – Home Hero compact layout (v20)
 * Applied ONLY to /ar and /en homepage via body.wasata-home-page.
 * Preserve the existing original bilingual background images, text and
 * login-page / inner-page styling. Loaded AFTER existing theme overrides.
 */

body.wasata-home-page #hero {
    /* Existing shared Hero rules from v13/v16 were forcing ~60vh / >=450px. */
    height: auto !important;
    min-height: clamp(300px, 38svh, 410px) !important;
    max-height: none !important;
    box-sizing: border-box !important;
    width: 100%;

    /* Leave space for the fixed header, with much less decorative whitespace. */
    padding-block: calc(var(--wa-header-height, 88px) + 18px) 26px !important;
    padding-inline: 0 !important;

    /* Respect the language-specific MainSLIDE / MainSlidAr from style.css. */
    background-attachment: scroll !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: cover !important;

    display: flex !important;
    align-items: center !important;
    overflow: visible !important;
}

body.wasata-home-page #hero .container,
body.wasata-home-page #hero .row {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}
body.wasata-home-page #hero .container {
    padding-block: 0 !important;
}
body.wasata-home-page #hero .row > [class*="col-"] {
    min-width: 0;
}
body.wasata-home-page #hero h1 {
    font-size: clamp(1.65rem, 2.7vw, 2.5rem) !important;
    line-height: 1.22 !important;
    margin-bottom: 8px;
}
body.wasata-home-page #hero h2 {
    font-size: clamp(1.05rem, 1.9vw, 1.55rem) !important;
    line-height: 1.35 !important;
    margin-bottom: 8px;
}
body.wasata-home-page #hero h6 {
    font-size: clamp(.82rem, 1.1vw, .98rem) !important;
    line-height: 1.6 !important;
    margin-bottom: 3px;
}

@media (max-width: 991.98px) {
    body.wasata-home-page #hero {
        min-height: clamp(300px, 39svh, 390px) !important;
        padding-block: calc(var(--wa-header-height, 76px) + 16px) 22px !important;
    }
}

@media (max-width: 767.98px) {
    body.wasata-home-page #hero {
        min-height: clamp(290px, 43svh, 380px) !important;
        /* Height is allowed to grow for translated/long copy; never clip it. */
        padding-block: calc(var(--wa-header-height, 72px) + 14px) 20px !important;
        background-position: 50% center !important;
    }
    body.wasata-home-page #hero .container { padding-inline: 18px !important; }
    body.wasata-home-page #hero .row > [class*="col-"] { padding-top: 0 !important; }
    body.wasata-home-page #hero h1 { font-size: clamp(1.45rem, 6vw, 1.85rem) !important; }
    body.wasata-home-page #hero h2 { font-size: clamp(1.0rem, 4.2vw, 1.28rem) !important; }
    body.wasata-home-page #hero h6 { font-size: clamp(.8rem, 3.3vw, .92rem) !important; }
}

@media (max-width: 375px) {
    body.wasata-home-page #hero .container { padding-inline: 12px !important; }
    body.wasata-home-page #hero h6 { font-size: .8rem !important; }
}

/* This CSS deliberately does not alter login Hero or client portal banners. */
