/*
Theme Name: Starthub Africa Blog
Description: Starthub Africa Blog
Version: 1.0
Author: The Growth Office
Author URI: https://www.thegrowthoffice.com/
Template: enfold
*/

/* ==========================================
   STARTHUB MASONRY FILTER + CARD PILLS
   ========================================== */


/* ------------------------------------------
   FILTER CONTAINER
   ------------------------------------------ */

#top #wrap_all .sha-portfolio-grid .av-masonry-sort {
    margin: 0 15px 22px 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background-color: transparent !important;
    text-align: left !important;
    line-height: normal !important;
}

#top #wrap_all .sha-portfolio-grid .av-sort-by-term {
    text-align: left !important;
}


/* ------------------------------------------
   FILTER PILLS
   ------------------------------------------ */

#top #wrap_all .sha-portfolio-grid .av-sort-by-term > a {
    display: inline-block !important;
    margin: 0 5px 10px !important;
    padding: 10px 18px !important;
    border: 1px solid #d0d0d0 !important;
    border-radius: 50px !important;
    outline: none;
    background-color: transparent !important;
    color: #25364a !important;
    line-height: 1 !important;
    text-decoration: none !important;
    -webkit-transition: background-color 0.25s ease,
                        border-color 0.25s ease,
                        color 0.25s ease;
    transition: background-color 0.25s ease,
                border-color 0.25s ease,
                color 0.25s ease;
}


/* Active and hovered filter pills */

#top #wrap_all .sha-portfolio-grid .av-sort-by-term > a:hover,
#top #wrap_all .sha-portfolio-grid .av-sort-by-term > a:focus,
#top #wrap_all .sha-portfolio-grid .av-sort-by-term > a.active_sort {
    border-color: #e0a330 !important;
    background-color: #e0a330 !important;
    color: #ffffff !important;
}


/* Filter text */

#top #wrap_all .sha-portfolio-grid .inner_sort_button {
    color: inherit !important;
}


/* Filter post count */

#top #wrap_all .sha-portfolio-grid .avia-term-count {
    display: inline-block !important;
    margin-left: 4px !important;
    color: inherit !important;
    font-size: 0.8em !important;
    opacity: 0.75;
}


/* Filter slash separators */

#top #wrap_all .sha-portfolio-grid .av-sort-by-term .text-sep {
    display: inline-block !important;
    margin: 0 2px 10px !important;
    color: #919191 !important;
    vertical-align: middle;
}


/* ------------------------------------------
   BLOG CARDS
   Preserve Enfold sizing and positioning
   ------------------------------------------ */

#top #wrap_all .sha-portfolio-grid .av-inner-masonry {
    border-radius: 0 !important;
    overflow: hidden !important;
}


/* ------------------------------------------
   CATEGORY PILLS ON BLOG CARDS
   ------------------------------------------ */

#top #wrap_all .sha-portfolio-grid
.av-masonry-entry .av-inner-masonry:before {
    position: absolute !important;
    top: 16px !important;
    left: 16px !important;
    z-index: 1000 !important;
    display: block !important;
    width: auto !important;
    height: auto !important;
    box-sizing: border-box;
    padding: 8px 14px !important;
    border: 0 !important;
    border-radius: 50px !important;
    background-color: #e0a330 !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: none;
}


/* ------------------------------------------
   CATEGORY NAMES
   ------------------------------------------ */

#top #wrap_all .sha-portfolio-grid
.av-masonry-entry.category-features .av-inner-masonry:before {
    content: "Features" !important;
}

#top #wrap_all .sha-portfolio-grid
.av-masonry-entry.category-insights .av-inner-masonry:before {
    content: "Insights" !important;
}

#top #wrap_all .sha-portfolio-grid
.av-masonry-entry.category-programs .av-inner-masonry:before {
    content: "Programs" !important;
}

#top #wrap_all .sha-portfolio-grid
.av-masonry-entry.category-uncategorized .av-inner-masonry:before {
    content: "Uncategorized" !important;
}


/* ------------------------------------------
   CARD TYPOGRAPHY
   ------------------------------------------ */

#top #wrap_all .sha-portfolio-grid .av-masonry-entry-title {
    font-family: inherit !important;
    font-size: inherit !important;
    font-style: inherit;
    letter-spacing: inherit;
}


/* Excerpt */

#top #wrap_all .sha-portfolio-grid .av-masonry-entry-content {
    margin-top: 6px;
    line-height: 1.5;
}


/* Date */

#top #wrap_all .sha-portfolio-grid .av-masonry-date {
    display: block;
    margin-top: 8px;
}


/* ------------------------------------------
   IMAGE HOVER
   ------------------------------------------ */

#top #wrap_all .sha-portfolio-grid .av-masonry-image-container {
    -webkit-transition: -webkit-transform 0.35s ease;
    transition: transform 0.35s ease;
}

#top #wrap_all .sha-portfolio-grid
.av-masonry-entry:hover .av-masonry-image-container {
    -webkit-transform: scale(1.03);
    transform: scale(1.03);
}


/* ------------------------------------------
   KEYBOARD FOCUS
   ------------------------------------------ */

/* Hide Chrome's focus outline after a mouse click */

#top #wrap_all .sha-portfolio-grid
.av-sort-by-term > a:focus {
    outline: none !important;
}


/* Show an accessible outline for keyboard navigation */

#top #wrap_all .sha-portfolio-grid
.av-sort-by-term > a:focus-visible {
    outline: 2px solid #25364a !important;
    outline-offset: 3px;
}


/* ------------------------------------------
   MOBILE
   ------------------------------------------ */

@media only screen and (max-width: 767px) {

    #top #wrap_all .sha-portfolio-grid .av-masonry-sort {
        margin-bottom: 18px !important;
    }

    #top #wrap_all .sha-portfolio-grid
    .av-sort-by-term > a {
        margin-right: 3px !important;
        margin-left: 3px !important;
        padding: 9px 14px !important;
    }

    #top #wrap_all .sha-portfolio-grid
    .av-sort-by-term .text-sep {
        margin-right: 0 !important;
        margin-left: 0 !important;
    }

    #top #wrap_all .sha-portfolio-grid
    .av-masonry-entry .av-inner-masonry:before {
        top: 12px !important;
        left: 12px !important;
        padding: 7px 11px !important;
        font-size: 10px !important;
    }
}


/* =========================================================
   BLOG SIDEBAR SERVICE SLIDER
   ========================================================= */


/* ---------------------------------------------------------
   STICKY SIDEBAR — SINGLE POSTS, DESKTOP ONLY
   --------------------------------------------------------- */

@media only screen and (min-width: 990px) {

    body.single-post #wrap_all,
    body.single-post #main,
    body.single-post #main .container_wrap,
    body.single-post #main .container,
    body.single-post #main .sidebar,
    body.single-post #main .inner_sidebar {
        overflow: visible;
    }

    body.single-post #main .sidebar {
        position: relative;
    }

    body.single-post #main .sidebar .inner_sidebar {
        position: -webkit-sticky !important;
        position: sticky !important;
        top: 120px;
        z-index: 20;
    }
}


/* ---------------------------------------------------------
   MAIN SLIDER CONTAINER
   --------------------------------------------------------- */

#top .tgo-service-slider {
    position: relative;
    width: 100%;
    min-height: 405px;
    overflow: hidden;
    background-color: #dff3fa;
    border-radius: 24px;
    box-sizing: border-box;
    box-shadow: 0 18px 45px rgba(22, 70, 108, 0.10);
}


/* ---------------------------------------------------------
   INDIVIDUAL SLIDES
   Equal top and bottom padding
   --------------------------------------------------------- */

#top .tgo-service-slide {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    padding: 48px 38px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transform: translateX(24px);
    animation-name: tgoServiceSlide;
    animation-duration: 20s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}


/* ---------------------------------------------------------
   SLIDE TIMING
   --------------------------------------------------------- */

#top .tgo-slide-1 {
    animation-delay: 0s;
}

#top .tgo-slide-2 {
    animation-delay: 5s;
}

#top .tgo-slide-3 {
    animation-delay: 10s;
}

#top .tgo-slide-4 {
    animation-delay: 15s;
}


/* ---------------------------------------------------------
   SERVICE LABEL
   --------------------------------------------------------- */

#top .tgo-service-label {
    align-self: flex-start;
    display: inline-block;
    padding: 7px 18px;
    margin-bottom: 30px;
    color: #ffffff;
    background-color: #1d75bb;
    background-image: linear-gradient(
        90deg,
        #1769aa 0%,
        #2fc7e7 100%
    );
    border-radius: 50px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.2;
}


/* ---------------------------------------------------------
   SLIDER HEADING
   50px space between heading and CTA
   --------------------------------------------------------- */

#top .tgo-service-slider h3 {
    margin: 0 0 50px;
    color: #1d75bb;
    font-family: inherit;
    font-size: 42px;
    line-height: 1.04;
    font-weight: 700;
    letter-spacing: -1.5px;
}


/* Gradient heading where supported */

@supports (-webkit-background-clip: text) {

    #top .tgo-service-slider h3 {
        background-image: linear-gradient(
            110deg,
            #1769aa 0%,
            #1d75bb 48%,
            #34bde0 100%
        );
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }
}


/* ---------------------------------------------------------
   ANIMATED CTA BUTTON
   --------------------------------------------------------- */

#top .tgo-service-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 66px;
    padding: 10px 12px 10px 24px;
    margin-top: 0;
    overflow: hidden;
    color: #ffffff;
    background-color: #3a1598;
    background-image: linear-gradient(
        110deg,
        #321394 0%,
        #7922b5 45%,
        #ff365b 100%
    );
    background-size: 200% 100%;
    background-position: 0 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 19px;
    line-height: 1.3;
    text-decoration: none;
    box-shadow:
        0 12px 28px rgba(69, 22, 149, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.20);
    transform: translateY(0);
    transition:
        background-position 0.5s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


/* Animated light sweep */

#top .tgo-service-button::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -70%;
    width: 45%;
    height: 200%;
    background-color: rgba(255, 255, 255, 0.18);
    transform: rotate(22deg);
    transition: left 0.6s ease;
}

#top .tgo-service-button:hover::before,
#top .tgo-service-button:focus::before {
    left: 125%;
}


/* Button text */

#top .tgo-button-text {
    position: relative;
    z-index: 2;
    color: #ffffff;
    font-family: inherit;
}


/* Enfold ue875 icon */

#top .tgo-button-icon {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: 18px;
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    box-sizing: border-box;
    font-family: "entypo-fontello";
    font-size: 21px;
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    text-align: center;
    transform: translateX(0);
    transition:
        transform 0.3s ease,
        background-color 0.3s ease,
        color 0.3s ease;
}


/* Button hover */

#top .tgo-service-button:hover,
#top .tgo-service-button:focus {
    color: #ffffff;
    background-position: 100% 50%;
    text-decoration: none;
    transform: translateY(-4px);
    box-shadow:
        0 18px 36px rgba(69, 22, 149, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

#top .tgo-service-button:hover .tgo-button-icon,
#top .tgo-service-button:focus .tgo-button-icon {
    color: #7922b5;
    background-color: #ffffff;
    transform: translateX(4px);
}


/* Keyboard focus */

#top .tgo-service-button:focus {
    outline: 3px solid rgba(29, 117, 187, 0.35);
    outline-offset: 4px;
}


/* ---------------------------------------------------------
   SLIDER DOTS
   --------------------------------------------------------- */

#top .tgo-slider-dots {
    position: absolute;
    top: 56px;
    right: 34px;
    z-index: 10;
    display: flex;
    align-items: center;
}

#top .tgo-dot {
    display: block;
    width: 14px;
    height: 14px;
    margin-left: 8px;
    background-color: rgba(29, 117, 187, 0.14);
    border-radius: 50%;
    animation-name: tgoServiceDot;
    animation-duration: 20s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}


/* Dot timing */

#top .tgo-dot-1 {
    animation-delay: 0s;
}

#top .tgo-dot-2 {
    animation-delay: 5s;
}

#top .tgo-dot-3 {
    animation-delay: 10s;
}

#top .tgo-dot-4 {
    animation-delay: 15s;
}


/* ---------------------------------------------------------
   PAUSE SLIDER DURING INTERACTION
   --------------------------------------------------------- */

#top .tgo-service-slider:hover .tgo-service-slide,
#top .tgo-service-slider:hover .tgo-dot,
#top .tgo-service-slider:focus-within .tgo-service-slide,
#top .tgo-service-slider:focus-within .tgo-dot {
    animation-play-state: paused;
}


/* ---------------------------------------------------------
   SLIDE ANIMATION
   --------------------------------------------------------- */

@keyframes tgoServiceSlide {

    0% {
        opacity: 0;
        visibility: hidden;
        transform: translateX(24px);
    }

    3% {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }

    22% {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }

    25% {
        opacity: 0;
        visibility: hidden;
        transform: translateX(-18px);
    }

    100% {
        opacity: 0;
        visibility: hidden;
        transform: translateX(-18px);
    }
}


/* ---------------------------------------------------------
   DOT ANIMATION
   --------------------------------------------------------- */

@keyframes tgoServiceDot {

    0% {
        background-color: rgba(29, 117, 187, 0.14);
        transform: scale(1);
    }

    3% {
        background-color: #20bde0;
        transform: scale(1.12);
    }

    22% {
        background-color: #20bde0;
        transform: scale(1.12);
    }

    25% {
        background-color: rgba(29, 117, 187, 0.14);
        transform: scale(1);
    }

    100% {
        background-color: rgba(29, 117, 187, 0.14);
        transform: scale(1);
    }
}


/* ---------------------------------------------------------
   TABLET
   --------------------------------------------------------- */

@media only screen and (max-width: 989px) {

    body.single-post #top .sidebar .inner_sidebar {
        position: static !important;
    }

    #top .tgo-service-slider {
        min-height: 377px;
    }

    #top .tgo-service-slide {
        padding: 38px 28px;
    }

    #top .tgo-service-label {
        margin-bottom: 26px;
    }

    #top .tgo-slider-dots {
        top: 47px;
        right: 24px;
    }

    #top .tgo-service-slider h3 {
        margin-bottom: 40px;
        font-size: 34px;
        line-height: 1.04;
        letter-spacing: -1px;
    }

    #top .tgo-service-button {
        min-height: 60px;
        padding: 8px 9px 8px 20px;
        font-size: 18px;
    }

    #top .tgo-button-icon {
        width: 42px;
        height: 42px;
        font-size: 20px;
    }
}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media only screen and (max-width: 767px) {

    #top .tgo-service-slider {
        width: 100%;
        max-width: 500px;
        min-height: 330px;
        margin: 30px auto 0;
        border-radius: 20px;
    }

    #top .tgo-service-slide {
        padding: 34px 26px;
    }

    #top .tgo-service-label {
        margin-bottom: 26px;
    }

    #top .tgo-slider-dots {
        top: 43px;
        right: 22px;
    }

    #top .tgo-dot {
        width: 12px;
        height: 12px;
        margin-left: 6px;
    }

    #top .tgo-service-slider h3 {
        margin-bottom: 36px;
        font-size: 32px;
        line-height: 1.08;
        letter-spacing: -1px;
    }

    #top .tgo-service-button {
        min-height: 58px;
        padding: 8px 9px 8px 18px;
        font-size: 17px;
    }

    #top .tgo-button-icon {
        width: 40px;
        height: 40px;
        margin-left: 14px;
        font-size: 19px;
    }
}


/* ---------------------------------------------------------
   SMALL MOBILE
   --------------------------------------------------------- */

@media only screen and (max-width: 420px) {

    #top .tgo-service-slider {
        min-height: 350px;
    }

    #top .tgo-service-slider h3 {
        font-size: 29px;
    }
}


/* ---------------------------------------------------------
   REDUCED-MOTION ACCESSIBILITY
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

    #top .tgo-service-slide {
        animation: none;
        transform: none;
    }

    #top .tgo-slide-1 {
        opacity: 1;
        visibility: visible;
    }

    #top .tgo-dot {
        animation: none;
    }

    #top .tgo-dot-1 {
        background-color: #20bde0;
    }

    #top .tgo-service-button,
    #top .tgo-service-button::before,
    #top .tgo-button-icon {
        transition: none;
    }
}