/* =====================================================
   ALMOALLAM SERVICE LIST
===================================================== */

.almoallam-service-list-block {
    width: 100%;
    margin: 0 auto;
    padding-bottom:40px;
}


/* =====================================================
   LAYOUT
===================================================== */

.almoallam-service-list-layout {
    display: grid;
    grid-template-columns: 43% 57%;
    width: 100%;
    min-height: 280px;
    align-items: stretch;
    border: 1px solid #e5e5e5;
    box-shadow:
        0 8px 18px rgba(0, 0, 0, 0.08);
}


.almoallam-service-list-active-description{
    padding-top: 30px;
}


/* =====================================================
   SERVICE LIST
===================================================== */

.almoallam-service-list-items {
    position: relative;

    display: flex;
    flex-direction: column;
    justify-content: top;

    width: 100%;

    padding: 14px 26px;

    background: #fff;
}


/* =====================================================
   RESET THEME BUTTON STYLING
===================================================== */

.almoallam-service-list-block
button.almoallam-service-list-button {
    appearance: none;
    -webkit-appearance: none;

    position: relative;

    display: block;

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

    margin: 0 !important;
    padding: 15px 0 !important;

    border: 0 !important;
    border-radius: 0 !important;
    outline: 0;

    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;

    box-shadow: none !important;
    text-shadow: none !important;

    color: #023958 !important;

    font-family: inherit;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;

    text-align: left;
    text-transform: none;
    letter-spacing: 0;

    cursor: pointer;

    transform: none;

    transition: color 0.2s ease;
}


/* =====================================================
   REMOVE THEME BUTTON PSEUDO EFFECTS
===================================================== */

.almoallam-service-list-block
button.almoallam-service-list-button::after {
    display: none !important;
    content: none !important;
}


/* =====================================================
   ACTIVE INDICATOR
===================================================== */

.almoallam-service-list-block
button.almoallam-service-list-button::before {
    content: "";

    position: absolute;

    top: 50%;
    left: -26px;

    display: block;

    width: 5px;
    height: 0;

    margin: 0;

    background: var(
        --almoallam-service-list-color,
        #f4b400
    );

    opacity: 1;

    transform: translateY(-50%);

    transition: height 0.2s ease;
}


/* =====================================================
   HOVER
===================================================== */

.almoallam-service-list-block
button.almoallam-service-list-button:hover,
.almoallam-service-list-block
button.almoallam-service-list-button:focus {
    padding: 15px 0 !important;

    background: transparent !important;

    color: #003b5c !important;

    box-shadow: none !important;

    transform: none !important;
}


/* =====================================================
   ACTIVE
===================================================== */

.almoallam-service-list-block
button.almoallam-service-list-button.is-active {
    padding: 15px 0 !important;

    background: transparent !important;

    color: #003b5c !important;

    box-shadow: none !important;

    transform: none !important;
}


.almoallam-service-list-block
button.almoallam-service-list-button.is-active::before {
    height: 36px;
}


/* =====================================================
   IMAGE SIDE
===================================================== */

.almoallam-service-list-image-wrap {
    position: relative;

    width: 100%;
    min-width: 0;
    height: 100%;
    min-height: 280px;

    overflow: hidden;

    background: #eee;
}


.almoallam-service-list-image-wrap[hidden] {
    display: none !important;
}


/* =====================================================
   IMAGE
===================================================== */

.almoallam-service-list-image {
    position: absolute;

    inset: 0;

    display: block;

    width: 100%;
    height: 100%;

    margin: 0;

    object-fit: cover;
    object-position: center;

    border: 0;
}


/* =====================================================
   VERY SMALL IMAGE HOVER
===================================================== */

.almoallam-service-list-image {
    transition: transform 0.35s ease;
}


.almoallam-service-list-image-wrap:hover
.almoallam-service-list-image {
    transform: scale(1.01);
}


/* =====================================================
   TABLET
   DESKTOP STRUCTURE STILL PRESERVED FOR NOW
===================================================== */

@media (max-width: 1024px) {

    .almoallam-service-list-block {
        max-width:100%;
    }

    .almoallam-service-list-layout {
        grid-template-columns: 43% 57%;
        display: block !important;
    }

}