/* =========================================================
   MOOV ENERGY - SECTORS CAROUSEL
   ========================================================= */

.moov-sectors-carousel {
    width: 100%;
    max-width: 100% !important;
    position: relative;
    margin: 0 auto;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.moov-sectors-carousel__navigation {
    width: 90%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    gap: 0px;
    position: relative;
    margin: 0 auto;
    z-index: 2;
}


/* Carousel viewport */

.moov-sectors-carousel__viewport {
    flex: 1;
    min-width: 0;
    z-index: 1;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 9px;
    margin-left: -9px;
    border: 1px solid #ED1847;
    border-radius: 8px;
    box-shadow: 0px 2px 6px #00000066;
    background-color: white !important;
}

.moov-sectors-carousel__viewport::-webkit-scrollbar {
    display: none;
}

.moov-sectors-carousel__viewport::before {
    content: '';
    display: none;
    position: absolute;
    width: 40px;
    height: 130px;
    background: linear-gradient(270deg, #FFFFFF00 0%,#FFFFFF 70%);
    pointer-events: none;
    z-index: 2;
    top: 3px;
    left: -8px;
    border-bottom-left-radius: 8px;
    border-top-left-radius: 8px;
    z-index: 3;
}

.moov-sectors-carousel__viewport.has-left-overflow::before {
    display: block;
}

.moov-sectors-carousel__viewport::after {
    content: '';
    display: block;
    position: absolute;
    width: 40px;
    height: 130px;
    background: transparent linear-gradient(90deg, #FFFFFF00 0%, #FFFFFF 70%) 0% 0% no-repeat padding-box;
    pointer-events: none;
    z-index: 2;
    top: 3px;
    right: 1px;
    border-bottom-right-radius: 8px;
    border-top-right-radius: 8px;
    z-index: 3;
}


/* Carousel track */

.moov-sectors-carousel__track {
    width: max-content;
    display: flex;
    gap: 8px;
}


/* =========================================================
   TAB ITEMS
   ========================================================= */

.moov-sectors-carousel__tab {
    position: relative;
    flex: 0 0 258px;
    height: 115px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 5px;
    overflow: hidden;
    background-size: cover;
    background-position: -60px center;
    background-repeat: no-repeat;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-family: inherit;
    transition: background-position 0.35s ease-out,
                box-shadow 0.3s ease-out;
    overflow: hidden;
}

.moov-sectors-carousel__tab:hover,
.moov-sectors-carousel__tab.is-active {
    background-position: -30px center;
    transition: background-position 0.35s ease-in,
                box-shadow 0.3s ease-in;
    box-shadow: 0 2px 6px #00000040;
}

/* Tab title */
.moov-sectors-carousel__tab .moov-sectors-carousel__tab-title {
    position: relative;
    z-index: 2;
    color: #ffffff;
    font-size: 22px;
    line-height: 26px;
    font-family: 'Century Gothic Bold',Helvetica,Arial,Lucida,sans-serif;
    text-align: center;
    padding: 0;
    position: absolute;
    top: 68px;
    bottom: auto;
    transition: top 0.35s ease-out;
}

.moov-sectors-carousel__tab:hover .moov-sectors-carousel__tab-title,
.moov-sectors-carousel__tab.is-active .moov-sectors-carousel__tab-title  {
    top: 43px;
    transition: top 0.35s ease-in;
}

.moov-sectors-carousel__tab::before {
    content: '';
    display: block;
    background-image: url(https://develop.fishgate.co.za/moov/wp-content/uploads/2026/08/red_m_final.png);
    background-position: -280px center;
    background-size: cover;
    background-repeat: no-repeat;
    position: absolute;
    width: 260px;
    height: 118px;
    z-index: 1;
    transition: all 0.3s ease-out;
}

.moov-sectors-carousel__tab:hover::before,
.moov-sectors-carousel__tab.is-active::before {
    background-position: 0px center;
    transition: all 0.3s ease-in;
}

.moov-sectors-carousel__tab::after {
    content: '';
    display: block;
    background: transparent linear-gradient(180deg, #162D5500 0%, #162D55 100%) 0% 0% no-repeat padding-box;
    width: 100%;
    height: 69px;
    position: absolute;
    top: auto;
    bottom: 0;
    z-index: 0;
}


/* =========================================================
   ARROWS
   ========================================================= */

.moov-sectors-carousel__arrow {
    flex: 0 0 45px;
    width: 45px;
    height: 45px;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-image 0.25s ease-out;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    background-color: transparent;
    border-radius: 100px;
    border: none;
    color: transparent;
    position: absolute;
    z-index: 3;
}

.moov-sectors-carousel__arrow.moov-sectors-carousel__arrow--prev {
    background-image: url(https://develop.fishgate.co.za/moov/wp-content/uploads/2026/08/carousel_chev_prev.svg);
    left: -25px;
}

.moov-sectors-carousel__arrow.moov-sectors-carousel__arrow--prev:hover {
    background-image: url(https://develop.fishgate.co.za/moov/wp-content/uploads/2026/08/carousel_chev_prev_hover.svg);
}

.moov-sectors-carousel__arrow.moov-sectors-carousel__arrow--next {
    background-image: url(https://develop.fishgate.co.za/moov/wp-content/uploads/2026/08/carousel_chev_next.svg);
    right: -17px;
}

.moov-sectors-carousel__arrow.moov-sectors-carousel__arrow--next:hover {
    background-image: url(https://develop.fishgate.co.za/moov/wp-content/uploads/2026/08/carousel_chev_next_hover.svg);
}


.moov-sectors-carousel__arrow:hover {
    transition: background-image 0.25s ease-in;
}


.moov-sectors-carousel__arrow:disabled {
    display: none;
}


/* =========================================================
   PAGINATION
   ========================================================= */

.moov-sectors-carousel__pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 18px;
    z-index: 2;
    position: relative;
    margin-bottom: -96px;
}


.moov-sectors-carousel__dot {
    width: 9px;
    height: 9px;
    padding: 0;
    margin: 0;
    border: 1px solid #ED1847;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition:
        background-color 0.25s ease,
        transform 0.25s ease;
}


.moov-sectors-carousel__dot.is-active {
    background: #ED1847;
    transform: scale(1);
}


/* =========================================================
   CONTENT AREA
   ========================================================= */

.moov-sectors-carousel__content {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-height: 547px;
    margin: 12px auto 0;
    z-index: 0;
}


/* =========================================================
   CONTENT PANEL
   ========================================================= */

.moov-sectors-carousel__panel {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    min-height: 547px;

    overflow: hidden;

    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    transition:
        opacity 0.45s ease,
        visibility 0.45s ease;
}


/* Active panel */

.moov-sectors-carousel__panel.is-active {
    position: relative;

    opacity: 1;
    visibility: visible;

    pointer-events: auto;

    z-index: 2;
}


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

.moov-sectors-carousel__background-image {
    position: absolute;
    top: 0px;
    right: auto;
    left: calc(50% - 1280px);
    z-index: 1;
    width: 100%;
    min-width: 2560px;
    max-width: 2560px;
    height: 100%;
    min-height: 659px;
    background-repeat: no-repeat;
    background-position: center left;
    background-size: auto 100%;
    pointer-events: none;
}


/* =========================================================
   WHITE FADE OVER BACKGROUND IMAGE
   ========================================================= */

/* .moov-sectors-carousel__background-image::after {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 60%;
    height: 100%;

    background: linear-gradient(
        to right,
        #ffffff 0%,
        #ffffff 20%,
        rgba(255, 255, 255, 0.96) 35%,
        rgba(255, 255, 255, 0.65) 50%,
        rgba(255, 255, 255, 0) 100%
    );

    pointer-events: none;
} */


/* =========================================================
   LEFT CONTENT
   ========================================================= */

.moov-sectors-carousel__content-left {
    position: relative;
    z-index: 3;
    width: 90%;
    max-width: 1200px;
    padding: 20px 0 35px 0;
    background: transparent;
    margin: auto;
    height: 659px;
}

.moov-sectors-carousel__content-left .inner-content {
    transition: all 0.4s ease-in-out;
}

.moov-sectors-carousel__content-left .inner-content {
    max-width: 482px;
    position: absolute;
    margin: auto;
    height: fit-content;
}

/* Agriculture Content */
article.Agriculture .moov-sectors-carousel__content-left .inner-content,
article.Manufacturing .moov-sectors-carousel__content-left .inner-content {
    right: 100px;
    top: 40px;
    bottom: 0;
}

/* Mining Content */
article.Mining .moov-sectors-carousel__content-left .inner-content {
    left: 0;
    top: 40px;
    bottom: 0;
}

/* Forestry Content */
article.Forestry .moov-sectors-carousel__content-left .inner-content {
    left: 0;
    top: 45px;
    bottom: 0;
}

/* Construction Content */
article.Construction .moov-sectors-carousel__content-left .inner-content {
    left: 0;
    top: 20px;
    bottom: 0;
}

/* Marine Content */
article.Marine .moov-sectors-carousel__content-left .inner-content {
    left: 0;
    top: 40px;
    bottom: 0;
}

/* Power Content */
article.Power .moov-sectors-carousel__content-left .inner-content {
    left: 0;
    top: -30px;
    bottom: 0;
}

/* Food & Beverage Content */
article.Food .moov-sectors-carousel__content-left .inner-content {
    right: 100px;
    top: 40px;
    bottom: 0;
}

/* Auto-repair Content */
article.Auto-repair .moov-sectors-carousel__content-left .inner-content {
    left: 0px;
    top: -20px;
    bottom: 0;
}


/* =========================================================
   CONTENT TITLE
   ========================================================= */

.moov-sectors-carousel__content-title {
    margin: 0px;
    padding-bottom: 15px;
    color: #1B3A66;
    font-size: 25px;
    font-weight: 600;
    line-height: 31px;
    font-family: 'Century Gothic Bold',Helvetica,Arial,Lucida,sans-serif;
}

article.Mining .moov-sectors-carousel__content-title,
article.Forestry .moov-sectors-carousel__content-title {
    color: white;
}


/* =========================================================
   DESCRIPTION
   ========================================================= */

.moov-sectors-carousel__description {
    position: relative;
    max-width: 463px;
    color: #1B3A66;
    font-size: 16px;
    line-height: 22px;
    overflow: hidden;
    font-family: 'Century Gothic Regular',Helvetica,Arial,Lucida,sans-serif;
    transition:
        max-height 0.45s ease;
}

/* =========================================================
   DESCRIPTION
   ========================================================= */

.moov-sectors-carousel__description {
    position: relative;
    max-width: 483px;
    color: #1B3A66;
    font-size: 16px;
    line-height: 22px;
    font-family: 'Century Gothic Regular',Helvetica,Arial,Lucida,sans-serif;
    transition:
        max-height 0.45s ease;

    /*
     * JavaScript sets this variable to the height
     * of the first paragraph.
     */
    max-height: var(--collapsed-height, 200px);

    overflow: hidden;

    transition: max-height 0.45s ease;
}

.moov-sectors-carousel__description::before {
    content: '';
    display: block;
    width: 1px;
    min-height: 84%;
    position: absolute;
    background-color: #ED1847;
    top: 4px;
    left: 0;
}

.moov-sectors-carousel__description.open::before {
    min-height: 99%;
}

article.Mining .moov-sectors-carousel__description::before,
article.Marine .moov-sectors-carousel__description::before {
    min-height: 59px;
}

article.Mining .moov-sectors-carousel__description.open::before {
    height: 477px;
}

article.Marine .moov-sectors-carousel__description.open::before {
    height: 304px;
}

article.Construction .moov-sectors-carousel__description::before,
article.Manufacturing .moov-sectors-carousel__description::before {
    min-height: 103px;
}

article.Construction .moov-sectors-carousel__description.open::before {
    min-height: 350px;
}

article.Manufacturing .moov-sectors-carousel__description.open::before {
    min-height: 214px;
}

article.Power .moov-sectors-carousel__description::before {
    min-height: 124px;
}

article.Auto-repair .moov-sectors-carousel__description::before {
    min-height: 172px;
}

/* =========================================================
   DESCRIPTION - OPEN
   ========================================================= */

.moov-sectors-carousel__description.open {
    max-height: 370px;
    overflow-y: hidden;
    overflow-x: hidden;
}

article.Mining .moov-sectors-carousel__description.open.is-scrollable {
    overflow-y: auto;
}


/* =========================================================
   SCROLLBAR
   ========================================================= */
.moov-sectors-carousel__description.open {
    scrollbar-width: unset;
    scrollbar-color: #1b3a66b5 transparent;
}

article.Mining .moov-sectors-carousel__description.open {
    scrollbar-color: #ffffffb5 transparent;
}

/* Chrome, Edge, Safari */
.moov-sectors-carousel__description.open::-webkit-scrollbar {
    width: 6px;
}

.moov-sectors-carousel__description.open::-webkit-scrollbar-track {
    background: transparent;
}

.moov-sectors-carousel__description.open::-webkit-scrollbar-thumb {
    background: #1b3a66b5;
    border-radius: 10px;
}

article.Mining .moov-sectors-carousel__description.open::-webkit-scrollbar-thumb {
    background: #ffffffb5;
}

.moov-sectors-carousel__description.open::-webkit-scrollbar-thumb:hover {
    background: #1B3A66;
}

article.Mining .moov-sectors-carousel__description.open::-webkit-scrollbar-thumb:hover {
    background: white;
}

/* Paragraph spacing */

.moov-sectors-carousel__description p {
    margin: 0px;
    padding-bottom: 22px !important;
    padding-right: 20px !important;
    padding-left: 18px !important;
}


.moov-sectors-carousel__description p:last-child {
    margin-bottom: 0;
    padding-bottom: 0 !important;
}

article.Mining .moov-sectors-carousel__description p,
article.Forestry .moov-sectors-carousel__description p {
    color: white !important;
}

/* article:nth-child(2) .moov-sectors-carousel__description.open.is-scrollable::after,
article:nth-child(3) .moov-sectors-carousel__description.open.is-scrollable::after,
article:nth-child(8) .moov-sectors-carousel__description.open.is-scrollable::after  {
    content: '' !important;
    display: block !important;
    background: linear-gradient(to bottom, rgba(229, 209, 209, 0) 0%, #FFF 100%) !important;
    min-height: 45px !important;
    min-width: 446px !important;
    max-width: 446px !important;
    z-index: 2 !important;
    position: sticky;
    bottom: 0 !important;
    top: auto !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 !important;
} */

/* =========================================================
   READ MORE
   ========================================================= */

.moov-sectors-carousel__read-more {
    display: none;
    padding: 0;
    margin-top: 0px;
    border: 0;
    background: transparent;
    color: #1B3A66;
    font-size: 16px;
    line-height: 22px;
    text-decoration: underline;
    cursor: pointer;
    font-family: 'Century Gothic Regular',Helvetica,Arial,Lucida,sans-serif;
}

article.Mining .moov-sectors-carousel__read-more,
article.Forestry .moov-sectors-carousel__read-more {
    color: white;
}

.moov-sectors-carousel__read-more:hover {
    color: #ED1847;
}

/* Show when JS determines it is required */

.moov-sectors-carousel__read-more.is-visible {
    display: inline-block;
}

.moov-sectors-carousel__read-more.is-visible.is-expanded {
    margin-top: 20px;
}


/* Read more / read less */

.moov-sectors-carousel__read-more .read-less-text {
    display: none;
}


.moov-sectors-carousel__read-more.is-expanded .read-more-text {
    display: none;
}


.moov-sectors-carousel__read-more.is-expanded .read-less-text {
    display: none;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 980px) {
    .moov-sectors-carousel__pagination {
        margin-bottom: 0 !important;
    }

    article .moov-sectors-carousel__content-left .inner-content {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    article .moov-sectors-carousel__content-left {
        height: auto !important
    }

    article.Mining .moov-sectors-carousel__description p, article.Forestry .moov-sectors-carousel__description p,
    article.Mining .moov-sectors-carousel__content-title, article.Forestry .moov-sectors-carousel__content-title,
    article.Mining .moov-sectors-carousel__read-more, article.Forestry .moov-sectors-carousel__read-more
     {
        color: #1B3A66 !important;
    }
    
    .moov-sectors-carousel__background-image {
        position: relative !important;
        top: 0 !important;
        right: 0 !important;
        left: 0 !important;
        background-position: center top !important;
        background-size: cover;
        margin: auto;
        width: 100%;
        min-width: 100%;
        height: 100%;
        min-height: 400px;
    }

    article.Agriculture .moov-sectors-carousel__background-image {
        background-image: url(https://develop.fishgate.co.za/moov/wp-content/uploads/2026/09/Moov-Sector-Agriculture-Mobile.jpg) !important;
    }

    article.Mining .moov-sectors-carousel__background-image {
        background-image: url(https://develop.fishgate.co.za/moov/wp-content/uploads/2026/09/Mask-Group-847@2x.jpg) !important;
    }

    article.Forestry .moov-sectors-carousel__background-image {
        background-image: url(https://develop.fishgate.co.za/moov/wp-content/uploads/2026/09/Moov-Sector-Forestry-Mobile.jpg) !important;
    }

    article.Construction .moov-sectors-carousel__background-image {
        background-image: url(https://develop.fishgate.co.za/moov/wp-content/uploads/2026/09/Mask-Group-849@2x.jpg) !important;
    }

    article.Marine .moov-sectors-carousel__background-image {
        background-image: url(https://develop.fishgate.co.za/moov/wp-content/uploads/2026/09/Mask-Group-850@2x.jpg) !important;
    }

    article.Manufacturing .moov-sectors-carousel__background-image {
        background-image: url(https://develop.fishgate.co.za/moov/wp-content/uploads/2026/09/Mask-Group-851@2x.jpg) !important;
    }

    article.Power .moov-sectors-carousel__background-image {
        background-image: url(https://develop.fishgate.co.za/moov/wp-content/uploads/2026/09/Mask-Group-852@2x.jpg) !important;
    }

    article.Food .moov-sectors-carousel__background-image {
        background-image: url(https://develop.fishgate.co.za/moov/wp-content/uploads/2026/09/Mask-Group-853@2x-1.jpg) !important;
    }

    article.Auto-repair .moov-sectors-carousel__background-image {
        background-image: url(https://develop.fishgate.co.za/moov/wp-content/uploads/2026/09/Mask-Group-854@2x-1.jpg) !important;
    }

    article .moov-sectors-carousel__read-more.is-expanded .read-less-text {
    display: inline;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    /* Mobile dragging only */
    .moov-sectors-carousel__viewport {
        cursor: grab;
        touch-action: pan-y;
        margin-left: 0 !important;
        border: none !important;
        box-shadow: none !important;
    }

    .moov-sectors-carousel__viewport::before,
    .moov-sectors-carousel__viewport::after {
        display: none !important;
    }

    .moov-sectors-carousel__viewport.is-dragging {
        cursor: grabbing;
        user-select: none;
    }

    .moov-sectors-carousel__viewport::-webkit-scrollbar {
        display: none;
    }

    .moov-sectors-carousel__track {
        padding-left: 16px;
        padding-right: 16px;
    }

    .moov-sectors-carousel__navigation {
        width: 100vw;
        max-width: none;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        padding-left: 0;
        padding-right: 0;
        gap: 8px;
        z-index: 3;
    }


    .moov-sectors-carousel__arrow {
        flex: 0 0 45px;
        width: 45px;
        height: 45px;
    }

    .moov-sectors-carousel__arrow.moov-sectors-carousel__arrow--prev {
        left: calc(50% - 84px) !important;
        bottom: -32px !important;
        visibility: visible !important;
        background-image: url(https://develop.fishgate.co.za/moov/wp-content/uploads/2026/08/Path-61820.svg);
        width: 7px;
        height: 14px;
    }

    .moov-sectors-carousel__arrow.moov-sectors-carousel__arrow--prev:hover {
        background-image: url(https://develop.fishgate.co.za/moov/wp-content/uploads/2026/08/Path-61820.svg) !important;
    }

    .moov-sectors-carousel__arrow.moov-sectors-carousel__arrow--next {
        right: calc(50% - 81px) !important;
        bottom: -32px !important;
        visibility: visible !important;
        background-image: url(https://develop.fishgate.co.za/moov/wp-content/uploads/2026/08/Path-61819.svg);
        width: 7px;
        height: 14px;
    }

    .moov-sectors-carousel__arrow.moov-sectors-carousel__arrow--next:hover {
        background-image: url(https://develop.fishgate.co.za/moov/wp-content/uploads/2026/08/Path-61819.svg) !important;
    }

    .moov-sectors-carousel__tab {
        flex-basis: 200px;
        height: 115px;
    }


    .moov-sectors-carousel__pagination {
        margin-top: 20px;
    }


    /* =====================================================
       MOBILE CONTENT
       ===================================================== */

    .moov-sectors-carousel__content {
        min-height: 0px;
        margin-top: 0px;
    }


    .moov-sectors-carousel__panel {
        min-height: 0px;
    }

    article:nth-child(2) .moov-sectors-carousel__description.open.is-scrollable::after,
    article:nth-child(3) .moov-sectors-carousel__description.open.is-scrollable::after,
    article:nth-child(8) .moov-sectors-carousel__description.open.is-scrollable::after  {
        display: none !important;
    }


    /*
     * Left content sits above the image.
     */

    .moov-sectors-carousel__content-left {
        width: 90%;
        max-width: none;
        padding: 30px 0 20px;
    }


    .moov-sectors-carousel__tab .moov-sectors-carousel__tab-title {
        font-size: 20px !important;
    }


    .moov-sectors-carousel__description {
        max-width: none;
    }

    .moov-sectors-carousel__description.open {
        max-height: 1000px !important;
    }

    .moov-sectors-carousel__description::before {
        display: none !important;
    }

    .moov-sectors-carousel__description p {
        padding-left: 0 !important;
    }

    /*
     * Background image moves toward
     * the lower part of the panel.
     */

    .moov-sectors-carousel__background-image {
        top: auto;
        bottom: 0;
        width: 100%;
        min-width: 100%;
        height: 388px;
        min-height: 388px;
        background-size: cover;
        background-position: center !important;
    }


    /*
     * Vertical white fade on mobile.
     */

    .moov-sectors-carousel__background-image::after {
        top: 0;
        left: 0;

        width: 100%;
        height: 50%;

        background: linear-gradient(
            to bottom,
            #ffffff 0%,
            rgba(255, 255, 255, 0.8) 45%,
            rgba(255, 255, 255, 0) 100%
        );
    }

}

