/**
 * @package    News
 * @subpackage News
 * @since      1.0.0
 * @version    1.1.0
 * @author     Ehsan Zare <darksider.legend@gmail.com>
 * @link       https://code-path.com
 * @copyright  (c) 2024 Code-path web developing team
 */

/*-------------------------------------------------------------------------*/
/* Button readmore (News)
/*-------------------------------------------------------------------------*/
.btn-readmore {
	padding: 0.5rem 1rem;
	font-size: 0.8rem;
	white-space: nowrap;
}

.btn-readmore .icon-readmore {
	width: 6px;
	height: 6px;
	top: 50%;
	margin: -3px 0 0 0.5rem;
	display: inline-block;
	vertical-align: middle;
}

.btn-readmore .icon-readmore::before {
	width: 130%;
	height: 2px;
	top: 50%;
	left: 0;
	margin: -1px 0 0 0;
	opacity: 0;
	content: '';
	position: absolute;
	background-color: #ddf4ff;
	transition: 100ms opacity ease-in-out;
	-o-transition: 100ms opacity ease-in-out;
	-ms-transition: 100ms opacity ease-in-out;
	-moz-transition: 100ms opacity ease-in-out;
	-webkit-transition: 100ms opacity ease-in-out;
}

.btn-readmore .icon-readmore::after {
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	content: '';
	position: absolute;
	border-style: solid;
	border-color: #ddf4ff;
	border-width: 2px 2px 0 0;
	transform: rotate(45deg);
	-o-transform: rotate(45deg);
	-ms-transform: rotate(45deg);
	-moz-transform: rotate(45deg);
	-webkit-transform: rotate(45deg);
	transition: 100ms margin ease-in-out;
	-o-transition: 100ms margin ease-in-out;
	-ms-transition: 100ms margin ease-in-out;
	-moz-transition: 100ms margin ease-in-out;
	-webkit-transition: 100ms margin ease-in-out;
}

.btn-readmore:hover .icon-readmore::before,
.btn-readmore:active .icon-readmore::before {
	opacity: 1;
}

.btn-readmore:hover .icon-readmore::after,
.btn-readmore:active .icon-readmore::after {
	margin: 0 0 0 30%;
}

/*-------------------------------------------------------------------------*/
/* Owl Carousel (News)
/*-------------------------------------------------------------------------*/
.news-carousel.owl-carousel {}

.news-carousel.owl-carousel .owl-stage {
	width: 100%;
	height: 100%;

	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;

	-ms-flex-wrap: nowrap;
	flex-wrap: nowrap;

	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;

	-webkit-box-pack: start;
	-ms-flex-pack: start;
	justify-content: flex-start;

	-webkit-box-orient: horizontal;
	-webkit-box-direction: normal;
	-ms-flex-direction: row;
	flex-direction: row;
}

.news-carousel.owl-carousel .owl-stage > div {
	-webkit-box-flex: 0;
	-ms-flex: 0 0 auto;
	flex: 0 0 auto;
}

.news-carousel.owl-carousel.owl-dots-inside\[pos\:top\] .owl-dots,
.news-carousel.owl-carousel.owl-dots-inside\[pos\:bottom\] .owl-dots {
	width: 100%;
	height: auto;
	position: absolute;
}

.news-carousel.owl-carousel.owl-dots-inside\[pos\:top\] .owl-dots    {top: 0;}
.news-carousel.owl-carousel.owl-dots-inside\[pos\:bottom\] .owl-dots {bottom: 0;}

.news-carousel.owl-carousel .owl-dots .owl-dot {
	-webkit-box-shadow: none;
	box-shadow: none;
}

/*-------------------------------------------------------------------------*/
/* News header
/*-------------------------------------------------------------------------*/
.news-header {
	width: 100%;
	height: auto;
	display: block;
}

.news-header .header-text {
	color: #b1e1ee;
	margin: 0;
	display: block;
	padding: 1rem 0;
	font-size: 1.625rem;
	font-family: var(--font-family-secondary);
	text-transform: uppercase;
}

.news-header .header-text span {
	font-size: 1.5rem;
	font-family: var(--font-family-quaternary);
}

/*-------------------------------------------------------------------------*/
/* News article
/*-------------------------------------------------------------------------*/
.news-article {
	width: 100%;
	height: auto;
	margin: var(--margin-primary) 0 0 0;
	padding: 1rem;
	display: block;
}

/* News article: Glow
/*---------------------------------------------------------------*/
.news-article [glow] {
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	overflow: hidden;
	position: absolute;
}

.news-article [glow]::before {
	width: 85%;
	height: 0;
	top: 0;
	left: 0;
	content: '';
	position: absolute;
	box-shadow: 0 0 100px 60px rgba(90, 154, 212, 0.2);
	-moz-box-shadow: 0 0 100px 60px rgba(90, 154, 212, 0.2);
	-webkit-box-shadow: 0 0 100px 60px rgba(90, 154, 212, 0.2);
	transform: rotate(-5deg);
	-o-transform: rotate(-5deg);
	-ms-transform: rotate(-5deg);
	-moz-transform: rotate(-5deg);
	-webkit-transform: rotate(-5deg);
}

.news-article [glow] [glow-lines] {
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	position: absolute;
}

.news-article [glow] [glow-lines]::before {
	width: 100%;
	height: 2px;
	top: 0;
	left: 0;
	content: '';
	position: absolute;
	background: -moz-linear-gradient(left,  rgba(170,215,255,0.2) 0%, rgba(170,215,255,0) 100%);
	background: -webkit-linear-gradient(left,  rgba(170,215,255,0.2) 0%,rgba(170,215,255,0) 100%);
	background: linear-gradient(to right,  rgba(170,215,255,0.2) 0%,rgba(170,215,255,0) 100%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#33aad7ff', endColorstr='#00aad7ff',GradientType=1 );
}

.news-article [glow] [glow-lines]::after {
	width: 2px;
	height: 100%;
	top: 2px;
	left: 0;
	content: '';
	position: absolute;
	background: -moz-linear-gradient(top,  rgba(170,215,255,0.2) 0%, rgba(170,215,255,0) 100%);
	background: -webkit-linear-gradient(top,  rgba(170,215,255,0.2) 0%,rgba(170,215,255,0) 100%);
	background: linear-gradient(to bottom,  rgba(170,215,255,0.2) 0%,rgba(170,215,255,0) 100%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#33aad7ff', endColorstr='#00aad7ff',GradientType=0 );
}

/* News article: Thumbnail
/*---------------------------------------------------------------*/
.news-article [thumbnail] {
	display: none;
}

.news-article [thumbnail] .article-thumbnail {
	width: 100%;
	height: auto;
	margin: 0;
	border: 4px solid #1f3042;
	display: table;
	box-shadow: 0 0 12px 0 rgba(0, 0, 0, 0.25);
	-moz-box-shadow: 0 0 12px 0 rgba(0, 0, 0, 0.25);
	-webkit-box-shadow: 0 0 12px 0 rgba(0, 0, 0, 0.25);
	background-size: cover;
	-o-background-size: cover;
	-moz-background-size: cover;
	-webkit-background-size: cover;
	background-color: #80d0ff;
	background-repeat: no-repeat;
	background-position: center center;
}

.news-article [thumbnail] .article-thumbnail::before {
	width: 100%;
	height: auto;
	content: '';
	padding: 100% 0 0 0;
	display: table-cell;
}

.news-article [thumbnail] .article-thumbnail iframe {
	width: 100%;
	height: 100%;

	top: 0;
	left: 0;

	position: absolute;
}

/* News article: Head
/*---------------------------------------------------------------*/
.news-article .article-head {}

/* News article: Body
/*---------------------------------------------------------------*/
.news-article .article-body {
	margin: 1rem 0 0 0;
}

/* News article: Foot
/*---------------------------------------------------------------*/
.news-article .article-foot {
	margin: 1rem 0 0 0;
	text-align: right;
}

/* News article: Title
/*---------------------------------------------------------------*/
.news-article .article-title {
	width: 100%;
	height: auto;
	display: block;
}

.news-article .article-title a {
	color: #daedf6;
	display: inline-block;
	font-size: 0.875rem;
	font-family: var(--font-family-secondary);
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
	vertical-align: middle;
	text-transform: uppercase;
}

.news-article .article-title a:hover,
.news-article .article-title a:active {
	color: #f2fbff;
}

/* News article: Metadata
/*---------------------------------------------------------------*/
.news-article .article-metadata {
	color: #616a70;
	font-size: 0.875rem;
	font-family: var(--font-family-primary);
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

.news-article .article-metadata a {
	color: #759ab1;
}

.news-article .article-metadata a:hover,
.news-article .article-metadata a:active {
	color: #87b1cc;
}

/* News article: Content
/*---------------------------------------------------------------*/
.news-article .article-content {
	color: #6a7278;
	font-size: 0.875rem;
	font-family: var(--font-family-primary);
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
}

.news-article .article-content p {
	margin: 0;
}

.news-article .article-content,
.news-article .article-content * {
	line-height: 1.2;
}

/* News article: Tags
/*---------------------------------------------------------------*/
.news-article .article-tags {}

/* News article: First (VARIATION)
/*---------------------------------------------------------------*/
.news-article.first-item {}

/* News article: Single (VARIATION)
/*---------------------------------------------------------------*/
.news-article.is-single {}

.news-article.is-single .article-body {
	margin: 0;
}

/* News article: Responsive
/*---------------------------------------------------------------*/
@media screen and (max-width: 992px) { /* non-Desktop */
	/* News article: Title
	/*---------------------------------------------------------------*/
	.news-article .article-title,
	.news-article .article-title * {
		overflow: visible !important;
		white-space: inherit !important;
	}
}

@media screen and (min-width: 992px) { /* Desktop */
	/* News article: Thumbnail
	/*---------------------------------------------------------------*/
	.news-article [thumbnail] {
		display: block;
	}

	/* News article: Content
	/*---------------------------------------------------------------*/
	.news-article .article-content {
		font-size: 1.125rem;
	}

	/* News article: First (VARIATION)
	/*---------------------------------------------------------------*/
	.news-article.first-item .article-title a {
		font-size: 1.125rem;
	}

	/* News article: Single (VARIATION)
	/*---------------------------------------------------------------*/
	.news-article.is-single .article-title a {
		font-size: 1.5rem;
	}
}

/*-------------------------------------------------------------------------*/
/* News comments
/*-------------------------------------------------------------------------*/
.news-comments {
	width: 100%;
	height: auto;
}

/* Comments: Area
/*---------------------------------------------------------------*/
.news-comments .comments_area {
	width: 100%;
	height: auto;

	margin: var(--margin-primary) 0 0 0;
}

.news-comments .comments_area .comments {
	width: 100%;
	height: auto;

	display: block;
}

/* Area: Flex
/*-----------------------------------------------------*/
.news-comments .comments_area .row {
	gap: var(--margin-primary);
}

.news-comments .comments_area .row .col-md-12 {
	-webkit-box-flex: 0;
	-ms-flex: 0;
	flex: 0;
}

.news-comments .comments_area .row .col-md-12 + .col-md-12 {
	-webkit-box-flex: 10;
	-ms-flex: 10;
	flex: 10;
}

/* Area: Comment
/*-----------------------------------------------------*/
.news-comments .comments_area .comments .comment {
	width: 100%;
	height: auto;

	color: #5c6369;

	margin: var(--margin-primary) 0 0 0 !important;
	padding: 1rem;

	background-color: #121a22;
}

.news-comments .comments_area .comments .comment p {
	margin: 0;
}

.news-comments .comments_area .comments .comment i,
.news-comments .comments_area .comments .comment img,
.news-comments .comments_area .comments .comment svg {
	vertical-align: middle;
}

.news-comments .comments_area .comments .comment strong {}

.news-comments .comments_area .comments .comment strong::after {
	content: ' ';
}

.news-comments .comments_area .comments .comment strong a {
	color: #759ab1;
	vertical-align: middle;
}

.news-comments .comments_area .comments .comment strong a:hover,
.news-comments .comments_area .comments .comment strong a:active {
	color: #87b1cc;
}

.news-comments .comments_area .comments .comment .avatar {
	width: 80px;
	height: 80px;

	float: none;
	margin: 0;
}

/* Area: Staff comment
/*-----------------------------------------------------*/
.news-comments .comments_area .comments .staff_comment {
	color: #00aeff;

	-webkit-box-shadow: inset 0 0 0 1px #00aeff, 0 0 10px 2px rgba(0, 174, 255, 0.75);
	box-shadow: inset 0 0 0 1px #00aeff, 0 0 10px 2px rgba(0, 174, 255, 0.75);

	background-color: #0e141a;
}

.news-comments .comments_area .comments .staff_comment strong a {
	color: rgba(255, 255, 255, 0.8);
}

.news-comments .comments_area .comments .staff_comment strong a:hover,
.news-comments .comments_area .comments .staff_comment strong a:active {
	color: #fff;
}

/* Comments: Form
/*---------------------------------------------------------------*/
.news-comments form {
	margin: var(--margin-primary) 0 0 0;
	text-align: right;
}

.news-comments form::before,
.news-comments form::after {
	width: 0;
	height: 0;

	top: 0;
	left: 0;

	content: '';
	position: absolute;

	-webkit-box-shadow: 0 0 150px 70px rgba(90, 154, 212, 0.3);
	box-shadow: 0 0 150px 70px rgba(90, 154, 212, 0.3);
} .news-comments form::after {top: auto; left: auto; right: 0; bottom: 50%;}

/* Form: RESET
/*-----------------------------------------------------*/
.news-comments form > div[class] {
	padding: 0 !important;
}

/* Form: Textarea
/*-----------------------------------------------------*/
.news-comments form textarea {
	width: 100%;
	min-height: 100px;

	display: block;
}

/* Form: Characters remaining
/*-----------------------------------------------------*/
.news-comments form textarea + div {
	top: auto;
	right: 0;

	color: #44525f;

	margin: -35px -webkit-calc(var(--bs-gutter-x) + 0.688rem) 0 0;
	margin: -35px -moz-calc(var(--bs-gutter-x) + 0.688rem) 0 0;
	margin: -35px calc(var(--bs-gutter-x) + 0.688rem) 0 0;

	position: absolute;

	font-size: 1.0625rem;
	font-weight: normal;
	font-family: var(--font-family-primary);
}

/* Form: Button
/*-----------------------------------------------------*/
.news-comments form .nice_button {
	margin: var(--margin-primary) 0 0 0;
}

/*-------------------------------------------------------------------------*/
/* News pagination
/*-------------------------------------------------------------------------*/
.news-pagination {
	width: 100%;
	height: auto;

	margin: var(--margin-primary) 0 0 0;

	-webkit-box-pack: end;
	-ms-flex-pack: end;
	justify-content: end;
}

.news-pagination .page-link {
	padding: 0;
}

.news-pagination .page-link a {
	color: inherit;
	display: block;
	padding: var(--bs-pagination-padding-y) var(--bs-pagination-padding-x);
}

.news-pagination .page-link a:hover,
.news-pagination .page-link a:active {
	color: inherit;
}