/*
Theme Name:     Newspaper Child theme
Theme URI: 		http://themeforest.net/user/tagDiv/portfolio
Description:    Child theme made by tagDiv
Author:         tagDiv
Author URI: 	http://themeforest.net/user/tagDiv/portfolio
Template:       Newspaper
Version:        9.0c
*/

/*
Global
*/
:root {
	--fs-14-16: clamp(0.875rem, 0.8162rem + 0.2941vw, 1rem);
	--fs-header-16-20: clamp(1rem, 0.8824rem + 0.5882vw, 1.25rem);
	--pd-14-24: clamp(0.875rem, calc(0.581rem + 1.471vw), 1.5rem);
	--cd-rgap: clamp(0.438rem, calc(0.29rem + 0.735vw), 0.75rem);
	--cd-radius: 8px;
}

h1 {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.4;
}
h2 {
  font-size: 1.3rem;
  font-weight: 700;
	line-height: 1.4;
}
h3 {
  font-size: 1.12rem;
  font-weight: 700;
	line-height: 1.4;
}
h4 {
  font-size: 1rem;
  font-weight: 700;
	line-height: 1.4;
}
h5 {
  font-size: 0.9rem;
  font-weight: 700;
	line-height: 1.4;
}
h6 {
  font-size: 0.8rem;
  font-weight: 700;
	line-height: 1.4;
}

/* Global Style */
.topads {
	display: flex;
    gap: 10px;
    align-items: center;
    font-family: 'Merriweather';	
	margin-top: 20px;
	a {
    	text-align: left;
    	font-size: 14px;
    	line-height: 1.3;
		color: var(--body);
		font-weight: 700;
		&:hover {
			color: var(--danger);
		}
	}
	img {
		margin: 0 !important;
        width: 33.4px;
        height: auto;
	}
}

/* Adbox */
.td-a-rec-img {
  line-height: 0;
}

/* Truncate */
.txt-2 .entry-title, .txt-2 .next-prev-title a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  column-count: unset !important;
}

.txt-3 .entry-title {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  column-count: unset !important;
}

.excerpt-3 .td-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  column-count: unset !important;
}

/* KHM Card */
.khm-card .td-module-container {
  align-items: stretch !important;
}

.khm-card .td-image-container {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  bottom: 0 !important;
  width: 30% !important;
}

.khm-card .td-module-meta-info {
  margin-left: 30%;
}

.khm-card .td-module-thumb,
.khm-card .td-module-thumb .td-image-wrap,
.khm-card .td-module-thumb .entry-thumb {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  padding-bottom: 0 !important;
}

.khm-card .td-module-thumb .entry-thumb {
  background-size: cover !important;
  background-position: center center !important;
}

.khm-card {
	.td_module_wrap {
		&:hover .entry-title a {
			color: unset;
			border-bottom: 1px solid var(--td_text_color);
		}
	}
	.td-module-meta-info {
		font-family: var(--global-font-2);
		
		.td-post-category, .td-module-date {
		  color: var(--light-2);
		}

		.td-post-category {
		  &:hover {
			color: var(--danger);
		  }
		}
		
		.td-module-title {
			font-family: var(--global-font-1);
			font-size: var(--fs-14-16);
			line-height: 1.4;
			margin: 0 0 var(--pd-14-24) 0;
		}
	}	
}

/* KIM CARD BIG */
.khm-card-big {
	.td-module-container {
		&:hover .td-post-category {
			background-color: unset !important;
		}
	}
	.td-module-meta-info {
		font-family: var(--global-font-2);
		
		.td-post-category {
			background-color: transparent;
    		padding: 0;
			&:hover {
				border-bottom: 1px solid #fff;
			}
		}
		
		.td-module-title {
			font-family: var(--global-font-1);
			font-size: var(--fs-14-16);
			line-height: 1.4;
		}
	}	
}

/* KHM Row */
.khm-row-1 {	
	.vc_column {
		.td_flex_block_1 .td-module-container, .widget, .widget a > img {
			border-radius: var(--cd-radius);
    		overflow: hidden;
		}		
	}
}

.khm-single-row {
	
}

/* Newspaper Widget Sidebar */
.newspaper-widget {
	margin-bottom: 0 !important;
	
	.popular-cate-block {
		margin-bottom: var(--pd-14-24);
		.td-block-title {
			padding: 16px 0 !important;
			margin-bottom: 0 !important;
			border-bottom: 1px solid var(--light-1) !important;
			background-color: #ffffff;
			span {
				font-family: var(--global-font-1);
				color: var(--primary);
				font-size: var(--fs-header-16-20);
                font-weight: 700;
			}
		}
		.td-pb-padding-side {
			font-family: var(--global-font-1);
			margin: 0;
			background: white;
			padding: var(--pd-14-24);
		}
	}
	
	.ai_widget-5 {
		margin-bottom: var(--pd-14-24);
	}
}

/* Card - Grid-Card */
.grid-card {
  .td-module-meta-info {
    min-height: 112.33px !important;
  }
}

.grid-card-search-result {
  .td-module-meta-info {
    min-height: 138px !important;
  }
}

.popular-categ {
	background: white;
	.td-block-title {
		margin-top: 0;
	}
	ul.td-pb-padding-side {
		margin: 0;
	}
	ul li {
		margin-left: 0;
	}
}

/* SINGLE POST */
	.single_featured_img {		
	  img.entry-thumb {
		max-height: 600px;
		aspect-ratio: 16 / 9;
		object-fit: cover;
		  border-radius: 8px 8px 0 0;
    		overflow: hidden;
	  }
	}

	.wp-block-rank-math-toc-block {
		background: #f9f9f9;
		padding: 20px;
		border: 1px solid var(--light-1);
		border-radius: var(--cd-radius);
		margin-bottom: 26px;
		h2 {
			margin-top: 0;
		}
		nav {
			ul {
				margin-bottom: 0 !important;
			}
		}
	}

/* Styles applied when the viewport width is 768px or wider */
@media (max-width: 767px) {
    .td-container, .tdc-row, .tdc-row-composer {       
        padding-left: var(--pd-14-24);
        padding-right: var(--pd-14-24);
    }
}

@media (min-width: 768px) {
	.khm-row-1 {
	.td-pb-span8 {
		padding-right: var(--cd-rgap);
	}
	.td-pb-span4 {
		padding-left: var(--cd-rgap);
	}	
}
	.khm-card-big {
	.td-module-container {			
		.td-module-thumb {
			border-radius: var(--cd-radius);
    		overflow: hidden;
		}
	}		
}
	.container-pd {
		padding: var(--pd-14-24);
	}
}