.blockout{
    width: 100%;
    height: 1000px;
}

/* ------------------------------------------------------------------------------ */

/* .service-list{
    margin-top: 75px;
}*/

.page{
    background-color: var(--alt-bg-color);
    padding: 25px;
}

.page h1{
    text-align: center;
    color: var(--main-bg-color);
    padding: 0;
    margin: 0;
}

/* ------------------------------------------------------------------------------ */

.cta2{
    background-color: var(--main-accent-color);
}

.cta2 h2{
    text-align: center;
    padding: 25px 50px;
    color: var(--alt-bg-color);
}

/* ------------------------------------------------------------------------------ */
.service-list .row{
    background-color: var(--alt-bg-color);
    justify-content: center;
    display: grid;
    grid-template-columns: auto auto auto auto;
    grid-gap: 10px;
    justify-items: center;
    align-content: center;
}



.service-list .item:nth-of-type(2){animation-delay: 0.2s; }
.service-list .item:nth-of-type(3){animation-delay: 0.4s; }
.service-list .item:nth-of-type(4){animation-delay: 0.6s; }

.service-list .item-hidden{
    height: 0;
    opacity: 0;
    overflow: hidden;
    scale: 0.9  !important;
    transition: all 0.2s ease-in-out !important;
    transform: translateX(-100px);
}

.service-list .item-hidde{
    opacity: 1 !important;
    scale: 1  !important;
    height: fit-content;
    max-height: 500px;
    transform: translateX(0px);
}

.service-list .item:hover .service-list .item .item-hidden{
    opacity: 1 !important;
    scale: 1  !important;
    height: fit-content;
    max-height: 500px;
    transform: translateX(0px);
}


.sb-container {
    position: relative;
    min-height: 400px;
    height: fit-content;
    width: 100%;
    background-color: var(--main-bg-color);
}


.service-bite {
    opacity: 0;
    transition: all 0.3s ease-in-out;
    padding: 25px;
    position: absolute;
    background-color: var(--main-bg-color);

}

.service-bite p {
    line-height: 1.5;
    color: var(--alt-bg-color);
    text-align: center;
}

.service-bite h2 {
    text-align: center;
    color: var(--alt-bg-color);
}

.service-list .item:hover{
    scale: 1.03;
    box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
}

.service-list .item:hover .icon{
    scale: 1.1;
    top: -15px;
}

.selected {
    background-color: var(--alt-bg-color) !important;
    box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px !important;
    color: var(--main-bg-color) !important;
    scale: 1.03;
}

/* Service bites show on hover or click */
.service-bite.visible{
    opacity: 1;
    visibility: visible;
}

.service-list .service-bite .row{
    background-color: var(--main-bg-color);
    padding-bottom: 25px;
    gap: 25px;
    display: flex;
    font-weight: bold;
    align-self: center;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(20px); }
    100% { transform: translateY(0px); }
}

.item .icon img{
    width: 100px;
    height: auto;
    margin: auto;
    box-sizing: border-box;
    display: block;
}
.item .icon{
    box-sizing: border-box;
    transition: all 0.2s ease-in-out;
}

.item h3{
    text-align: center;
}

/* ------------------------------------------------------------------------------ */
.clients-friends{
    background-color: var(--alt-bg-color);
    color: var(--main-bg-color);
    width: 100%;
    min-height: 350px;
    padding-bottom: 50px;
}
.clients-friends h1{
    margin: 0px;
    padding: 25px;
    color: var(--main-bg-color);
    text-align: center;
}



.client-item{
    max-width: 20%;
    height: 200px;
}
.client-item .client-icon{
    transition: all 0.2s ease-in-out;
    width: auto;
    height: 200px;
    opacity: 1;
}
.client-item .client-icon img{
    width: auto;
    max-height: 200px;
    display:block;
    margin:auto;
}

.item-hidden-desc{
    width: 100%;
    position: relative;
    top: -50%;
    opacity: 0;
    transition: all 0.4s ease-in-out;
    overflow-y:auto;
    max-height: 100px;
}
.item-hidden-desc p{
    text-align: center;
    padding: 0px 10px;
}

.client-item:hover .client-icon{
    opacity: 0;
}
.client-item:hover .item-hidden-desc{
    opacity: 1;
}

.item-hidden-desc{
    width: 100%;
    position: relative;
    top: -100%;
    opacity: 0;
    transition: all 0.4s ease-in-out;
    max-height: 200px;
    scrollbar-color: var(--main-bg-color) rgba(0, 0, 0, 0);
}

@media screen and (max-width: 600px) {
    .item-hidden-desc{
        width: 100%;
        position: relative;
        top: -90%;
        opacity: 0;
        transition: all 0.4s ease-in-out;
        overflow-y: auto;
        max-height: 150px;
        scrollbar-color: var(--main-bg-color) rgba(0, 0, 0, 0);
    }
}

.item-hidden-desc a{
    color: var(--main-accent-color);
    font-weight: bolder;
}
.thumb{
    background-size: cover;
    background-position: 50%;
    height: 30vh;
}


/* --------------------------------------------------------------- */

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
    .item-display{
        display: flex;
        flex-direction: column;
        gap: 5px;
        background-color: var(--alt-bg-color);
        align-items: center;
        align-content: center;
        justify-content: center;
    }
    .item{
        min-width: 90%;
        display: flex;
        flex-direction: column;
        gap: 25px;
        margin: 20px;
        justify-content: flex-start;
        align-items: center;
        align-content: center;
        flex-wrap: nowrap;
        padding: 25px;
    }
    
    .item .icon{
        padding-left: 0px;
        position: relative;
        box-sizing: border-box;
        transition: all 0.2s ease-in-out;
    }

    .item .icon img{
        margin: 0;
    }

    .service-list{
        background-color: var(--alt-bg-color);
        display: block;
        overflow: auto;
    }
    .body-container{
        background-color: var(--alt-bg-color) !important;
    }
    .sb-container{
        background-color: var(--main-bg-color);
        display: block;
        overflow: auto;
        margin-top: 25px;
    }


    .service-list .item-hidde{
        display: flex;
        flex-direction: column;
        align-content: center;
        justify-content: center;
        align-items: flex-start;
    }
    .item-text{
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .client-container{
        display: flex;
        gap: 25px;
        flex-direction: column;
        box-sizing: border-box;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-evenly;
    }
    .client-item {
        max-width: 90%;
        height: 200px;
    }

    .service-list .item{
        transition: all 0.2s ease-in-out;
        scale: 1;
        z-index: 1;
        opacity: 1;
        background-color: var(--main-bg-color);
        box-sizing: border-box;
        border-radius: 15px;
        animation: none;
    }

    .client-container{
        display: flex;
        gap: 25px;
        box-sizing: border-box;
    }
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
    .service-list .item {
        transition: all 0.2s ease-in-out;
        scale: 1;
        z-index: 1;
        opacity: 1;
        background-color: var(--main-bg-color);
        box-sizing: border-box;
        border-radius: 15px;
        animation: none;
    }

    .item-display {
        display: flex;
        flex-direction: column;
        gap: 25px;
        padding-bottom: 25px;
        background-color: var(--alt-bg-color);
        align-items: center;
        align-content: center;
        justify-content: center;
    }
    .item{
        min-width: 90%;
        display: flex;
        flex-direction: row;
        gap: 25px;
        justify-content: flex-start;
        align-items: center;
        align-content: center;
        flex-wrap: nowrap;
        padding: 25px;
    }

    .service-bite{
        display: none;
    }
    .sb-container .visible{
        display: block;
    }
    .client-container{
        display: grid;
        gap: 25px;
        grid-template-columns: repeat(2, 1fr); /* 3 equal columns */
        grid-auto-flow: dense;
    }

    .client-item {
        max-width: 100%;
        height: 200px;
        box-sizing: border-box;
        padding: 10px;
    }
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
    .client-container{
        display: grid;
        gap: 25px;
        grid-template-columns: repeat(2, 1fr); /* 3 equal columns */
        grid-auto-flow: dense;
    }
    .client-item {
        max-width: 30%;
        height: 200px;
        box-sizing: border-box;
        padding: 25px;
    }
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
    .client-container{
        display: flex;
        gap: 25px;
        box-sizing: border-box;
    }
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
    .item-display{
        display: flex;
        flex-direction: row;
        gap: 25px;
        background-color: var(--alt-bg-color);
        align-items: center;
        align-content: center;
        justify-content: center;
    }
    .item{
        min-width: 200px;
        padding: 25px;
        padding-top: 125px;
    }
    
    li, p, a{
    font-size: 1.1em;
    }
    .item-text{
        display: flex;
        flex-direction: column;
    }

    .item-hidde{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
    }

    .item .icon{
        max-width: 100%;
        width: 100%;
        left: 0px;
        top: 15px;
        position: absolute;
        margin: auto;
        box-sizing: border-box;
        transition: all 0.2s ease-in-out;
    }

    .client-container{
        display: flex;
        gap: 25px;
        flex-direction: row;
        box-sizing: border-box;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-evenly;
    }
    .service-list .item{
        transition: all 0.2s ease-in-out;
        scale: 1;
        z-index: 1;
        opacity: 1;
        margin: 50px;
        background-color: var(--main-bg-color);
        box-sizing: border-box;
        border-radius: 15px;
        animation: float 5s ease-in-out infinite;
    }
    .client-container{
        display: flex;
        gap: 25px;
        box-sizing: border-box;
    }
}
