﻿/********** Search Result **********/
.searchResult { width: calc(100% - 320px); margin-left: 20px; padding: 0; background: none }
.searchResult.wzTag .ttl p { float: right; display: inline-block; padding: 0; font-family: DroidKufiBold, Arial; font-size: 18px; color: #fff; display: inline-block; line-height: 40px; padding: 0px 20px 0 8px; background: #E03322; }
/*.searchResult.wzTag .ttl h1{color: #E03322;padding: 0 10px;background: #fff;height: 40px;float: right;line-height: 38px;margin: 0;border: 2px solid #E03322;border-bottom: none;}*/
.searchResult form { display: inline-block; width: 100%; height: auto; margin: 0; padding: 20px; background: #e8e8e8; position: relative; margin-top: 16px }
.searchResult form:before { display: none }
.searchResult form input { display: inline-block; position: relative; width: 100%; height: auto; text-align: right; background: #fff; cursor: text; padding: 10px; border: 1px solid #ddd !important; z-index: 1; direction: rtl;  font-size: 14px; color: #1d1d1d; outline: none; }
.searchResult form .morphsearch-submit { position: absolute; width: 30px; height: 30px; margin-top: 0; overflow: hidden; left: 30px; top: 30px; background: #fff; z-index: 2; background-size: 100%; border: none; pointer-events: auto; transform-origin: 50% 50%; opacity: 1; -webkit-transform: translate3d(0,0,0) scale3d(1,1,1); transform: translate3d(0,0,0) scale3d(1,1,1); }
.searchResult form .morphsearch-submit.icon-search:before { content: "f"; color: #ddd; font-size: 20px; line-height: 1.4; opacity: 1; height: 30px; width: 30px; transform: none; top: 0; }
.searchResult form input:focus, .searchResult form textarea:focus { border: 1px solid #666 !important; outline: none; }
/** Search Result Filter **/
.filterMainContent { position: relative; min-height: 28vh; display: inline-block; float: right; width: 100%; margin-top: 0 }
.filterMainContent:after { content: ""; display: table; clear: both; }
.filterMainContent h3 { display: inline-block; float: right; width: 110px; font-family: DroidKufiBold, Arial; font-size: 14px; color: #1d1d1d; line-height: 3.5; direction: rtl }
.cd-tab-filter-wrapper { display: inline-block; width: 100%; float: right; position: relative; overflow: hidden; height: 100%; max-height: 0; box-sizing: border-box; transition: all .2s ease-in-out 0s; -webkit-transition: all .2s ease-in-out 0s; -moz-transition: all .2s ease-in-out 0s; -ms-transition: all .2s ease-in-out 0s; -o-transition: all .2s ease-in-out 0s; }
.cd-tab-filter-wrapper.show { opacity: 1; visibility: visible; margin: 40px 0 24px; }
/*.cd-tab-filter-wrapper:before{content:"";display:inline-block;float:right;width:20px;height:20px;margin-top:8px;margin-left:16px;background:url(../Images/filter.png) no-repeat center center;background-size:100% auto}*/
.cd-tab-filter-wrapper:after { content: ""; display: table; clear: both; }
.cd-tab-filter { display: inline-block; float: right; position: relative; width: 100%; margin: 0 auto; cursor: auto }
.cd-tab-filter::after { content: 'q'; position: absolute; left: 20px; top: 50%; color: #666; bottom: auto; -webkit-transform: rotate(-90deg) translateY(-50%); -moz-transform: rotate(-90deg) translateY(-50%); -ms-transform: rotate(-90deg) translateY(-50%); -o-transform: rotate(-90deg) translateY(-50%); transform: rotate(-90deg) translateY(-50%); display: none; line-height: 0.5; -webkit-transition: all 0.3s; -moz-transition: all 0.3s; transition: all 0.3s; pointer-events: none; }
.cd-tab-filter ul { position: static; top: 0; left: 0; display: inline-block; float: right; width: 100%; }
.cd-tab-filter li { display: inline-block; float: right; margin-left: 10px; margin-bottom: 10px }
.cd-tab-filter li:last-of-type { border-left: none; margin-left: 0 }
.cd-tab-filter li.placeholder { display: none !important }
.cd-tab-filter li:first-child { display: block; }
.cd-tab-filter a { display: inline-block; height: 36px; border-radius: 20px; padding: 0 30px; background: #fff; border: 1px solid #e8e8e8; line-height: 36px;  font-size: 13px; color: #1d1d1d; text-align: center }
.cd-tab-filter a:hover, .cd-tab-filter a.selected { background: #1d1d1d; color: #fff; }
.cd-tab-filter li.news a:hover, .cd-tab-filter li.news a.selected { background: #E03322 }
.cd-tab-filter li.arts a:hover, .cd-tab-filter li.arts a.selected { background: #A8006B }
.cd-tab-filter li.howa_w_hya a:hover, .cd-tab-filter li.howa_w_hya a.selected { background: #7b1fa2 }
.cd-tab-filter li.sports a:hover, .cd-tab-filter li.sports a.selected { background: #056818 }
.cd-tab-filter li.autos a:hover, .cd-tab-filter li.autos a.selected { background: #1a237e }
.cd-tab-filter li.islameyat a:hover, .cd-tab-filter li.islameyat a.selected { background: #075C99 }
.cd-tab-filter li.ramadan a:hover, .cd-tab-filter li.ramadan a.selected { background: #330D46 }
.cd-tab-filter.is-open::after { -webkit-transform: translateY(-50%) rotate(-270deg); -moz-transform: translateY(-50%) rotate(-270deg); -ms-transform: translateY(-50%) rotate(-270deg); -o-transform: translateY(-50%) rotate(-270deg); transform: translateY(-50%) rotate(-270deg); }
.cd-tab-filter.is-open ul { box-shadow: inset 0 0 0 #1d1d1d, 0 2px 10px rgba(0, 0, 0, 0.2); max-height: 300px; overflow-y: scroll; z-index: 1; }
.cd-tab-filter.is-open ul li { display: inline-block; }
.cd-tab-filter.is-open .placeholder a { opacity: .4; }
.cd-gallery { padding: 16px 0 0; width: 100%; box-shadow: none; margin-bottom: 0; padding-bottom: 0; background: none }
.cd-gallery ul { text-align: justify; }
.cd-gallery li { background: #fff; border: 1px solid #e8e8e8; margin-bottom: 16px; width: calc((100% - 32px) / 3); height: auto; position: relative; overflow: hidden; display: inline-block; transition: none; -webkit-transition: none; -moz-transition: none; -o-transition: none; -ms-transition: none }
.cd-gallery li .item .imageCntnr { position: relative; overflow: hidden; padding-bottom: 56.25%; display: inline-block; float: right; width: 100% }
.cd-gallery li .item img { position: absolute; top: 50%; right: auto; bottom: auto; left: 50%; transform: translate(-50%,-50%); margin: 0 auto; width: 100%; height: auto;}
.cd-gallery li .desc { width: 100%; overflow: hidden; cursor: pointer; position: relative; padding: 10px }
.cd-gallery li .desc h2 { color: #1d1d1d; height: 68px; cursor: pointer; overflow: hidden; text-align: right; line-height: 1.6; font-size: 14px;  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; 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; -o-transition: all 0.2s ease-in-out 0s; -ms-transition: all 0.2s ease-in-out 0s; }
.cd-gallery li .item:hover .desc h2 { color: #666 }
.cd-gallery li .desc.authorDesc { display: none }
.cd-gallery li .authorName { display: none }
.cd-gallery li .articleDate { display: none }
.cd-gallery li .secName { display: none; font-family: DroidKufiBold, Arial; font-size: 12px; color: #fff; position: absolute; top: 10px; right: 10px; pointer-events: visible; }
.searchResult .cd-gallery li .secName { display: inline-block; position: relative; top: auto; right: auto; margin-bottom: 10px }
.cd-gallery li .time {  font-size: 12px; color: #666; display: inline-block; float: right; width: 100%; cursor: default; padding: 0 10px 6px }
.cd-gallery li .icon-time:before { content: "e"; font-size: 14px; float: right; margin-left: 5px; line-height: 1.6 }

.cd-gallery ul li.icon-video .imageCntnr span,
.cd-gallery ul li.icon-image .imageCntnr span { position: absolute; width: 32px; height: 32px; left: 4px; top: 4px; z-index: 1; line-height: 32px; text-align: center; background: #E03322; border-radius: 50%; }
.cd-gallery ul li.icon-video .imageCntnr span:before,
.cd-gallery ul li.icon-image .imageCntnr span:before { color: #fff; font-size: 17px; line-height: 32px; opacity: 1; transition: all .2s ease-in-out 0s; -webkit-transition: all .2s ease-in-out 0s; -moz-transition: all .2s ease-in-out 0s; -ms-transition: all .2s ease-in-out 0s; -o-transition: all .2s ease-in-out 0s; }
.cd-gallery ul li.icon-image .imageCntnr span:before { content: "t";  }
.cd-gallery ul li.icon-video .imageCntnr span:before { content: "s"; margin-left: 2px }
.cd-gallery li.gap { opacity: 0; height: 0; display: inline-block; }
.cd-gallery img { display: block; width: 100%; }
.cd-gallery .cd-fail-message { display: none; text-align: center; }
.cd-gallery .leaderboardDiv { margin: 16px auto 40px }
.cd-filter { position: absolute; top: 0; left: 0; width: 280px; height: 100%; background: #ffffff; box-shadow: 4px 4px 20px transparent; z-index: 2; -webkit-transform: translateZ(0); -moz-transform: translateZ(0); -ms-transform: translateZ(0); -o-transform: translateZ(0); transform: translateZ(0); -webkit-backface-visibility: hidden; backface-visibility: hidden; -webkit-transform: translateX(-100%); -moz-transform: translateX(-100%); -ms-transform: translateX(-100%); -o-transform: translateX(-100%); transform: translateX(-100%); -webkit-transition: -webkit-transform 0.3s, box-shadow 0.3s; -moz-transition: -moz-transform 0.3s, box-shadow 0.3s; transition: transform 0.3s, box-shadow 0.3s; }
.cd-filter::before { content: ''; position: absolute; top: 0; left: 0; height: 50px; width: 100%; background-color: #1d1d1d; z-index: 2; }
.cd-filter form { padding: 70px 20px; }
.cd-filter .cd-close { position: absolute; top: 0; right: 0; height: 50px; line-height: 50px; width: 60px; color: #ffffff; font-size: 1.3rem; text-align: center; background: #37296a; opacity: 0; -webkit-transition: opacity 0.3s; -moz-transition: opacity 0.3s; transition: opacity 0.3s; z-index: 3; }
.no-touch .cd-filter .cd-close:hover { background: #32255f; }
.cd-filter.filter-is-visible { -webkit-transform: translateX(0); -moz-transform: translateX(0); -ms-transform: translateX(0); -o-transform: translateX(0); transform: translateX(0); box-shadow: 4px 4px 20px rgba(0, 0, 0, 0.2); }
.cd-filter.filter-is-visible .cd-close { opacity: 1; }
.no-touch .cd-tab-filter a:hover { color: #1d1d1d; }
.cd-filter-trigger { position: absolute; top: 0; left: 0; height: 50px; line-height: 50px; width: 60px; overflow: hidden; text-indent: 100%; color: transparent; white-space: nowrap; z-index: 3; }
.cd-filter-trigger.filter-is-visible { pointer-events: none; }
.cd-filter-block { margin-bottom: 1.6em; }
.cd-filter-block h4 { position: relative; margin-bottom: .2em; padding: 10px 0 10px 20px; color: #9a9a9a; text-transform: uppercase; font-weight: 700; font-size: 1.3rem; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; cursor: pointer; }
.no-touch .cd-filter-block h4:hover { color: #1d1d1d; }
.cd-filter-block h4::before { content: ''; position: absolute; left: 0; top: 50%; width: 16px; height: 16px; -webkit-transform: translateY(-50%); -moz-transform: translateY(-50%); -ms-transform: translateY(-50%); -o-transform: translateY(-50%); transform: translateY(-50%); -webkit-transition: -webkit-transform 0.3s; -moz-transition: -moz-transform 0.3s; transition: transform 0.3s; }
.cd-filter-block h4.closed::before { -webkit-transform: translateY(-50%) rotate(-90deg); -moz-transform: translateY(-50%) rotate(-90deg); -ms-transform: translateY(-50%) rotate(-90deg); -o-transform: translateY(-50%) rotate(-90deg); transform: translateY(-50%) rotate(-90deg); }
.cd-filter-block input, .cd-filter-block select,
.cd-filter-block .radio-label::before,
.cd-filter-block .checkbox-label::before { font-family: "Open Sans", sans-serif; border-radius: 0; background-color: #ffffff; border: 2px solid #e6e6e6; }
.cd-filter-block input[type='search'],
.cd-filter-block input[type='text'],
.cd-filter-block select { width: 100%; padding: .8em; -webkit-appearance: none; -moz-appearance: none; -ms-appearance: none; -o-appearance: none; appearance: none; box-shadow: none; }
.cd-filter-block input[type='search']:focus,
.cd-filter-block input[type='text']:focus,
.cd-filter-block select:focus { outline: none; background-color: #ffffff; border-color: #1d1d1d; }
.cd-filter-block input[type='search'] { border-color: transparent; background-color: #e6e6e6; font-size: 1.6rem !important; }
.cd-filter-block input[type='search']::-webkit-search-cancel-button { display: none; }
.cd-filter-block .cd-select { position: relative; }
.cd-filter-block .cd-select::after { content: ''; position: absolute; z-index: 1; right: 14px; top: 50%; display: block; width: 16px; height: 16px; pointer-events: none; -webkit-transform: translateY(-50%); -moz-transform: translateY(-50%); -ms-transform: translateY(-50%); -o-transform: translateY(-50%); transform: translateY(-50%); }
.cd-filter-block select { cursor: pointer; font-size: 1.4rem; }
.cd-filter-block select::-ms-expand { display: none; }
.cd-filter-block .list li { position: relative; margin-bottom: .8em; }
.cd-filter-block .list li:last-of-type { margin-bottom: 0; }
.cd-filter-block input[type=radio],
.cd-filter-block input[type=checkbox] { position: absolute; left: 0; top: 0; margin: 0; padding: 0; opacity: 0; z-index: 2; }
.cd-filter-block .checkbox-label,
.cd-filter-block .radio-label { padding-left: 24px; font-size: 1.4rem; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; }
.cd-filter-block .checkbox-label::before, .cd-filter-block .checkbox-label::after,
.cd-filter-block .radio-label::before,
.cd-filter-block .radio-label::after { content: ''; display: block; position: absolute; top: 50%; -webkit-transform: translateY(-50%); -moz-transform: translateY(-50%); -ms-transform: translateY(-50%); -o-transform: translateY(-50%); transform: translateY(-50%); }
.cd-filter-block .checkbox-label::before,
.cd-filter-block .radio-label::before { width: 16px; height: 16px; left: 0; }
.cd-filter-block .checkbox-label::after,
.cd-filter-block .radio-label::after { display: none; }
.cd-filter-block .checkbox-label::after { width: 16px; height: 16px }
.cd-filter-block .radio-label::before,
.cd-filter-block .radio-label::after { border-radius: 50%; }
.cd-filter-block .radio-label::after { width: 6px; height: 6px; background-color: #ffffff; left: 5px; }
.cd-filter-block input[type=radio]:checked + label::before,
.cd-filter-block input[type=checkbox]:checked + label::before { border-color: #1d1d1d; background-color: #1d1d1d; }
.cd-filter-block input[type=radio]:checked + label::after,
.cd-filter-block input[type=checkbox]:checked + label::after { display: block; }
@-moz-document url-prefix() {
    .cd-filter-block .cd-select::after { display: none; }
}
.innerListing .akhbarThemak.fixed { position: fixed; top: 60px }
.showSponsor .innerListing .akhbarThemak.fixed { top: 120px }
.artclEnd { float: right; width: 100%; display: inline-block }
/********** Archive **********/
.datepicker-form .ui-datepicker-trigger { display: none }
.datepicker-form .icon-date { width: 30px; height: 30px; position: absolute; left: 30px; top: 50%; transform: translateY(-50%); pointer-events: none; z-index: 2 }
.datepicker-form .icon-date:before { content: "c"; color: #666; font-size: 20px; line-height: 1.3; }
.archivePage .searchResult form { margin-top: 20px }
.searchResult .filterDiv { display: inline-block; float: left; width: 70px; }
.searchResult .filterDiv .filterItem { display: inline-block; float: left; width: 32px; height: 32px; margin-right: 6px; background: #E03322; border-radius: 50%; text-align: center; line-height: 32px; position: relative }
.searchResult .filterDiv .filterItem:last-child { margin-right: 0 }
.searchResult .filterDiv .filterBtn img { width: 16px; height: auto;margin-top: 6px; }
.searchResult .filterDiv .icon-date:before { content: "c"; color: #fff; font-size: 14px; line-height: 32px }
.searchResult .filterDiv .showCal .ui-datepicker { position: absolute; z-index: 4; left: 0; max-height: 0; opacity: 0; visibility: hidden; 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; }
.searchResult .filterDiv .showCal.show .ui-datepicker { max-height: 250px; opacity: 1; visibility: visible }

@media screen and (min-width:1152px) and (max-width:1279px) {
    .cd-gallery li { width: calc((100% - 16px) / 2); }
}

@media screen and (min-width:1024px) and (max-width:1151px) {
        .cd-gallery li { width: calc((100% - 16px) / 2); }

}

@media only screen and (max-width: 1023px) {
        .searchResult { width: 100%; margin-left: 0 }
         .searchResult { padding: 0 10px }
    .filterMainContent.is-fixed .cd-gallery { padding-top: 16px; }
    .authorsListing .cd-gallery li .authorName { font-size: 12px }
    .quizListing .cd-gallery li .desc h2 { text-align: right }
    .cd-gallery .leaderboardDiv { margin: 10px auto 30px }
    .searchResult form { padding: 12px; }

    .cd-tab-filter a { font-size: 12px }
    .datepicker-form .icon-date { left: 18px }
    .datepicker-form .icon-date:before { font-size: 22px }
    .filterMainContent h3 { width: 90px; font-size: 14px }

}

@media screen and (min-width: 320px) and (max-width: 767px) {
     .searchResult.wzTag .ttl p,
    .newsPointer .ttl h4 { font-size: 16px }
    .searchResult.wzTag .ttl p { width: 138px; padding: 0 18px 0 8px }

     .innerListing { padding: 16px 0 0 }
    .cd-gallery li { width: 100% }
    .cd-gallery li .desc { padding: 10px; margin-bottom: 10px; }
    .cd-gallery li .desc h2 { height: auto; font-size: 13px }
    .searchResult .cd-gallery li .secName { margin-bottom: 6px }
    .cd-gallery li .secName { font-size: 11px }
    .searchResult form input { font-size: 13px }
        .cd-tab-filter-wrapper:before { width: 16px; height: 16px; }
    .cd-tab-filter a { height: 30px; padding: 0 20px; line-height: 30px; font-size: 11px }
    .searchResult form .morphsearch-submit { left: 20px; top: 22px }
}