
.news-block
{
    padding-left: 10px;
    padding-right: 10px;
    margin-left: auto;
    margin-right: auto;
    max-height: 855px;/*3 rows*/
    overflow: hidden;
}

.news-item
{
    position: relative;
    width: 256px; 
    height: 250px;
    margin: 5px;

    overflow: hidden;
    display: inline-block;
    background: #fff;
    /*box-shadow: 3px 3px 4px #aaa;*/
    border-radius: 3px;
}

.news-block .w2 {
    width: 528px; 
}

.news-item:hover {

}

.news-item .img a
{
    display: block;
    width: 100%;
}

.news-item .img
{
    z-index: 98;
}

.news-block .w1 .img img
{
    height: 100%;
    transition: 0.4s;
}

.news-block .w2 .img img
{
    width: 100%;
    transition: 0.4s;
}

.news-block .w1:hover .img img
{
    height: 103%;
}

.news-block .w2:hover .img img
{
    width: 103%;
}

.news-item .text {
    position: absolute;
    z-index: 99;
    bottom: 0;
    left: 0;
    width: 100%;
}

.news-item .text-inner
{   
    text-align: left;
    color: #fff;
    padding: 6px 10px;
    width: 100%;
    font-size: 13px;
    background: linear-gradient(to bottom,rgba(255,255,255,0) 0%, rgba(40,40,40,.7) 90%);
}


.news-label {
    display: inline-block;
    width: auto;
    height: 22px;
    top: 0;
    background: #E63739;
    color: #fff;
    text-transform: uppercase;
    padding-right: 8px;
    padding-left: 8px;
    padding-top: 3px;
    font-size: 12px;
    font-weight: bold;
}

.news-label a
{
    color: inherit;
}

.news-label a:hover
{
    color: #e5e5eb;
}


.news-item .text h3
{
    color: #fff;
    font-size: 20px;
    margin-bottom: 6px;
}
.news-item .text p
{
    margin-bottom: 0;
}

.news-item .text .date
{
    display: block;
    text-align: right;
    font-size: 12px;
    color: inherit;
    font-style: italic;
}

.news-item a,.news-item a:hover
{
    text-decoration: none;
}

.news-separator
{
    font-size: 18px;
    width: 960px;
    text-align: center;
    padding: 20px;
    font-weight: bold;
    color: #999;
    margin-left: auto;
    margin-right: auto;
    background: url("/styles/img/news-separator.png") center center no-repeat;
    /*background-size: cover;*/
}

.search-form
{
    padding: 15px;
    background: #fff;
    border-radius: 5px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
    text-align: center;
}

.search-form .subform
{
    display: block;
    text-align: center;
    width: 100%;
    margin-top: 15px;
    color: #666;
    /*font-size: 14px;*/
}

.search-form .subform input, .search-form .subform label, .search-form .form-check
{
    display: inline-block;
}
.search-form .subform label
{
    display: inline;
    margin: 0;
}

.search-form .subform .form-control
{
    width: 220px;
    display: inline-block;
}

.search-form input[type="text"]
{
    display: inline-block;
    width: 70%;
}

.search-form input[type="submit"]
{
    display: inline-block;
    margin-top: 0;
    margin-bottom: 0;
    margin-left: 10px;
    width: 100px;
    height: 37px;
}

.news-block-about
{
    height: auto !important;
    max-height:none;
    min-height: 0;
    padding-left: 0;
    padding-right: 0;
}

/*media samples same to bootstrap*/
@media (min-width: 1200px) /*xl container: 1140px*/{
    .search-form {
        width: 1110px
    }
    
    .news-block, .news-separator {
        width: 1140px
    }
    .news-block .w1
    {
        width: 266px;
    }
    
    .news-block .w2
    {
        width: 547px;
    }

    .news-block .w1 .img img
    {
        height: 250px;
        width: auto;
    }

    .news-block .w2 .img img
    {
        width: 547px;
        height: auto;
    }

    .news-block .w1:hover .img img
    {
        height: 260px;
    }

    .news-block .w2:hover .img img
    {
        width: 560px;
    }
    
    .news-item
    {
        height: 250px;
    }

}

@media (min-width: 992px) and (max-width: 1199px) /*lg container: 960px*/{
    .search-form
    {
        width: 930px;
    }
    
    .news-block {
        width: 960px;
        height: 770px;
    }
   
    .news-block .w1
    {
        width: 222px;
    }

    .news-block .w2
    {
        width: 457px;
    }

    .news-block .w1 .img img
    {
        height: 240px;
        width: auto;
    }

    .news-block .w2 .img img
    {
        width: 457px;
        height: auto;
    }

    .news-block .w1:hover .img img
    {
        height: 250px;
    }

    .news-block .w2:hover .img img
    {
        width: 480px;
    }
    
    .news-item
    {
        height: 240px;
    }
}

@media (min-width: 768px) and (max-width: 991px) /*md container: 720px*/ {
    .search-form {
        width: 690px;
    }
    
    .news-block {
        width: 720px;
        height: 800px;
    }

    .news-block-auto {
        height: 1055px;
        max-height: none;
    }
    
    .news-separator
    {
        width: 720px;
    }
    
    .news-block .w1,.news-block .w2
    {
        width: 336px;
    }

    .news-block .w1 .img img
    {
        height: 250px;
        width: auto;
    }

    .news-block .w2 .img img
    {
        width: 336px;
        height: auto;
    }

    .news-block .w1:hover .img img
    {
        height: 260px;
    }

    .news-block .w2:hover .img img
    {
        width: 360px;
    }
    
    .news-item
    {
        height: 250px;
    }
    
}

@media (max-width: 767px) /*sm container: 540px*/ {
    
    .search-form
    {
        width: 80%;
    }
    
    .search-form input[type="text"]
    {
        width: 100%;
        display: block;
        margin: 8px 0;
    }
    
    .search-form input[type="submit"]
    {
        width: 100px;
        display: block;
        margin: 8px auto;
    }
    
    
    .news-block {
        width: 100%;
        height: 768px;
    }
    
    .news-block-auto
    {
        height: auto;
        max-height: none;
    }
    
    .news-separator
    {
        width: 95%;
    }

    .news-block .w1, .news-block .w2
    {
        width: 85%;
        margin-left: auto;
        margin-right: auto;
        display: block;
        height: 250px;
    }

    .news-block .w1 .img img, .news-block .w2 .img img
    {
        width: 100%;
        height: auto;
    }

    .news-block .w1:hover .img img, .news-block .w2:hover .img img
    {
        width: 103%;
        height: auto;
    }
}