.zimun-page {
    width: 100%;
    height: calc( 100vh - 125px );
    display: grid;
    grid-template-columns: 30% auto;
}

.zimun-page * {
    font-family: 'Rubik', sans-serif;
    color: #444;
}

.zimun-page_sidebar {
    background-color: #fff;
    border: 1px solid #C4C4C4;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 80px;
}

.zimun-page_sidebar h2 {
    margin-top: 0;
}

.zimun-page_sidebar p {
    font-size: 18px;
    margin-top: 10px;
    margin-bottom: 40px;
}

.zimun-page_sidebar input {
    border-radius: 7px;
    border: 1px solid #C4C4C4;
    background: #F6F6F6;
    padding: 5px 10px;
    width: 100%;
}

.zimun-page_grid-wrapper {
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

.zimun-page_grid-wrapper::-webkit-scrollbar {
    width: 8px;
}

.zimun-page_grid-wrapper::-webkit-scrollbar-thumb {
    background-color: lightgrey;
    border-radius: 10px;
}

.zimun-page_grid {
    display: grid;
    --gap:20px;
    --clmns: 4;
    grid-template-columns: repeat(4, calc((100% - (var(--gap) * (var(--clmns) - 1))) / var(--clmns)));
    /* grid-template-rows: repeat(auto-fit, 400px); */
    padding: 50px;
    gap: var(--gap);
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
}

.zimun-page_cours * {
    --fsize: 16px;
    --max-lines: 3;
}

.zimun-page_cours {
    width: 100%;
    height: fit-content;
    overflow: hidden;
    display: grid;
    grid-template-rows: calc(100% - var(--fsize) * var(--max-lines)) calc(var(--fsize) * var(--max-lines));
    cursor: pointer;
}

.zimun-page_cours .cours_title {
    font-weight: 500;
    margin: 10px 0;
    display: block;
    width: 100%;
    
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: var(--max-lines); /* number of lines to show */
    -webkit-box-orient: vertical;
    line-height: var(--fsize); /* Height taken by one line */
    max-height: calc(var(--fsize) * var(--max-lines));
    font-size: var(--fsize);
}

.cours_cover-holder {
    height: auto;
    width: 100%;
    background-color: #fff;
    position: relative;
    border-radius: 5px;
    overflow: hidden;
}

.cours_cover-holder img{
    height: 100%;
    width: 100%;
    object-fit: contain;
    /* background-color: #fff; */
    display: block;
}

.cours_cover-holder.onload {
    --base-bg: #fff;
    --shine-bg: #f8f8f8;
    aspect-ratio: 1 / 1.75;
    background: var(--base-bg);
    background-image: linear-gradient(to right, var(--base-bg) 0%, var(--shine-bg) 20%, var(--base-bg) 40%, var(--base-bg) 100%);
    background-repeat: no-repeat;
    background-size: 100%;
    -webkit-animation-duration: 2s;
    -webkit-animation-fill-mode: forwards;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-name: placeholderShimmer;
    -webkit-animation-timing-function: linear;
}

.cours_cover-holder.onload img {
    display: none;
}

@-webkit-keyframes placeholderShimmer {
    0% {
        background-position: -20px 0;
    }

    100% {
        background-position: 400px 0; 
    }
}

.zimun-page img {
    border: 0;
}

.zimun-grid_footer {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 60px;
}

.zimun-grid_footer button {
    font-size: 20px;
    border-radius: 10px;
    padding: 5px 13px;
    border: 1px solid #444;
}

.zimun-page .cover-description {
    --line: 15px;
    --line-num: 4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: var(--line-num); /* number of lines to show */
    -webkit-box-orient: vertical;
    line-height: var(--line); /* Height taken by one line */
    max-height: calc(var(--line) * var(--line-num));
    font-size: var(--line);

    position: absolute;
    width: 100%;
    bottom: 20px;
    padding: 0 20px;
    left: 0;
}


.zimun-page .preloader {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #C4C4C4;
    font-size: 26px;
}


@media (max-width: 1220px) {
    .zimun-page_sidebar {
        padding: 0 60px;
    }
    .zimun-page_grid {
        --gap: 20px;
        --clmns: 3;
        grid-template-columns: repeat(var(--clmns), calc((100% - (var(--gap) * (var(--clmns) - 1))) / var(--clmns)));
    }
}

@media (max-width: 580px) {
    .zimun-page_grid {
        --gap: 20px;
        --clmns: 2;
        grid-template-columns: repeat(var(--clmns), calc((100% - (var(--gap) * (var(--clmns) - 1))) / var(--clmns)));
    }
}

@media (max-width: 1000px) {
    .zimun-page_sidebar {
        padding: 0 40px;
    }
}

@media (min-width: 1580px) {
    .zimun-page_grid {
        --gap: 20px;
        --clmns: 5;
        grid-template-columns: repeat(var(--clmns), calc((100% - (var(--gap) * (var(--clmns) - 1))) / var(--clmns)));
    }
}

@media (max-width: 800px) {
    .zimun-page {
        display: block;
        height: auto;
        overflow: auto;
        /* grid-template-columns: none; */
        /* grid-template-rows: 30% auto; */
    }

    .zimun-page .preloader {
        min-height: calc( 100vh - 80px - 40px );
    }

    html {
        overflow-y: auto;
    }
    .zimun-page_grid-wrapper {
        height: auto;
    }
    .zimun-page_sidebar {
        padding: 20px;
    }
    .zimun-page_grid {
        padding: 20px;
    }
    .zimun-page_sidebar p {
        margin-bottom: 20px;
    }
    .zimun-page .cover-description {
        --line: 12px;
    }
}

