﻿/*====== responsive newsCollector - n.ghelichkhani - 1396-12-09 ======*/
.dp-isDecussate > div:nth-child(2n+1){
    background-color:gray;
}
/* rotator box */
.rotatorBox {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
    position: relative;
    z-index: 1;
}
.rotatorBox > .dp-clearfix {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    padding:5px;
}
[id$="tblRotator"] {
    width: 100%;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    position:relative;
    z-index:1;
}

/* normal news box */
[id$="tblCollectedNews"].NewsItemStyle {
    margin-top: 15px;
    margin-bottom: 15px;
    overflow: hidden;
}
[id$="tblCollectedNews"].NewsItemStyle > div{
    display:block;
    max-width:100% !important;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    padding:5px;
}
/* content - normal and rotator */
.dp-rotatorNewsClt.content {
    display: inline-block;
    float: right;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    padding: 0 10px;
}
.dp-normNewsClt.content {
    display: inline-block;
    float: right;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    padding: 0 10px;
}
/*image*/
.newsCollectorImages {
    text-align:center;
    display: inline-block;
    max-width: 100% !important;
    max-height: 100%;
    margin: 0;
    padding: 5px;
    border: 1px solid #e5e5e5;
    background: #fff;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
.newsCollectorImages img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    margin: 0 auto;
    float:none;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    position:relative;
    top:50%;
    -webkit-transform:translateY(-50%);
    -moz-transform:translateY(-50%);
    -ms-transform:translateY(-50%);
    -o-transform:translateY(-50%);
    transform:translateY(-50%);
}
/* top */
.dp-normNewsClt.top-img{
    text-align:center;
}
.dp-normNewsClt.top-img .newsCollectorImages img{
    display:block;
    max-width:100%;
    max-height:100%;
}
/* right image - normal and rotator */
.dp-rotatorNewsClt.right-img, .dp-normNewsClt.right-img {
    float: right;
}
/* left image - normal and rotator */
.dp-rotatorNewsClt.left-img , .dp-normNewsClt.left-img{
    float:left;
}
/* pre title - normal and rotator */
/*.NewsPreTitleStyleCollector, .dp-listNewsClt.pre-title*/ 
.NormalFontNewsPreTitle, .dp-listNewsClt.pre-title 
{
    white-space: normal;
    color: #909090;
    font: 13px BYekan,Verdana,Helvetica,sans-serif;
    font-weight: normal;
    display: block;
    margin-top: 5px;
}
/* title - normal and rotator */
.dp-rotatorNewsClt.title a, .dp-listNewsClt.title a{
    font: 17px BYekan,Verdana,Helvetica,sans-serif;
    color: #444;
    line-height: 19px;
    white-space: normal;
    -webkit-transition: all ease .4s;
    -moz-transition: all ease .4s;
    -ms-transition: all ease .4s;
    -o-transition: all ease .4s;
    transition: all ease .4s;
}
.dp-rotatorNewsClt.title a:hover , .dp-listNewsClt.title a:hover{
    color:darkred;
}
.dp-rotatorNewsClt.title > i , .dp-listNewsClt.title > i{
    font-size:14px;
    color:darkred;
    line-height:19px;   
    margin-left:5px;
}
/* sub title - normal and rotator */
.dp-rotatorNewsClt.affiliation, .dp-listNewsClt.affiliation {
    font: 12px BYekan,Verdana,Helvetica,sans-serif;
    color: #909090;
    white-space: normal;
}
.dp-rotatorNewsClt.affiliation > i , .dp-listNewsClt.affiliation i{
    font-size:5px;
    margin:0 10px 0 5px;
    line-height:19px;
}
/* date - normal and rotator */
.newsRotatorlblDate, .dp-listNewsClt.date {
    font: 10px BYekan,Verdana,Helvetica,sans-serif;
    color: #666;
    white-space: normal;
}
/* abstract - normal and rotator */
.dp-rotatorNewsClt.abstract, .dp-listNewsClt.abstract {
    font: 13px BYekan,Verdana,Helvetica,sans-serif;
    color: #444;
    white-space: normal;
    background-color: #f3f3f3;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    padding: 5px 2px 5px 15px;
}
/* source - normal and rotator */
.dp-rotatorNewsClt.source, .dp-listNewsClt.source {
    font: 12px BYekan,Verdana,Helvetica,sans-serif;
    color: #666;
    white-space: normal;
}

/*===== ticker mode =====*/
.ticker-wrapper {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}


/* paging */
.NewsNextBtnStyle, .NewsPrevBtnStyle {
    font: 13px BYekan,regular,sans-serif;
    color: #fff !important;
    background-color: #444;
    border-radius: 4px;
    height: 36px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    padding: 5px 10px;
    -webkit-transition: all ease .3s;
    -moz-transition: all ease .3s;
    -ms-transition: all ease .3s;
    -o-transition: all ease .3s;
    transition: all ease .3s;
}
.NewsNextBtnStyle:hover ,.NewsPrevBtnStyle:hover{
    background-color:#31708f;
    color:#fff !important;
}
/*===== Medias =====*/
@media only screen and (max-width:768px) {
    .rotatorBox [id$="tblRotator"] {
        overflow: auto;
    }
    .newsCollectorImages{
        text-align:center;
        display:inline-block !important;
        margin:0 auto;
        width:50% !important;
        height:auto !important;
    }
    .newsCollectorImages img{
        width:100%;
        position:static;
        -webkit-transform:translateY(0);
        -moz-transform:translateY(0);
        -ms-transform:translateY(0);
        -o-transform:translateY(0);
        transform:translateY(0);
    }
    .dp-rotatorNewsClt.right-img, .dp-rotatorNewsClt.left-img,
    .dp-normNewsClt.right-img, .dp-normNewsClt.left-img {
        float: none !important;
        text-align: center;
    }

    .dp-rotatorNewsClt.content {
        display: block;
    }
}
/*@media only screen and (max-width:600px){    

}*/
@media only screen and (max-width:460px){
    .newsCollectorImages{
        width:100% !important;
    }
}
/*.NewsTitleStyle*/
.NormalFontNewsTitle {
    color: #909090;
    font: 13px BYekan,Verdana,Helvetica,sans-serif;
    font-weight: bold;
    text-align:justify;
}

/*.NewsTitleStyleCollector*/
.NormalFontNewsSubTitle {
    color: #909090;
    font: 13px BYekan,Verdana,Helvetica,sans-serif;
    font-weight: normal;
}

/*.NewFontNewsPreTitleStyleCollector*/
.NewFontNewsPreTitle
{
    color: #909090;
    font-family: Nazanin,'B Nazanin',Arial,Tahoma,Verdana,Helvetica,sans-serif !important;
    font-size: 13px;
    font-weight: normal;
    /*margin-bottom:3px;
    display:block;*/
}

/*.DPNewsItemTitleCollector*/
.NewFontNewsTitle
{
    color: #133681;
    font-size: 16px;
    font-weight: bold;
    font-family: Nazanin,'B Nazanin',Arial,Tahoma,Verdana,Helvetica,sans-serif !important;
}

/*.NewFontNewsTitleStyleCollector*/
.NewFontNewsSubTitle 
{
    color: #909090;
    font-family: Nazanin,'B Nazanin',Arial,Tahoma,Verdana,Helvetica,sans-serif !important;
    font-size: 13px;
    font-weight: normal;
}