/* =========================================================
   ABHSM page banner
   ========================================================= */

.abh-banner {
    --abh-banner-height: 240px;

    position: relative;
    width: 100%;
    height: var(--abh-banner-height);
    min-height: var(--abh-banner-height);
    padding: 0 !important;
    overflow: hidden;
    isolation: isolate;
    background-color: #26366d;
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
}

.abh-banner,
.abh-banner * {
    box-sizing: border-box;
}

.abh-banner::before,
body.dark-mode .abh-banner::before {
    display: none !important;
}

body.dark-mode .abh-banner {
    background-color: #26366d !important;
    background-blend-mode: normal !important;
}

/* =========================================================
   Background photo
   ========================================================= */

.abh-banner__photo {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.abh-banner__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 66%;
}

/* Soft arabesque pattern over the entire banner */

.abh-banner__arabesque {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: fill;
    opacity: 0.28;
    pointer-events: none;
    user-select: none;
}

/* =========================================================
   Separate colored layers
   ========================================================= */

.abh-banner__shape {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    height: 100%;
    object-fit: fill;
    object-position: left center;
    pointer-events: none;
    user-select: none;
}

/* Blue layer extending the furthest */

.abh-banner__shape--1 {
    z-index: 2;
    width: 62%;
}

/* Light-blue middle layer */

.abh-banner__shape--2 {
    z-index: 3;
    width: 59%;
}

/* Main dark-blue foreground */

.abh-banner__shape--3 {
    z-index: 4;
    width: 58%;
}

/* =========================================================
   Content
   ========================================================= */

.abh-banner__inner {
    position: relative;
    z-index: 6;
    display: flex;
    align-items: center;
    height: 100%;
    min-height: var(--abh-banner-height);
}

.abh-banner__content {
    width: 53%;
    min-width: 0;
    padding: 20px 0;
    color: #ffffff;
}

.abh-banner .content-box {
    min-width: 0;
    margin-bottom: 12px;
}

.abh-banner .content-box h1,
.abh-banner__content h1 {
    max-width: 760px;
    margin: 0;
    color: #ffffff;
    font-size: 46px;
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.5px;
    overflow-wrap: anywhere;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

/* White line below title */

.abh-banner__line {
    display: block;
    width: 60px;
    height: 4px;
    margin: 10px 0 16px;
    border-radius: 5px;
    background: #ffffff;
}

/* =========================================================
   Breadcrumb
   ========================================================= */

.abh-banner__breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.abh-banner__breadcrumb a,
.abh-banner__current {
    color: #ffffff;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.abh-banner__breadcrumb a {
    transition:
        color 0.25s ease,
        opacity 0.25s ease;
}

.abh-banner__breadcrumb a:hover {
    color: #4cc4e4;
}

.abh-banner__current {
    opacity: 0.82;
}

.abh-banner__separator-image {
    display: block;
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    object-fit: contain;
}

/*
If you want exactly the supplied design, where only the title and
white line are displayed, activate this:

.abh-banner__breadcrumb {
    display: none;
}
*/

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

.abh-banner.is-rtl .abh-banner__shape {
    right: 0;
    left: auto;
    object-position: right center;
    transform: scaleX(-1);
}

.abh-banner.is-rtl .abh-banner__content {
    margin-right: 0;
    margin-left: auto;
    text-align: right;
}

.abh-banner.is-rtl .abh-banner__line {
    margin-right: 0;
    margin-left: auto;
}

.abh-banner.is-rtl .abh-banner__separator-image {
    transform: none;
}

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

@media (max-width: 1199.98px) {
    .abh-banner {
        --abh-banner-height: 260px;
    }

    .abh-banner__shape--1 {
        width: 67%;
    }

    .abh-banner__shape--2 {
        width: 64%;
    }

    .abh-banner__shape--3 {
        width: 62%;
    }

    .abh-banner__content {
        width: 57%;
    }

    .abh-banner .content-box h1,
    .abh-banner__content h1 {
        font-size: 39px;
    }
}

@media (max-width: 991.98px) {
    .abh-banner {
        --abh-banner-height: 240px;
    }

    .abh-banner__shape--1 {
        width: 78%;
    }

    .abh-banner__shape--2 {
        width: 74%;
    }

    .abh-banner__shape--3 {
        width: 70%;
    }

    .abh-banner__content {
        width: 64%;
    }

    .abh-banner .content-box h1,
    .abh-banner__content h1 {
        font-size: 32px;
    }
}

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

@media (max-width: 767.98px) {
    .abh-banner {
        --abh-banner-height: 220px;
    }

    .abh-banner__photo::after {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(10, 49, 83, 0.18);
    }

    .abh-banner__shape--1 {
        width: 125%;
    }

    .abh-banner__shape--2 {
        width: 116%;
        opacity: 0.92;
    }

    .abh-banner__shape--3 {
        width: 105%;
        opacity: 0.94;
    }

    .abh-banner__content {
        width: 82%;
        padding: 22px 0;
    }

    .abh-banner .content-box h1,
    .abh-banner__content h1 {
        font-size: 27px;
        line-height: 1.18;
    }

    .abh-banner__line {
        width: 42px;
        height: 3px;
        margin: 10px 0 13px;
    }

    .abh-banner__breadcrumb {
        gap: 7px;
        font-size: 13px;
    }

    .abh-banner__separator-image {
        width: 13px;
        height: 13px;
        flex-basis: 13px;
    }
}

@media (max-width: 575.98px) {
    .abh-banner {
        --abh-banner-height: 200px;
    }

    .abh-banner__content {
        width: 90%;
    }

    .abh-banner .content-box h1,
    .abh-banner__content h1 {
        font-size: 23px;
    }

    .abh-banner__breadcrumb {
        gap: 6px;
        font-size: 12px;
    }

    .abh-banner__separator-image {
        width: 12px;
        height: 12px;
        flex-basis: 12px;
    }
}

.abh-banner h1.worm {
    position: relative;
    display: inline-block;
    padding-bottom: 24px;
}

.abh-banner h1.worm::before {
    content: "";
    position: absolute;
    left: 0;
    right: auto;
    bottom: 0;
    display: block;
    width: 70px;
    height: 20px;
    background-image: url("../images/icons/wave-icon-2.png"), url("../images/icons/wave-icon-2.png");
    background-repeat: no-repeat, no-repeat;
    background-position: left center, right center;
    background-size: 37px 9px, 37px 9px;
    pointer-events: none;
    transform: none;
}

.abh-banner.is-rtl h1.worm::before {
    right: 0;
    left: auto;
}
