/** Home Page **/
.subCats{
    float: left;
    font-size: var(--h3);
}

.subCats::after{
    display: block;
    content: " ";
    clear: both;
}

.subCats li{
    display: inline-block;
}

.subCats a{
    padding: 4px 13px;
    border: 1px solid transparent;
    transition: all .1s ease-in-out;
}
.subCats a:hover, .subCats a.d{
    color: #fff;
    background-color: var(--primary);
    border-color: rgba(0,0,0, .1);
    text-shadow: 0px 1px 1px rgba(0,0,0, .25);
}


.morePosts,
.morePosts2{
    text-align: left;
}
.morePosts::after,
.morePosts2::after{
    display: block;
    content: " ";
    clear: both;
}
.morePosts a,
.morePosts2 a{
    font-weight: 600;
}
.morePosts a::after,
.morePosts2 a::after{
    position: relative;
    display: inline-block;
    content: "\f053";
    margin-right: 8px;

    font-family: "Font Awesome 5 Pro";
    font-size: 16px;
    font-weight: bold;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    color: var(--primary);

    transition: all .5s ease-in-out;
}
.morePosts a:hover::after,
.morePosts2 a:hover::after{
    -webkit-animation: mvleft .5s infinite ease-in-out;
    animation: mvleft .5s infinite ease-in-out;
}


.morePosts2{
    margin: 15px 0 0;
    height: auto;
    padding-left: 0;
}
.morePosts2 a{
    position: static;
    padding: 10px 0 0;
    margin-bottom: 0;
}

@keyframes mvleft{
    0% { 
       right: 0;
       opacity: 1;
    }
    100% { 
        right: 15px;
        opacity: 0;
    }
}


/* small posts
.rPosts {
    min-height: 110px;
    background-image: url(../img/loading-4.gif);
    background-position: center;
    background-size: auto 50%;
    background-repeat: no-repeat;
}

.rPosts li {
    width: 24%;
    width: calc(25% - .7rem);
}

.rPosts.a3 li {
    width: 32.5%;
    width: calc(33% - .7rem);
}

.rPosts a {
    display: block;
    width: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 2px 2px 1px rgba(0, 0, 0, 0.2);
}

.rPosts img {
    width: 100%;
    height: 110px;
    background-color: var(--dark);
    background-clip: padding-box;
}

.rPosts span {
    position: absolute;
    right: 0;
    top: 78px;
    width: 100%;
    height: 100%;
    font-family: var(--font-family);
    padding: 6px;
    color: transparent;
    background-color: rgba(0, 0, 0, .75);
    transition: top .225s;
}

.rPosts span::first-line {
    color: #fff;
}

.rPosts a:hover span {
    top: 0;
    color: #fff;
}

@media only screen and (max-width: 850px) {
    .rPosts li {
        width: 49.5%;
        width: calc(50% - 1rem);
    }

    .rPosts li:nth-child(1),
    .rPosts li:nth-child(2) {
        margin-bottom: 15px;
    }
}

@media only screen and (max-width: 400px) {
    .rPosts li {
        width: 100%;
    }

    .rPosts:not(.a3) li:nth-child(3) {
        margin-bottom: 15px;
    }
}*/



/* Courses Categories */
.carouselPosts {
    min-height: 110px;    
    background-image: url(../../../img/loading/blue-dots.gif);
    background-position: center;
    background-size: auto 150px;
    background-repeat: no-repeat;
    margin-top: -15px;
    padding: 15px 0 25px;
}
.carouselPosts.border{
    border-top: 1px solid #fff;
}

.carouselPosts > div{
    background-color: var(--bgColor);
}
.post .carouselPosts > div{
    background-color: var(--postBg);
}

.carouselPosts .item{
    position: relative;
    padding: 1px;
    background-color: #fff;
    box-shadow: var(--boxShadow);
    margin: 10px 0;
}


.carouselPosts .flex>.item {
    width: 24%;
    width: calc(25% - 10px);
}

.carouselPosts.a3 .item {
    width: 32.5%;
    width: calc(33% - .7rem);
}

.carouselPosts a{
    position: relative;
    z-index: 5;
    display: block;
    width: 100%;
    
}
.carouselPosts a .container{
    position: relative;    
    width: 100%;
    height: 130px;
    color: var(--secondary);
    font-family: var(--font-family);
    font-size: var(--h3);
    line-height: 30px;
    border-radius: var(--radius2);
    overflow: hidden;
    background: url(../../../img/loading/blue-dots.gif) top 20px center no-repeat;
    background-size: auto 150px;
    padding: 0;
}
.carouselPosts a::after{
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    content: " ";
    width: 100%;
    height: 100%;
    background-color: var(--dark);
    opacity: .5;
}

.carouselPosts img {
    width: 100%;
    height: 100%;
    transition: all .2s ease-in-out;
}

.carouselPosts .item:hover img {
    transform: scale(1.05);
}

.carouselPosts .item a span{
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;

    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;

    -webkit-flex-flow: column;
    -ms-flex-flow: column;
    flex-flow: column;

    align-items: flex-start;
    align-content: flex-start;

    box-shadow: inset 0 0 3px rgba(0,0,0, .3);
    
    position: absolute;
    top: 0;
    
    font-size: 15px;
    font-weight: 700;
    word-spacing: 2px;
    color: #fff;
    text-shadow: 1px 1px 5px rgba(0,0,0, .5);

    height: 100%;
    width: 100%;
    padding: 12px;

    background-color: rgba(var(--primary-rgb), .93);

    transition: all .2s ease-in-out;

    opacity: 0;
    z-index: 600;
}

.carouselPosts .item:hover a span,
.carouselPosts .item.d a span {
    opacity: 1;
}

.carouselPosts .item.dd a span {
    font-size: 20px;
    align-items: center;
}


.carouselPosts strong{
    height: 70px;
    padding: 10px 5px;
    align-content: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--light);
    background-color: var(--darkLight);
    border-top: 1px solid rgba(255,255,255, .2);
    transition: all .15s ease-in-out;
}
.carouselPosts .item:hover strong{
    color: #fff;
    border-color: #fff;
    background-color: var(--primary);
}

.carouselPosts .play-btn{
    position: absolute;
    top: 50%;
    right: 50%;    
    width: 50px;
    height: 50px;
    margin-top: -25px;
    margin-right: -25px;
    background: url(../img/play-gif.png) center no-repeat;
    background-size: 100% 100%;
    opacity: .8;
    z-index: 500;
}
.carouselPosts .play-btn.vid{
    background-image: url(../img/play-yt.png);
}
.carouselPosts .item:hover .play-btn,
.carouselPosts .item.d .play-btn{
    opacity: 1;
}

.carouselPosts .owl-nav .disabled{
    display: none;
}
.carouselPosts .owl-dots{
    text-align: center;
    -webkit-tap-highlight-color: transparent;
}
.carouselPosts .owl-dots .owl-dot{
    margin-top: 5px;
    margin-bottom: 0;
}
.carouselPosts .owl-dots .owl-dot span{
    width: 15px;
    height: 15px;
    margin: 5px;
    background-color: var(--secondary);
    box-shadow: inset 0 0 2px rgba(0, 0, 0, .2);
    display: block;
    -webkit-backface-visibility: visible;
    transition: opacity 200ms ease;
    border-radius: 30px;
}


.carouselPosts .owl-dots .owl-dot.active span,
.carouselPosts .owl-dots .owl-dot:hover span{
    background-color: var(--primary);
}
.carouselPosts .owl-dots .owl-dot.active span{
    width: 25px;
}


/*@media only screen and (max-width: 850px) {
    .carouselPosts .item{
        width: 49.5%;
        width: calc(50% - 1rem);
    }
    .carouselPosts .item:nth-child(1), .carouselPosts .item:nth-child(2){
        margin-bottom: 15px;
    }
}
@media only screen and (max-width: 400px) {
    .carouselPosts .item{
        width: 100%;
    }
    .carouselPosts:not(.a3) .item:nth-child(3){
        margin-bottom: 15px;
    }
}*/



/** News Slider in Home Page 
#newsSlider {
    border: 4px solid #fff;
}

#newsSlider .container {
    padding: 8px 6px 0;
}

#newsSlider .posts li {
    position: relative;
    width: calc(33.33% - 8px);
    float: left;
    margin-right: 12px;
    margin-bottom: 12px;
    border: 1px solid rgba(0, 0, 0, .1);
}

#newsSlider .posts li:first-child {
    float: right;
    margin-bottom: 0;
    margin-right: 0;
}

#newsSlider .posts li:hover {
    border-color: var(--dark);
}

#newsSlider .posts::after {
    display: block;
    content: " ";
    clear: both;
}

#newsSlider .posts li:last-child {
    margin-right: 0;
    margin-bottom: 0;
}


#newsSlider .prev {
    float: right;
    width: 130px;
    height: 80px;
    overflow: hidden;
}

#newsSlider img {
    width: 100%;
    height: 100%;
    transition: all .1s ease-in-out;
}

#newsSlider .posts li:hover img {
    transform: scale(1.1);
}

#newsSlider h2 {
    float: left;
    width: calc(100% - 130px);
    margin-bottom: 0;
}

#newsSlider .posts li:first-child .prev {
    width: 100%;
    height: 124px;
}

#newsSlider .posts li:first-child h2 {
    float: none;
    width: 100%;
}

#newsSlider .posts li h2 a {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;

    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: space-evenly;

    -webkit-flex-flow: column;
    -ms-flex-flow: column;
    flex-flow: column;

    align-items: flex-start;
    align-content: flex-start;

    background-color: #f8f8f8;

    padding: 10px 15px;
    font-family: var(--font-family);
    font-size: var(--h5);
    line-height: 20px;
    height: 80px;
    overflow: hidden;

    text-shadow: none;
}

#newsSlider .posts li:first-child h2 a {
    height: 50px;
    letter-spacing: 0;
}

#newsSlider .posts li a span {
    display: none;
    padding: 2px 10px;
    border-radius: 20px;
    background-color: var(--secondary);
    color: #fff;
    font-family: Tahoma;
    letter-spacing: 1px;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 0 2px rgba(0, 0, 0, .3);
}

#newsSlider .posts li:hover a {
    color: var(--primary);
    border-color: var(--primary) !important;
}

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

    #newsSlider .posts li .prev,
    #newsSlider .posts li .main {
        float: none;
        width: 100%;
    }

    #newsSlider .posts li .prev {
        height: 150px;
        margin-bottom: 15px;
    }
}

@media only screen and (max-width: 400px) {
    #newsSlider .posts li {
        width: 100%;
    }

    #newsSlider .posts li h2 {
        height: 40px;
    }
}**/




/** Grid Posts **/
.gridPosts{
    padding-top: 25px;
}
.gridPost{
    /* border: 2px solid #fff; */
}

.gridPost.sml{
    width: 32%;
}

.gridPost.lst{
    width: 49%;
}

.gridPost.lst .postPrev{
    float: right;
    width: 180px;
}
.gridPost.lst .content{
    float: left;
    width: calc(100% - 180px);
}

.gridPost.lst.width100 .postPrev{
    width: 220px;
}
.gridPost.lst.width100 .content{
    width: calc(100% - 220px);
}


.gridPost.lst::after{
    display: block;
    content: " ";
    clear: both
}

.gridPost .postPrev{
    position: relative;
    display: block;
    overflow: hidden;
}
.gridPost .postPrev .shadow{
    display: block;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 15px rgba(0,0,0, .1);
    position: absolute;
    top: 0;
    right: 0;
    text-indent: -9999px;
}
.gridPost.lst .postPrev .shadow{
    border-left: 1px solid rgba(0,0,0, .1);
}
.gridPost .postPrev .play-btn{
    position: absolute;
    top: 50%;
    right: 50%;
    width: 56px;
    height: 56px;
    margin-top: -28px;
    margin-right: -28px;
    background: url(../img/play-gif.png) center no-repeat;
    background-size: 100% 100%;
    opacity: .8;
}
.gridPost .postPrev .play-btn.vid{
    background-image: url(../img/play-yt.png);
}
.gridPost .postPrev:hover .play-btn{
    opacity: 1;
}


.gridPost.sml .postHeader, 
.gridPost.lst .postHeader{
    width: 100%;
}

.gridPost.sml.post .bgImage, 
.gridPost.lst.post .bgImage{
    background-size: cover;
    background-position: center;
}

.gridPost.sml.post .linkPreview, 
.gridPost.sml.post video, 
.gridPost.sml.post iframe, 
.gridPost.sml.post picture, 
.gridPost.sml.post .picture,

.gridPost.lst.post .linkPreview, 
.gridPost.lst.post video, 
.gridPost.lst.post iframe, 
.gridPost.lst.post picture, 
.gridPost.lst.post .picture,

.gridPost.sml.post .bgImage, 
.gridPost.lst.post .bgImage{
    width: 100%;
    height: 160px;
    margin: 0;    
    border: 0;
    transition: all .2s ease-in-out;
}

.gridPost.lst.post:not(.showFooter) .linkPreview, 
.gridPost.lst.post:not(.showFooter) video, 
.gridPost.lst.post:not(.showFooter) iframe, 
.gridPost.lst.post:not(.showFooter) picture, 
.gridPost.lst.post:not(.showFooter) .picture,
.gridPost.lst.post:not(.showFooter) .bgImage{
    height: 120px;
}

.gridPost.lst.post.noHeader .linkPreview, 
.gridPost.lst.post.noHeader video, 
.gridPost.lst.post.noHeader iframe, 
.gridPost.lst.post.noHeader picture, 
.gridPost.lst.post.noHeader .picture,
.gridPost.lst.post.noHeader .bgImage{
    height: 130px;
}

.gridPost.sml .linkPreview .play,
.gridPost.lst .linkPreview .play{
    margin-top: -30px;
    right: calc(50% - 30px);
    width: 60px;
    height: 60px;
}

.gridPost.sml .linkPreview.video p,
.gridPost.lst .linkPreview.video p{
    display: none;
}

.gridPost.sml h2, 
.gridPost.lst h2{
    font-size: 15px;
    line-height: 28px;
    padding: 0 10px;
    margin: 0;
    min-height: 80px;
}
.gridPost.lst h2{
    min-height: 90px;
}


.gridPost.lst .postHeader{
    padding-top: 10px;
    height: 30px;
    background-color: transparent;
    box-shadow: none;
}
.gridPost.lst .wall::before{
    color: var(--primary);
}
.gridPost.lst .wall:hover::before{
    color: var(--secondary);
}
.gridPost.lst .postHeader a{
    color: var(--darkLight);
    text-shadow: none;
}

.gridPost.lst .postHeader a:hover{
    color: var(--primary);
}

.gridPost:hover .postPrev .picture,
.gridPost:hover .postPrev .bgImage{
    transform: scale(1.2);
}


/* No Preview */
.gridPost.sml .noPrev h2{
    min-height: 244px;
}
.gridPost.lst .noPrev{
    float: none;
    width: 100%;
}


@media only screen and (max-width: 1100px) {
    .gridPost.lst{
        width: 100%;
        margin-bottom: 35px;
    }
}
@media only screen and (max-width: 1100px) {
    .gridPost.sml{
        width: 49%;
    }
}
@media only screen and (max-width: 540px){
    .gridPost.sml{
        width: 100%;
    }
    .gridPost.sml h2{
        min-height: unset;
        padding-top: 15px;
        padding-bottom: 15px;
    }
}

@media only screen and (max-width: 450px) {
    .gridPost.lst .postPrev,
    .gridPost.lst .content,
    .gridPost.lst.width100 .postPrev,
    .gridPost.lst.width100 .content{
        float: none;
        width: 100%;
    }
    .gridPost.lst h2 {
        min-height: unset;
        padding-top: 10px;
        padding-bottom: 15px;
    }
}