/* =====================================================
   SERVICE DIVISIONS
===================================================== */

.almoallam-service-divisions {
    --almoallam-service-color: #f1ac1c;

    width: 100%;
    max-width: 1100px;

    margin: 0 auto;
}


/* =====================================================
   DIVISION FEATURED IMAGE HERO
   Full browser width
===================================================== */

.almoallam-service-divisions-title{
    text-align: center;
    padding-top: 30px;
    padding-bottom: 30px;
}

.almoallam-service-division-heroes {
    width: 100vw;
    max-width: none;

    position: relative;
    left: 50%;

    margin-left: -50vw;
    margin-right: -50vw;

    overflow: hidden;
}


.almoallam-service-division-hero {
    width: 100%;
    margin: 0;
}


.almoallam-service-division-hero[hidden] {
    display: none !important;
}


.almoallam-service-division-hero.is-active {
    display: block;
}


.almoallam-service-division-hero-image {
    display: block;

    width: 100%;
    height: auto;

    margin: 0;

    object-fit: cover;
}



/* =====================================================
   MAIN DIVISION NAVIGATION
===================================================== */

.almoallam-service-divisions-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;
    max-width: 850px;

    margin: 0 auto 48px;

    gap: 30px;
}


.almoallam-service-division-tab {
    flex: 0 0 auto;
    min-width: 190px;
    min-height: 40px;
    padding: 10px 20px;
    border: 0;
    background: #d1d2d4;
    color: #fff;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    font-size: 20px !important;
    text-transform: none !important;
    font-family: var(--wd-title-font) !important;
    padding-bottom: 10px !important;
    transition:
        background-color 0.25s ease,
        color 0.25s ease;
}


.almoallam-service-division-tab:hover {
    background: #d1d2d4;
    color: #fff;
}


.almoallam-service-division-tab.is-active {
    background: var(--almoallam-service-color);
    color: #fff;
}


/* =====================================================
   DIVISION PANELS
===================================================== */

.almoallam-service-division-panel {
    display: none;
}


.almoallam-service-division-panel.is-active {
    display: block;
}


/* =====================================================
   DIVISION INTRO
===================================================== */

.almoallam-service-divisions-intro {
    width: 100%;
    margin: 0 auto 38px;
    text-align: center;
}


.almoallam-service-divisions-heading {
    margin: 0;
    color: #003b5c;
    font-size: 24px;
    text-align: center;
    text-transform: uppercase;
    font-family: var(--wd-title-font) !important;
}


.almoallam-service-divisions-subtitle {
    margin: 0 0 25px;

    color: #f15a24;

    font-size: 20px;
    font-weight: 500;
    line-height: 1.4;

    text-align: center;
    text-transform: uppercase;
}


.almoallam-service-divisions-description {
    width: 100%;
 max-width:850px;
    margin: 0 auto;

    color: #414042;

    font-size: 18px;
    font-weight: 400;
    line-height: 1.45;

    text-align: center;
}


.almoallam-service-divisions-description p {
    margin: 0 0 15px;
}


.almoallam-service-divisions-description p:last-child {
    margin-bottom: 0;
}


/* =====================================================
   SERVICE POST NAVIGATION
   HARD FM / SOFT FM
===================================================== */

.almoallam-service-groups-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 600px;
    margin: 0 auto 32px;
    gap: 75px;
}


button.almoallam-service-group-tab {

    min-width: 310px;
    min-height: 40px;
    border: 0;
    background: #d7d7d7;
    color: #fff;
    font: inherit;
    font-size: 20px !important;
font-family: var(--wd-alternative-font) !important;
    line-height: 1.2;
padding-bottom: 10px !important;
    text-align: center;
    text-transform: uppercase;

    cursor: pointer;

    transition:
        background-color 0.25s ease,
        color 0.25s ease;
}


button.almoallam-service-group-tab:hover {
    background: #c8c8c8;
    color: #fff;
}


button.almoallam-service-group-tab.is-active {
    background: var(--almoallam-service-color);
    color: #fff;
}


/* =====================================================
   SERVICE POST PANELS
===================================================== */

.almoallam-service-post-panels {
    width: 100%;
    padding-bottom:70px;
}


.almoallam-service-post-panel {
    width: 100%;
}


.almoallam-service-post-panel[hidden] {
    display: none !important;
}


.almoallam-service-post-panel.is-active {
    display: block;
}


/* =====================================================
   WPBAKERY CONTENT INSIDE SERVICE POST

   Prevent the embedded Service CPT WPBakery rows from
   creating unnecessary outer spacing.
===================================================== */

.almoallam-service-post-panel > .vc_row:first-child {
    margin-top: 0;
}


.almoallam-service-post-panel > .vc_row:last-child {
    margin-bottom: 0;
}


/* =====================================================
   EMPTY DIVISION
===================================================== */

.almoallam-service-empty {
    width: 100%;
    max-width: 850px;

    margin: 0 auto;

    padding: 25px;

    background: #f5f5f5;
    color: #777;

    font-size: 14px;
    text-align: center;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1024px) {

    .almoallam-service-divisions {
        max-width: 900px;
    }


    /* DIVISION NAV */

    .almoallam-service-divisions-nav {
        display: block !important;
        gap: 20px;
    }


    .almoallam-service-division-tab {
        min-width: 170px;
        padding-left: 16px;
        padding-right: 16px;
        font-size: 20px !important;
        width: 100%;
        
    }

    button.almoallam-service-group-tab{
        width: 100% !important;
        margin: 0;
    }


    /* INTRO */

    .almoallam-service-divisions-intro {
        max-width: 760px;
    }


    .almoallam-service-divisions-heading {
        font-size: 22px;
    }


    /* HARD / SOFT */

    .almoallam-service-groups-nav {
        gap: 40px;
        display: block !important;
        margin: 0;
    max-width: 100%;
    padding-bottom: 40px !important;

    }

    .almoallam-service-list-block{
        margin: 0;
    }


}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 767px) {


    .almoallam-service-post-panels {
    width: 100%;
    padding-bottom:30px;
}


    .almoallam-service-divisions {
        width: 100%;
        max-width: none;
    }


    /* =================================================
       DIVISION NAV
    ================================================= */

    .almoallam-service-divisions-nav {
        justify-content: flex-start;
       
        width: 100%;

        margin-bottom: 32px;

        gap: 10px;

        overflow-x: auto;

        scrollbar-width: none;

        -webkit-overflow-scrolling: touch;
    }


    .almoallam-service-divisions-nav::-webkit-scrollbar {
        display: none;
    }


    .almoallam-service-division-tab {
        flex: 0 0 auto;
        width: 100%;
        min-width: 175px;
        min-height: 42px;

        padding: 10px 15px;

        font-size: 12px;
    }


    /* =================================================
       INTRO
    ================================================= */

    .almoallam-service-divisions-intro {
        width: 100%;

        margin-bottom: 28px;

        text-align: center;
    }


    .almoallam-service-divisions-heading {
        font-size: 20px;
        padding-bottom: 5px !important;
    }


    .almoallam-service-divisions-subtitle {
        margin-bottom: 18px;

        font-size: 14px;
    }


    .almoallam-service-divisions-description {
        max-width: none;

        font-size: 13px;
        line-height: 1.55;
    }


    /* =================================================
       HARD / SOFT NAV
    ================================================= */

    .almoallam-service-groups-nav {
        justify-content: flex-start;
        display: block !important;
        width: 100%;
        max-width: none;

        margin-bottom: 25px;

        gap: 10px;

        overflow-x: auto;

        scrollbar-width: none;

        -webkit-overflow-scrolling: touch;
    }


    .almoallam-service-groups-nav::-webkit-scrollbar {
        display: none;
    }


    button.almoallam-service-group-tab {
        flex: 0 0 auto;
        width: 100%;
        min-width: 165px;
        min-height: 42px;

        padding: 10px 15px;

        font-size: 16px !important;
    }

}