/**
*
*
*   CSS FOR WIDGETS
*
*/

/**----------------------------------------- Widget Featured Posts ---------------------------------------*/

.wgt-featured-post {
    border: 1px solid var(--color-hover);
    border-radius: 0px;
    padding: 10px 15px 0 15px;
}
.dark-theme .wgt-featured-post {
    border: 1px solid #444;
}
.wgt-featured-post h2 {
    margin-bottom: 15px;
    margin-left: -15px;
    color:#fff;
    font-weight: normal;
    background-color: var(--color-hd);
    padding: 2px 25px 2px 15px;
    display: inline-block;
    border-radius: 0 20px 20px 0;
}
.dark-theme .wgt-featured-post h2 {
    color:#fff;
    background-color: #444;
}

.wgt-featured-post .post {
    margin-bottom: 20px;
}
.wgt-featured-post .post::after {
      content: "";
      clear: both;
      display: table;
}
.wgt-featured-post .post img {
    width: 100px;
    height: 100px;
    float: right;
    margin-left: 10px;
    border-radius: 3px;
}
.wgt-featured-post .post .tl {
    margin-bottom: 10px;
}
.wgt-featured-post .post .tl a {
    line-height: 130%;
    color: var(--color-text);
    text-decoration: none;
    font-size: 1.2em;
}
.dark-theme .wgt-featured-post .post .tl a {
    color: #fff;
}

.wgt-featured-post .post .tl a:hover {
    color: var(--color-hover);
}
.dark-theme .wgt-featured-post .post .tl a:hover {
    color: #eb0;
}

.wgt-featured-post .post .dt {
    color: var(--color-small);
    font-size: 0.8em;
}
.dark-theme .wgt-featured-post .post .dt {
    color: #999;
}

.wgt-featured-post .post .dt a{
    color: var(--color-link);
    display: none;
}
.dark-theme .wgt-featured-post .post .dt a{
    color: #eb0;
}

.wgt-featured-post .post .dt a:first-child{
    display: inline-block;
    margin-right: 5px;
}


/**--------------------------------------------- Widget Category Posts ----------------------------------*/

.wgt-category-post {
    border: 1px solid var(--color-hover);
    position: relative;
}
.dark-theme .wgt-category-post {
    border: 1px solid #444;
}
.wgt-category-post h2 {
    /* margin-bottom: 15px; */
    background-color:var(--color-hd);
    font-weight: normal;
    position: absolute;
    top: 10px;
    padding: 2px 25px 2px 15px;
    border-radius: 0 20px 20px 0;
    color: #fff;
    /* font-size: 1.3em; */
}
.dark-theme .wgt-category-post h2 {
    color:#fff;
    background-color: #444;
}

.wgt-category-post .post {
    margin-bottom: 20px;
}
.wgt-category-post .post .img {
    width: 100%;
    height: 180px;
    overflow: hidden;
    margin-bottom: 10px;
}
.wgt-category-post .post .img img{
    width: 100%;
    height: auto;
    min-height: 180px;
}
.wgt-category-post .post .tl {
    padding: 0 15px;
    margin-bottom: 10px;
}
.wgt-category-post .post .tl a{
    font-size: 1.3em;
    color: var(--color-text);
    text-decoration: none;
}
.dark-theme .wgt-category-post .post .tl a {
    color: #fff;
}

.wgt-category-post .post .tl a:hover{
    color: var(--color-hover);
}
.dark-theme .wgt-category-post .post .tl a:hover {
    color: #eb0;
}

.wgt-category-post .post .dt {
    color: #999;
    font-size: 0.8em;
    padding: 0 15px;
}
.dark-theme .wgt-category-post .post .dt {
    color: #999;
}

.wgt-category-post .post .dt a{
    color: var(--color-link);
    display: none;
}
.dark-theme .wgt-category-post .post .dt a{
    color: #eb0;
}
.wgt-category-post .post .dt a:first-child{
    display: inline-block;
    margin-right: 5px;
}


.wgt-category-post .post2 {
    margin-bottom: 20px;
    padding: 0 15px;
}
.wgt-category-post .post2::after {
      content: "";
      clear: both;
      display: table;
}


.wgt-category-post .post2 img {
    width: 100px;
    height: 100px;
    float: right;
    margin-left: 10px;
    border-radius: 3px;
}
.wgt-category-post .post2 .tl {
    margin-bottom: 10px;
}
.wgt-category-post .post2 .tl a {
    line-height: 130%;
    color: var(--color-text);
    text-decoration: none;
    font-size: 1.2em;
}
.dark-theme .wgt-category-post .post2 .tl a {
    color: #fff;
}

.wgt-category-post .post2 .tl a:hover {
    color: var(--color-hover);
}
.dark-theme .wgt-category-post .post2 .tl a:hover {
    color: #eb0;
}

.wgt-category-post .post2 .dt {
    color: #999;
    font-size: 0.8em;
}
.dark-theme .wgt-category-post2 .post .dt {
    color: #999;
}

.wgt-category-post .post2 .dt a{
    color: var(--color-link);
    display: none;
}
.dark-theme .wgt-category-post .post2 .dt a{
    color: #eb0;
}

.wgt-category-post .post2 .dt a:first-child{
    display: inline-block;
    margin-right: 5px;
}


/**------------------------------------------------------------- Widget Popular Posts ----------------------------------------------*/

.wgt-popular {
	background-image: linear-gradient(to bottom, var(--popular-color-bg), var(--popular-color-bg-2));
	border: 1px solid var(--popular-color-border);
	padding: 10px 15px 15px 15px;
}
.dark-theme .wgt-popular {
	background-image: linear-gradient(to bottom, #222, #444);
    border: 1px solid #222;
}

.wgt-popular h2 {
	margin-bottom: 15px;
    margin-left: -16px;
    padding: 2px 25px 2px 15px;
    border-radius: 0 20px 20px 0;
	color:var(--popular-color-hd);    
    background-color: var(--popular-color-link);
	font-weight: normal;
    display: inline-block;
}
.dark-theme .wgt-popular h2 {
	color:#222;
    background-color: #999;
}

.wgt-popular .post {
	margin-bottom: 15px;
}
.wgt-popular .post::after {
    content: "";
    clear: both;
    display: table;
}
.wgt-popular .post .number {
	width: 30px; height: 30px;
	display: block;
	float: left; 
	background-color: var(--popular-color-bg-2);
	border-radius: 3px;
	text-align: center;
	line-height: 30px;
	color: var(--popular-color-link);
	font-size: 1.7em;
	margin-top: 3px;
}
.dark-theme .wgt-popular .post .number {
	background-color: #222;
	color: #fff;
}
.wgt-popular .post .title {
	margin-left: 40px;
	padding-bottom: 5px;
	font-size: 1.2em;
    /* line-height: 140%; */
}
.wgt-popular .post .title a{
	color: var(--popular-color-link);	
}
.dark-theme .wgt-popular .post .title a{
	color: #fff;	
}

.wgt-popular .post .title a:hover{
	text-decoration:none;
    color: var(--popular-color-hover);
}
.dark-theme .wgt-popular .post .title a:hover{
    color: #eb0;
}

.wgt-popular .post .date {
	font-size: 0.8em;
	margin-left: 40px;
	color: var(--popular-color-text);
}
.dark-theme .wgt-popular .post .date {
	color: #ccc;
}


@media screen and (min-width: 768px) {  /*768 or 992 or 1200 */

    /**------------------------------------------------------------- Widget Popular Posts ----------------------------------------------*/

	.wgt-popular .post .title {
		font-size: 1.2em;
	}

    /**--------------------------------------------- Widget Category Posts ----------------------------------*/

    .wgt-category-post .post2 img {
        width: 100px;
        height: 100px;
    }
    .wgt-category-post .post .tl a{
        font-size: 1.4em;
    }
    .wgt-category-post .post2 .tl a{
        font-size: 1.2em;
    }

    /**----------------------------------------- Widget Featured Posts ---------------------------------------*/

    .wgt-featured-post .post img {
        width: 100px;
        height: 100px;
    }
    .wgt-featured-post .post .tl a{
        font-size: 1.2em;
    }

}

@media screen and (min-width: 992px) {  /*768 or 992 or 1200*/

    /**----------------------------------------- Widget Featured Posts ---------------------------------------*/

    .wgt-featured-post .post img {
        width: 80px;
        height: 80px;
    }
    .wgt-featured-post .post .tl a{
        font-size: 1em;
    }

    /**--------------------------------------------- Widget Category Posts ----------------------------------*/

    .wgt-category-post .post2 img {
        width: 80px;
        height: 80px;
    }
    .wgt-category-post .post .tl a{
        font-size: 1.1em;
    }
    .wgt-category-post .post2 .tl a{
        font-size: 1em;
    }


    /**------------------------------------------------------------- Widget Popular Posts ----------------------------------------------*/

	.wgt-popular .post .title {
		font-size: 1em;
	}
    

}
