﻿/********** Pattern 1 - News **********/
.pattern1 { display: inline-block; width: 100%; float: right }
.pattern1 ul li { float: right; margin-left: 20px; margin-bottom: 20px; width: calc((100% - 60.1px) / 4); height: auto; position: relative; border: 1px solid #ddd; overflow: hidden; background: #fff }
.pattern1 ul li:nth-child(4n) { margin-left: 0 }
.pattern1 ul li a { display: block }
.pattern1 ul li .secName { padding: 2px 10px;   font-size: 13px; color: #fff; background: rgba(0,0,0,0.7); position: absolute; top: 0px; right: 0px; z-index: 1;max-width:100%;white-space:normal;text-overflow:ellipsis;overflow:hidden }
.pattern1 ul li.video .secName,
.pattern1 ul li.album .secName,
.pattern1 ul li.infograph .secName,
.pattern1 ul li.sed .secName {padding: 2px 10px;   font-size: 13px; color: #fff; background: rgba(0,0,0,0.7); position: absolute; top: 0px; right: 0px; z-index: 1; height: 30px; line-height: 2.3 }
.pattern1 ul li.video .secName .icon,
.pattern1 ul li.album .secName .icon,
.pattern1 ul li.infograph .secName .icon,
.pattern1 ul li.sed .secName .icon { width: 30px; height: 30px; float: right; margin-left: 10px; text-align: center }
.pattern1 ul li .secName:nth-of-type(2n){display:none;left: 0;width: 30px;height: 25px;overflow: hidden;padding: 0;right: auto;top: 0;}
.pattern1 ul li.video .secName:nth-of-type(2n),
.pattern1 ul li.album .secName:nth-of-type(2n),
.pattern1 ul li.infograph .secName:nth-of-type(2n),
.pattern1 ul li.sed .secName:nth-of-type(2n){left: 0;width: 30px;height: 25px;overflow: hidden;padding: 0;right: auto;top: 0;display:inline-block}
.pattern1 ul li.video .secName .icon,
.pattern1 ul li.album .secName .icon,
.pattern1 ul li.infograph .secName .icon,
.pattern1 ul li.sed .secName:nth-of-type(2n) .icon {background-color: #000;width: 30px;height: 25px;position: absolute;top: 0;margin-left: 0;right: 0; }
.pattern1 ul li.video .secName:nth-of-type(2n) .icon,
.pattern1 ul li.album .secName:nth-of-type(2n) .icon,
.pattern1 ul li.infograph .secName:nth-of-type(2n) .icon,
.pattern1 ul li.sed .secName:nth-of-type(2n) .icon{background-color: #000;width: 30px;height: 25px;position: absolute;top: 0;margin-left: 0;right: 0;}
.pattern1 ul li.video .secName .icon { background: #db182c }
.pattern1 ul li.video .secName .icon:before { content: "m"; color: #fff; font-size: 8px;  float: left;left: 50%;position: absolute;top: 50%;transform: translate(-50%,-50%); }
.pattern1 ul li.album .secName .icon { background: #ffb200 }
.pattern1 ul li.album .secName .icon:before { content: "n"; color: #fff; font-size: 13px;  float: left;left: 50%;position: absolute;top: 50%;transform: translate(-50%,-50%); }
.pattern1 ul li.infograph .secName .icon { background: #33a144 }
.pattern1 ul li.infograph .secName .icon:before { content: "o"; color: #fff; font-size: 13px;  float: left;left: 50%;position: absolute;top: 50%;transform: translate(-50%,-50%);}
.pattern1 ul li.sed .secName .icon { background: #119e9e }
.pattern1 ul li.sed .secName .icon:before { content: "p"; color: #fff; font-size: 13px; float: left;left: 50%;position: absolute;top: 50%;transform: translate(-50%,-50%); }
.pattern1 ul li a .imageCntnr { position: relative; overflow: hidden; padding-bottom: 66.57% }
.pattern1 ul li a img { position: absolute; top: 0; right: 0; bottom: 0; left: 0; margin: 0 auto; width: 100%; height: 100%; border: none; filter: brightness(100%) contrast(100%); -webkit-filter: brightness(100%) contrast(100%); -moz-filter: brightness(100%) contrast(100%); -o-filter: brightness(100%) contrast(100%); -ms-filter: brightness(100%) contrast(100%); transition: all 0.2s ease-in-out 0s; -webkit-transition: all 0.2s ease-in-out 0s; -moz-transition: all 0.2s ease-in-out 0s; -ms-transition: all 0.2s ease-in-out 0s; -o-transition: all 0.2s ease-in-out 0s; }
.pattern1 ul li:hover img { filter: brightness(108%) contrast(108%); -webkit-filter: brightness(108%) contrast(108%); -moz-filter: brightness(108%) contrast(108%); -o-filter: brightness(108%) contrast(108%); -ms-filter: brightness(108%) contrast(108%) }
.pattern1 ul li .desc { width: 100%; cursor: pointer; display: inline-block; float: right; padding: 10px }
.pattern1 ul li .desc p { color: #000; text-align: right; line-height: 1.8; font-size: 15px;   direction: rtl; margin-bottom: 10px; height: 81px; overflow: hidden }
.pattern1 ul li:hover .desc p { color: #0277bd }
.pattern1 ul li .desc .time { display: inline-block;   font-size: 12px; color: #555555; float: right; direction: rtl; }
.pattern1 ul li .desc .icon-time:before { content: "x"; float: right; margin-left: 8px; font-size: 16px; line-height: 1.2; display: none }
.pattern1 ul li .desc .time span { margin-left: 16px; position: relative; float: right; line-height: 1.6; }
.pattern1 ul li .desc .time span:after { content: ""; position: absolute; left: -8px; top: 2px; width: 1px; height: 14px; background: #555555; }
.pattern1 ul li .desc .time span:last-child:after { display: none }

.pattern1 ul li .desc p:before { width: 50px; height: 24px; margin-left: 10px; font-size: 13px; margin-top: 6px; color: #fff !important; display: inline-block; text-align: center; }
.pattern1 .desc.agel p:before { background: #ff1a3b; content: "عاجل" }
.pattern1 .desc.mosaheh p:before { background: #0277bd; content: "مصحح" }
.pattern1 .desc.khas p:before { background: #0277bd; content: "خاص" }
.pattern1 .desc.mohades p:before { background: #0277bd; content: "محدث" }
.pattern1 .desc.lite p:before { background: #0277bd; content: "لايت" }
.pattern1 .desc.live p:before { background: #0277bd; content: "مباشر" }
.pattern1 .desc.done p:before { background: #111; content: "انتهت" }
.pattern1 .desc.soon p:before { background: #0277bd; content: "بعد قليل" }


.nativeExist.pattern1 ul li.native{padding-bottom:26%;}
.nativeExist.pattern1{overflow:hidden;height:1090px}
.nativeExist .pattern1 ul li.native{height:330px}
/********** ASYNC Native Ads **********/
.nativeAds { position: absolute; z-index: 2; width: 100%; top:0;right:0;height:100%;pointer-events:none }
.nativeAds iframe {position: absolute;top: 0;right:0;width: 100%!important;height: 100%!important;margin: 0;background: #fff;pointer-events: visible;}
.nativeAds .adsbygoogle {width: 100%!important;height: 100%!important;position: absolute;background: #fff;}
.nativeAds .adsbygoogle div{width: 100%!important;height: 100%!important;}



/*taboola*/
.pattern1 ul li.tabola{height:330px}
.tabolaaContainer .videoCube{direction:rtl}
.tabolaaContainer .thumbnails-a-hp .videoCube .item-thumbnail-href{    padding-bottom: 66.57%;
    overflow: hidden;
    position: relative;}

.tabolaaContainer   .trc_elastic .thumbBlock_holder,
.tabolaaContainer .trc_related_container DIV.videoCube.thumbnail_top .thumbBlock, 
.tabolaaContainer  .trc_related_container DIV.videoCube.thumbnail_bottom .thumbBlock{    position: absolute;
    display: inline-block;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin-left: 0;
    margin-right: 0;}

.tabolaaContainer .thumbnails-a-hp .video-label-box .branding,
.tabolaaContainer .thumbnails-a-hp-stream .syndicatedItem .branding{
    font-family: droidLight, Arial;
    padding: 7px 0;
    margin: 0 8px;
    white-space: nowrap;
    overflow: hidden;
    width: calc(100% - 20px);
    text-overflow: ellipsis;

}
.tabolaaContainer .trc_elastic_thumbnails-a-hp .videoCube{width:100%;        border: 0;margin:0;margin-left:0}
.tabolaaContainer .thumbnails-a-hp-stream .syndicatedItem .branding{padding:2px 0;margin:0;width:100%}
.tabolaaContainer .thumbnails-a-hp .syndicatedItem .video-label-box{padding:0}

.tabolaaContainer  .videoCube span.video-label.trc_ellipsis.tbl-rtl-label{
    font-family: droidLight, Arial;
    color: #000;
    height: 70px;
    cursor: pointer;
    overflow: hidden;
    text-align: right;
    line-height: 1.6;
    font-size: 14px;
    padding: 0 10px;
    max-height: unset;
    overflow: hidden;
    margin-top: 14px;
    margin-bottom: 17px;
}


.tabolaaContainer  .trc-widget-footer{position: absolute;
    top: 0;
    width: auto;height:20px;padding:0 6px;
    z-index: 1;
    right: 0;
    background-color: rgba(255, 255, 255, .9);}

.tabolaaContainer  .trc-widget-footer span{line-height:20px;
}
.tabolaaContainer .trc_user_exclude_btn{left:5px;right:auto}

.tabolaaContainer .thumbnails-a-hp-stream .videoCube .item-thumbnail-href{ 
width: 120px;
    padding-bottom: calc((120px * 66.57)/ 100);
    overflow: hidden;
    display: inline-block;
    position: relative;
        float: right;
}
.tabolaaContainer  .thumbnails-a-hp-stream .videoCube.thumbnail_start .thumbBlock_holder{
    width:100%!important
}
.tabolaaContainer  .trc_elastic_thumbnails-a-hp-stream .videoCube{width:100%;margin:0}

.tabolaaContainer  .thumbnails-a-hp-stream .syndicatedItem .video-label-box{    width: 100%;
    padding: 0 10px;}

.tabolaaContainer  .thumbnails-a-hp-stream .videoCube a {
    padding: 0;
    width: calc(100% - 120px);
    display: inline-block;
    float: left;
}
.akhbarthemak .tabola{height:96px}
.akhbarthemak .tabolaaContainer .thumbnails-a-hp-stream .videoCube .item-thumbnail-href{
        position: relative;
    overflow: hidden;
    padding-bottom: calc((120px * 66.57)/ 100);
    float: right;
    width: 100px;
}
.akhbarthemak .tabolaaContainer .thumbnails-a-hp-stream .videoCube a{    width: calc(100% - 120px);}

@media screen and (min-width:1680px) and (max-width:1919px) {
       .nativeExist.pattern1{height:1007px}
    .nativeExist.pattern1 ul li.native{height:299px}
            .pattern1 ul li.tabola{max-height:299px;overflow:hidden}

}

@media screen and (min-width:1600px) and (max-width:1679px) {
        .nativeExist.pattern1{height:1007px}
        .nativeExist.pattern1 ul li.native{height:299px}
                .pattern1 ul li.tabola{max-height:299px;overflow:hidden}

}

@media screen and (min-width:1536px) and (max-width:1599px) {

        .nativeExist.pattern1{height:1007px}
        .nativeExist.pattern1 ul li.native{height:299px}
                .pattern1 ul li.tabola{max-height:299px;overflow:hidden}

}

@media screen and (min-width:1440px) and (max-width:1535px) {
     .nativeExist.pattern1{height:1007px}
        .nativeExist.pattern1 ul li.native{height:299px}
                .pattern1 ul li.tabola{max-height:299px;overflow:hidden}

}

@media screen and (min-width:1360px) and (max-width:1439px) {
            .nativeExist.pattern1{height:1007px}
        .nativeExist.pattern1 ul li.native{height:299px}
        .pattern1 ul li.tabola{height:299px;overflow:hidden}
}

@media screen and (min-width:1280px) and (max-width:1359px) {
    .nativeExist.pattern1{height:1480px}
        .nativeExist.pattern1 ul li.native{height:338px}

         .pattern1 ul li { width: calc((100% - 40.1px) / 3) }
    .pattern1 ul li:nth-child(4n) { margin-left: 20px }
    .pattern1 ul li:nth-child(3n) { margin-left: 0 }
            .pattern1 ul li.tabola{height:338px;overflow:hidden}

}

@media screen and (min-width:1152px) and (max-width:1279px) {
    .nativeExist.pattern1{height:1306px}

        .nativeExist.pattern1 ul li.native{height:295px}
         .pattern1 ul li { width: calc((100% - 40.1px) / 3) }
    .pattern1 ul li:nth-child(4n) { margin-left: 20px }
    .pattern1 ul li:nth-child(3n) { margin-left: 0 }
            .pattern1 ul li.tabola{height:294px;overflow:hidden}

}

@media screen and (min-width:1024px) and (max-width:1151px) {
    .nativeExist.pattern1{height:1306px}

            .nativeExist.pattern1 ul li.native{height:295px;}

              .pattern1 ul li { width: calc((100% - 40.1px) / 3) }
    .pattern1 ul li:nth-child(4n) { margin-left: 20px }
    .pattern1 ul li:nth-child(3n) { margin-left: 0 }
            .pattern1 ul li.tabola{height:294px;overflow:hidden}

}

@media only screen and (max-width: 1023px) {
        .nativeExist.pattern1{height:auto;}

     .nativeExist.pattern1 ul li.native{height:102px;padding-bottom:0}

      .pattern1 ul li { width: 100%; margin-left: 0; margin-bottom: 10px }
    .pattern1 ul li .secName { right: 160px; top: 10px; background: none; color: #0277bd; padding: 0 }
    .pattern1 ul li a .imageCntnr { width: 150px; padding-bottom: calc((150px * 66.57)/ 100); float: right; }
    .pattern1 ul li .desc { float: right; position: relative; width: calc(100% - 150px); height: auto; display: inline-block; background: #fff; padding: 7px 10px; margin-top: 30px }
    .pattern1 ul li .desc p { color: #000; position: relative; padding: 0; height: 27px }
            .pattern1 ul li.tabola{max-height:102px;overflow:hidden}
            .tabolaaContainer .videoCube span.video-label.trc_ellipsis.tbl-rtl-label{    font-size: 12px;
    margin-top: 0;
    margin-bottom: 0;
    padding: 0;
    height: auto;}

            .tabolaaContainer  .thumbnails-a-hp .videoCube a{padding: 0;
    width: calc(100% - 150px);
    display: inline-block;
    float: left;}
            .tabolaaContainer .thumbnails-a-hp .videoCube .item-thumbnail-href{    width: 150px;
    padding-bottom: calc((150px * 66.57)/ 100);
    overflow: hidden;
    display: inline-block;
    position: relative;
    float: right;}
}

@media screen and (min-width: 320px) and (max-width: 767px) {
      .nativeExist.pattern1{height:auto;}

       .nativeExist.pattern1 ul li.native{height:81px}

         .pattern1 { margin-left: 0; width: 100%; }
    .pattern1 ul li .secName { right: 130px; top: 2px; font-size: 11px }

    .pattern1 ul li.video .secName,
.pattern1 ul li.album .secName,
.pattern1 ul li.infograph .secName,
.pattern1 ul li.sed .secName {right:130px;top:2px;background:none;color:#0277bd;padding:0;font-size:11px}


    .pattern1 ul li a .imageCntnr { width: 120px; padding-bottom: calc((120px * 66.57)/ 100) }
    .pattern1 ul li .desc { width: calc(100% - 120px); margin-top: 24px; padding: 0 10px }
    .pattern1 ul li .desc p { font-size: 12px; height: 54px; overflow: hidden; line-height: 1.5; margin-bottom: 0 }
    .pattern1 ul li .desc .time { display: none }
    .pattern1 ul li .desc p:before { width: 40px; height: 18px; margin-left: 6px; font-size: 12px; margin-top: 1px }
    .pattern1 ul li .desc.soon p:before, .featuredArea .desc.soon p:before{width:58px}
       .pattern1 ul li.tabola{height:81px;height:81px;overflow:hidden}
}
