/**************** Updated: 2025-08-04 *******************/
/************************* NEWS STYLE ***********************************/

.api-news-container {
	margin-top: 1.5rem;
}

.api_article_include {
	/*margin-top: 25px;*/
}

.api_article_include a {
	text-decoration: none;
}

.api_article {
	clear: both;
	display: block;
	overflow: hidden;
	padding: 8px 16px 16px 12px;
	margin-bottom: 10px;
	border: none;
  border-radius: 8px;
  border: 1px solid var(--bs-card-border-color);
}

.api_article_compact_view .api_article {
    border: 1px solid var(--bs-card-border-color);
    padding: 7px 7px 7px 7px;
}

.api_article:hover {
	text-decoration: none;
	cursor: pointer;
	/*background-color: #d6d6d6;*/
}
/*.api_article:first-child {
	border: none;
}*/
.api_article_image {
	float: left;
	margin: 8px 12px 0px 0px;
	display: inline-block;
}

.api_article_compact_view .api_article_image {
    margin: 0px 12px 0px 0px;
}

.api_article_image img {
    object-fit: cover;
    object-position: center;
    width: 250px;
    height: 150px;
    border-radius: 10px;
    margin-top: 0px;
    margin-bottom: 0px;
}

.api_article_compact_view .api_article_image img {
    width: 120px;
    height: 75px;
    margin: 5px;
}

.dark-mode .api_article_image img {
	border-radius: 3px;
}

.api_article_title {
	margin-top: 10px;
	/*margin-bottom: 2px;*/
	font-weight:bold;
	font-size: 22px;
	line-height: 1.6rem;
	color:#333;
	text-decoration:none;
	margin-bottom: 10px;
}

.api_article_title, .api_article_title_sm {
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.dark-mode .api_article_title,
.dark-mode .api_article_title_sm {
	color: #ededed;
	text-shadow: none;
	/*font-weight: normal;*/
}

.api_article_title a,
.api_article_title_sm a {
	color:#444; /* color of the news title */
	text-decoration:none;
}

.api_article_compact_view .api_article_title,
.api_article_title_sm {
	color:#333;
	  font-size: 18px;
		font-weight: bold;
		line-height: 1.5rem;
		margin-bottom: 0px;
}

.api_article_info {
	color:#959595;
	font-size: 13px;
	margin-top: 2px;
	margin-bottom: 8px;
}

.api_article_compact_view .api_article_info {
    margin-top: 0;
    margin-bottom: 0;
}

.api_article_source {
	font-weight: normal;
  border-radius: 1px;
  padding: 3px 6px 3px 0px;
  font-weight: bold;
  margin-right: 5px;
}

.dark-mode .api_article_source {
	color: #f5f5f5;
}

.api_article_compact_view .api_article_source {
    padding: 0;
}

.api_article_excerpt {
		font-size: 15px;
		color: #5f5e5e;
		overflow: hidden;
		text-overflow: ellipsis;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
}

.api_article_compact_view .api_article_excerpt {
	display: none;
}


ul.news_archive  {
	margin-left: 0;
	padding-left: 0;
}

li.news_archive {
	line-height: 1.8em;
	list-style:none;
}

ul.news_short  {
	margin-left: 1.3em;
	padding-left: 0;
}

li.news_short {
	line-height: 1.6em;
}

li.news_short a {
	color:#003333;
	text-decoration:none;
}
.api_article_title_single {
	cursor:pointer;
	cursor:hand;
	margin-top: 0px;
	margin-bottom: 0px;
	font-weight:bold;
	font-size: 32px;
	line-height: 1.1em;
	color:#333; /* color of the news title */
	text-decoration:none;
}

.news-content-summary {
	font-size: 16.85px;
	line-height: 1.6;
}

.text-lang-cn h1.main-title {
	line-height: 1.5;
}

.text-lang-cn .api_article_title {
	line-height: 1.35;
}

.text-lang-cn .news-content-summary {
	line-height: 1.8;
}

/* mobile */
@media (max-width: 768px) {

	.api-news-container {
		margin-top: 1rem;
		margin-left: -0.3rem;
		margin-right: -0.3rem;
	}

	.api_article_title {
		margin-top: 0px;
	}
	.api_article_title_sm {
		font-size: 20px;
	}
	.api_article_compact_view .api_article {
			padding: 5px 5px 5px 5px;
			border-radius: 5px;
	}
	.api_article_title, .api_article_title_sm, .api_article_excerpt {
		-webkit-line-clamp: 3;
	}
	.api_article_image {
		float:none;
		margin: 6px 6px 0px 0px;
		display: block;
	}

	.api_article_image_replacement {
		display: none;
	}

	.api_article_compact_view .api_article_image_replacement {
		display: inline-block;
	}

	.api_article_compact_view .api_article_image {
		float: left;
		margin-right: 7px;
	}

	.api_article_image img {
		object-fit: cover;
		object-position: center;
		width: 100%;
		height: auto;
		margin-bottom: 10px;
	}

	.api_article_compact_view .api_article_image img {
		width: 92px;
		height: 92px;
	}	

	.api_article_info {
		font-size: 12px;		
	}

	.api_article_source {
		max-width: 200px;
		overflow: hidden;
		text-overflow: ellipsis;
		display: inline-block;
		white-space: nowrap;
		vertical-align: middle;
	}
	.api_article_compact_view .api_article_source {
		max-width: 130px;
	}
}

/************************* END NEWS STYLE ***********************************/
