/* in the name of Allah */

#search-box {
    background-color: #4d4d4d;
    background-image: url("data:image/svg+xml,%3Csvg width='84' height='84' viewBox='0 0 84 84' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%233b3b3b' fill-opacity='0.4'%3E%3Cpath d='M84 23c-4.417 0-8-3.584-8-7.998V8h-7.002C64.58 8 61 4.42 61 0H23c0 4.417-3.584 8-7.998 8H8v7.002C8 19.42 4.42 23 0 23v38c4.417 0 8 3.584 8 7.998V76h7.002C19.42 76 23 79.58 23 84h38c0-4.417 3.584-8 7.998-8H76v-7.002C76 64.58 79.58 61 84 61V23zM59.05 83H43V66.95c5.054-.5 9-4.764 9-9.948V52h5.002c5.18 0 9.446-3.947 9.95-9H83v16.05c-5.054.5-9 4.764-9 9.948V74h-5.002c-5.18 0-9.446 3.947-9.95 9zm-34.1 0H41V66.95c-5.053-.502-9-4.768-9-9.948V52h-5.002c-5.184 0-9.447-3.946-9.95-9H1v16.05c5.053.502 9 4.768 9 9.948V74h5.002c5.184 0 9.447 3.946 9.95 9zm0-82H41v16.05c-5.054.5-9 4.764-9 9.948V32h-5.002c-5.18 0-9.446 3.947-9.95 9H1V24.95c5.054-.5 9-4.764 9-9.948V10h5.002c5.18 0 9.446-3.947 9.95-9zm34.1 0H43v16.05c5.053.502 9 4.768 9 9.948V32h5.002c5.184 0 9.447 3.946 9.95 9H83V24.95c-5.053-.502-9-4.768-9-9.948V10h-5.002c-5.184 0-9.447-3.946-9.95-9zM50 50v7.002C50 61.42 46.42 65 42 65c-4.417 0-8-3.584-8-7.998V50h-7.002C22.58 50 19 46.42 19 42c0-4.417 3.584-8 7.998-8H34v-7.002C34 22.58 37.58 19 42 19c4.417 0 8 3.584 8 7.998V34h7.002C61.42 34 65 37.58 65 42c0 4.417-3.584 8-7.998 8H50z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    /*background-image: -o-linear-gradient(bottom, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.5) 100%),url(/academy/img/about.jpg);*/
    /*background-image: -webkit-gradient(linear, left bottom, left top, from(rgba(0,0,0,0.5)), to(rgba(0,0,0,0.5))),url(/academy/img/about.jpg);*/
    /*background-image: linear-gradient(0deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.5) 100%),url(/academy/img/about.jpg);*/
    /*background-size: cover;*/
    /*background-position: center;*/
    border-bottom-left-radius: var(--section-br);
    border-bottom-right-radius: var(--section-br);
    padding: 3rem 0;
}
#search-box h1 {
    text-align: center;
    font-weight: 900;
    color: var(--text-light);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-shadow: 0 3px 6px #0000008c;
}
#search-box .search {
    background-color: var(--body-bgc); max-width: 1200px; width: 100%;
    padding: 15px; border-radius: var(--border-radius); margin: 0 auto;
    box-shadow: inset 0 4px 10px 0px #7a7a7a;
}
#search-box .search .main-btn {
    padding-top: calc(0.7rem + 2px); width: 100%;
    padding-bottom: calc(0.7rem + 2px); font-size: 0.8rem;
}
/* ===================================== */
#card-filter .cards-overlay {
    position: absolute;
    top: 0;
    left: 12px;
    right: 12px;
    bottom: 0;
    background-color: #b6e9da7d;
    z-index: 1;
    border-radius: var(--border-radius);
    /* opacity: 0.5; */
    -webkit-animation: card-loader infinite 2s;
            animation: card-loader infinite 2s;
}
@-webkit-keyframes card-loader {
    0% {background-color: #b6e9da7d;}
    50% {background-color: #b6e9dad1;}
    100% {background-color: #b6e9da7d;}
}
@keyframes card-loader {
    0% {background-color: #b6e9da7d;}
    50% {background-color: #b6e9dad1;}
    100% {background-color: #b6e9da7d;}
}
/* ===================================== */
.inactive {
    filter: grayscale(1);
}
/* ===================================== */
.academies .card {
    border-radius: var(--border-radius);
    background-color: var(--main-color);
    height: 160px;
    /*height: 300px;*/
    border: 0;
    -webkit-box-shadow: var(--box-shadow);
    box-shadow: var(--box-shadow);
    position: relative;
}
.academies .card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
}
.academies .card * {
    -webkit-transition-duration: var(--tr-du);
         -o-transition-duration: var(--tr-du);
            transition-duration: var(--tr-du);
}
.academies .card .overlay {
    position: absolute;
    top: 0; left: 0;
    bottom: 0; right: 0;
    color: var(--text-light);
    /* background-color: rgba(15,181,131, 0.7); */
    background-color: rgba(0, 0, 0, 0.5);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    padding: 1rem;
    text-align: center;
    border-radius: var(--border-radius);
}
.academies .card .overlay .medal {
    position: absolute;
    top: 0; width: 50px;
    left: 10px;
}
.academies .card .overlay .name {
    font-weight: 900;
    text-shadow: 0 2px 0 #4d4d4d;
    margin-bottom: 1rem;
}
.academies .card .overlay .students {
    margin-left: 1rem;
}
.academies .card .overlay .students i, .academies .card .overlay .courses i {
    margin-left: 3px;
    color: var(--main-color);
}
.academies .card .overlay .students span, .academies .card .overlay .courses span {
    font-weight: bold;
}
.academies .card .overlay .btn {
    margin-top: 1rem;
}
/* ===================================== */
.not-found {
    height: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
}
.not-found img {
    max-width: 250px;
    margin-bottom: 1rem;
}
.not-found span {
    font-weight: 800;
}
/* ===================================== */
#close-filters {
    padding: 1rem;
}
#close-filters i {
    vertical-align: middle;
    margin-left: 10px;
    font-size: 1.2rem;
}
.filter-btn {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    padding: 1.5rem 0;
}
.filter-btn .open-filters {
    font-weight: 700;
    font-size: 1.2rem;
}
.filter-btn .open-filters i {
    vertical-align: middle;
    margin-left: 0.5rem;
}
/*.filter-btn .btn:first-child {*/
/*    margin-left: 10px;*/
/*}*/
.filters {
    position: fixed;
    top: 100%; left: 0; right: 0; bottom: 0;
    background-color: var(--body-bgc);
    padding-top: 1rem;
    padding-bottom: 1rem;
    overflow: auto;
    z-index: 10001;
    -webkit-transition-duration: var(--tr-du);
         -o-transition-duration: var(--tr-du);
            transition-duration: var(--tr-du);
}
.filters.active {
    top: 0;
}
.filters .position-sticky {
    top: 1rem;
}
/* ===================================== */
.cats .accordion {
    color: var(--text-dark);
}
.cats .accordion-item {
    border: 0;
}
.cats .accordion-button {
    font-weight: bold;
    padding: 0.5rem 0;
}
.cats .accordion-button:hover {
    color: var(--main-color);
}
.cats .accordion-button::before {
    -ms-flex-negative: 0;
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    margin-left: 0.5rem;
    content: "";
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-size: 1rem;
    -webkit-transition: -webkit-transform .2s ease-in-out;
    transition: -webkit-transform .2s ease-in-out;
    -o-transition: transform .2s ease-in-out;
    transition: transform .2s ease-in-out;
    transition: transform .2s ease-in-out, -webkit-transform .2s ease-in-out;
    -webkit-transform: rotate(90deg);
        -ms-transform: rotate(90deg);
            transform: rotate(90deg);
}
.cats .accordion-button::after {
    display: none;
}
.cats .accordion-button:not(.collapsed)::before {
    -webkit-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
            transform: rotate(0deg);
    background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='rgb(15 181 131)'><path%20fill-rule='evenodd'%20d='M1.646%204.646a.5.5%200%200%201%20.708%200L8%2010.293l5.646-5.647a.5.5%200%200%201%20.708.708l-6%206a.5.5%200%200%201-.708%200l-6-6a.5.5%200%200%201%200-.708z'/></svg>");
}
.cats .accordion-button:focus {
    border-color: transparent;
    -webkit-box-shadow: none;
            box-shadow: none;
}
.cats .accordion-button:not(.collapsed) {
    background-color: transparent;
    -webkit-box-shadow: none;
            box-shadow: none;
}
.cats .accordion-button:not(.collapsed) span {
    color: var(--main-color);
}
.cats .accordion-body {
    padding: 0 .4rem 0 0;
}
.cats .sub-cats {
    list-style: none;
    padding-right: 1.3rem;
    border-right: 2px solid #e9e9e9;
}
.cats .sub-cats .cat {
    padding: 0.2rem 0;
    position: relative;
    cursor: pointer;
    color: var(--text-dark);
    -webkit-transition-duration: var(--tr-du);
         -o-transition-duration: var(--tr-du);
            transition-duration: var(--tr-du);
}
.cats .sub-cats .cat a {
    color: var(--text-dark);
}.cats .sub-cats .cat a.active {
    color: var(--main-color);
    font-weight: 700;
}
.cats .sub-cats .cat a:hover {
    color: var(--main-color);
}
.cats .sub-cats .cat::before {
    content: ''; position: absolute;
    top: 50%; right: -21px;
    width: 15px; height: 2px;
    background-color: #e9e9e9;
    -webkit-transform: translate(0, -50%);
        -ms-transform: translate(0, -50%);
            transform: translate(0, -50%);
}
/* ===================================== */
.types .type {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    -webkit-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none;
            user-select: none;
}
.types .type:not(:last-child) {
    margin-bottom: 0.5rem;
}
.types .type .form-check * {
    cursor: pointer;
}
.types .type .form-check-input:checked {
    background-color: var(--main-color);
    border-color: var(--main-color);
}
.types .type .form-switch .form-check-input:focus {
    -webkit-box-shadow: 0 0 0 .25rem var(--main2-color);
            box-shadow: 0 0 0 .25rem var(--main2-color);
    background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'><circle r='3' fill='rgb(15 181 131)'/></svg>");
}
.types .type .form-switch .form-check-input:checked {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
}


/* ============= medias ================ */
@media (min-width:992px) {
    #search-box .search {
        padding: 20px;
    }
    #search-box .search .form-control::-webkit-input-placeholder {
        font-size: initial;
    }
    #search-box .search .form-control::-moz-placeholder {
        font-size: initial;
    }
    #search-box .search .form-control:-ms-input-placeholder {
        font-size: initial;
    }
    #search-box .search .form-control::-ms-input-placeholder {
        font-size: initial;
    }
    #search-box .search .form-control::placeholder, #search-box .search .form-select {
        font-size: initial;
    }
    #search-box .search .main-btn, #search-box .search input {
        font-size: initial;
        height: 100%;
    }
    .academies .card {
        height: 300px;
    }
    .academies .card .overlay {
        -webkit-clip-path: polygon(30% 3%, 70% 3%, 97% 30%, 97% 70%, 70% 97%, 30% 97%, 3% 70%, 3% 30%);
        clip-path: polygon(30% 3%, 70% 3%, 97% 30%, 97% 70%, 70% 97%, 30% 97%, 3% 70%, 3% 30%);
        background-color: rgba(0, 0, 0, 0.3);
        -webkit-backdrop-filter: blur(5px);
        backdrop-filter: blur(5px);
    }
    .academies .card .overlay .name {
        margin-bottom: 0;
        font-size: 2rem;
    }
    .academies .card .overlay .btn, .academies .card .overlay .stud-cour {
        display: none;
    }
    .academies .card:hover .overlay {
        -webkit-clip-path: polygon(30% 0%, 100% 0, 100% 30%, 100% 100%, 70% 100%, 0 100%, 0% 70%, 0 0);
        clip-path: polygon(30% 0%, 100% 0, 100% 30%, 100% 100%, 70% 100%, 0 100%, 0% 70%, 0 0);
        -webkit-backdrop-filter: blur(0px);
        backdrop-filter: blur(0px);
    }
    .academies .card:hover .overlay .btn, .academies .card:hover .overlay .stud-cour {
        display: initial;
    }
    .academies .card:hover .overlay .name {
        margin-bottom: 1rem;
    }
    .filter-btn {
        display: none;
    }
    .filters {
        position: static;
        padding-top: 0;
        padding-bottom: 0;
        overflow: initial;
        z-index: initial;
    }
    /*.filters .stick {*/
    /*    position: -webkit-sticky;*/
    /*    position: sticky;*/
    /*    bottom: 1rem;*/
    /*}*/
    #close-filters {
        display: none;
    }
}
@media (min-width:1200px) {
    #search-box h1 {
        font-size: 3rem;
    }
    #card-filter .container-fluid {
        padding-left: 3.5rem;
        padding-right: 3.5rem;
    }
}