/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

:root {
	--news-primary: var(--fs-color-primary, var(--primary-color, #f6aa00));
	--news-secondary: var(--news-heading);
	--news-success: var(--fs-color-success, #7a9c59);
	--news-alert: var(--fs-color-alert, #b20000);
	--news-text: #222;
	--news-heading: #2f3542;
	--news-muted: color-mix(in srgb, var(--news-text) 62%, #fff);
	--news-border: #ececec;
	--news-surface: #fff;
	--news-hero-bg: color-mix(in srgb, var(--news-secondary) 16%, #101010);
	--news-primary-soft: color-mix(in srgb, var(--news-primary) 18%, #fff);
	--news-primary-veil: color-mix(in srgb, var(--news-primary) 42%, transparent);
}

.news-archive {
	background: var(--news-surface);
	color: var(--news-text);
	font-family: inherit;
}

.news-hero {
	position: relative;
	min-height: 224px;
	overflow: hidden;
	background:
		linear-gradient(90deg, rgba(9, 10, 12, .96) 0%, rgba(9, 10, 12, .78) 38%, rgba(9, 10, 12, .2) 100%),
		url("assets/images/news-hero-circuit.png") center center / cover no-repeat,
		var(--news-hero-bg);
}

.news-hero::after {
	content: none;
}

.news-hero__inner,
.news-shell {
	width: min(1170px, calc(100% - 48px));
	margin: 0 auto;
}

.news-hero__inner {
	position: relative;
	z-index: 1;
	padding: 28px 0 40px;
}

.news-breadcrumb,
.news-breadcrumb a,
.news-breadcrumb span,
.news-breadcrumb .breadcrumbs {
	color: rgba(255, 255, 255, .74);
	font-size: 12px;
	line-height: 1.4;
}

.news-breadcrumb {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.news-breadcrumb a {
	flex: 0 0 auto;
	text-decoration: none;
}

.news-breadcrumb span:last-child {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.news-hero__content {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: end;
	gap: 28px;
	margin-top: 18px;
}

.news-hero h1 {
	margin: 0 0 10px;
	color: #fff;
	font-size: clamp(34px, 4vw, 52px);
	font-weight: 800;
	letter-spacing: 0;
	text-transform: uppercase;
}

.news-hero p {
	max-width: 340px;
	margin: 0;
	color: rgba(255, 255, 255, .92);
	font-size: 15px;
	line-height: 1.55;
}

.news-search {
	display: grid;
	grid-template-columns: 1fr 48px;
	height: 46px;
	margin: 0;
	border-radius: 4px;
	overflow: hidden;
	box-shadow: 0 12px 32px rgba(0, 0, 0, .18);
}

.news-search input,
.news-search button,
.news-newsletter input,
.news-newsletter button {
	height: 100%;
	margin: 0;
	border: 0;
	box-shadow: none;
}

.news-search input {
	padding: 0 16px;
	font-size: 13px;
	background: var(--news-surface);
}

.news-search button,
.news-newsletter button {
	display: grid;
	place-items: center;
	background: var(--news-primary);
	color: var(--news-heading);
	font-weight: 800;
	cursor: pointer;
}

.news-search button {
	position: relative;
	min-width: 48px;
	padding: 0;
	border-left: 1px solid color-mix(in srgb, var(--news-heading) 8%, transparent);
}

.news-search__icon {
	display: block;
	width: 16px;
	height: 16px;
	color: var(--news-heading);
}

.news-shell {
	padding: 34px 0 54px;
}

.news-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 28px;
	align-items: start;
}

.news-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	transition: opacity .2s ease;
}

.news-grid.is-loading {
	opacity: .45;
	pointer-events: none;
}

.news-card {
	min-width: 0;
	overflow: hidden;
	border: 1px solid var(--news-border);
	border-radius: 6px;
	background: var(--news-surface);
	box-shadow: 0 8px 24px color-mix(in srgb, var(--news-secondary) 8%, transparent);
	transition: transform .2s ease, box-shadow .2s ease;
	margin-bottom: 0;
}

.news-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 34px color-mix(in srgb, var(--news-secondary) 14%, transparent);
}

.news-card__image {
	display: block;
	aspect-ratio: 1.72 / 1;
	overflow: hidden;
	background: color-mix(in srgb, var(--news-text) 8%, #fff);
}

.news-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .28s ease;
}

.news-card:hover .news-card__image img {
	transform: scale(1.05);
}

.news-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background:
		linear-gradient(135deg, var(--news-primary-soft), transparent 48%),
		linear-gradient(45deg, var(--news-hero-bg), color-mix(in srgb, var(--news-secondary) 40%, #fff));
}

.news-card__body {
	padding: 14px 15px 16px;
}

.news-card__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 8px;
	color: var(--news-muted);
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
}

.news-card__meta a {
	color: var(--news-primary);
	text-decoration: none;
	white-space: nowrap;
}

.news-card h2 {
	margin: 0 0 8px;
	font-size: 16px;
	font-weight: 800;
	line-height: 1.35;
	letter-spacing: 0;
	color: var(--news-heading);
}

.news-card h2 a {
	color: var(--news-heading);
	text-decoration: none;
}

.news-card p {
	display: -webkit-box;
	min-height: 40px;
	margin: 0 0 11px;
	overflow: hidden;
	color: var(--news-muted);
	font-size: 13px;
	line-height: 1.5;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.news-more {
	color: var(--news-primary);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}

.news-sidebar {
	position: sticky;
	top: calc(var(--flatsome--header--sticky-height, 70px) + 24px);
	align-self: start;
}

.news-sidebar .widget,
.news-widget,
.news-newsletter {
	border-radius: 6px;
}

.news-sidebar .widget,
.news-widget {
	padding: 20px 22px;
	border: 1px solid var(--news-border);
	background: var(--news-surface);
	box-shadow: 0 8px 24px color-mix(in srgb, var(--news-secondary) 6%, transparent);
}

.news-sidebar .widget.widget_search,
.news-sidebar .widget.widget_flatsome_child_news_search,
.news-sidebar .widget.widget_media_image,
.news-widget.widget_search {
	padding: 0;
	overflow: hidden;
}

.news-sidebar .widget.widget_media_image img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
}

.news-sidebar .widget .wp-block-search,
.news-widget .wp-block-search {
	margin: -22px;
}

.news-sidebar .widget.widget_search form,
.news-widget.widget_search form,
.news-sidebar .widget .wp-block-search__inside-wrapper,
.news-widget .wp-block-search__inside-wrapper {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 46px;
	min-height: 46px;
	margin: 0;
}

.news-sidebar .widget .wp-block-search__label,
.news-widget .wp-block-search__label {
	display: none;
}

.news-sidebar .widget.widget_search label,
.news-widget.widget_search label {
	display: block;
	margin: 0;
}

.news-sidebar .widget.widget_search .screen-reader-text,
.news-widget.widget_search .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.news-sidebar .widget.widget_search input[type="search"],
.news-widget.widget_search input[type="search"],
.news-sidebar .widget .wp-block-search__input,
.news-widget .wp-block-search__input {
	width: 100%;
	height: 46px;
	margin: 0;
	padding: 0 14px;
	border: 0;
	background: var(--news-surface);
	box-shadow: none;
	color: var(--news-text);
	font-size: 13px;
}

.news-sidebar .widget.widget_search button,
.news-sidebar .widget.widget_search input[type="submit"],
.news-widget.widget_search button,
.news-widget.widget_search input[type="submit"],
.news-sidebar .widget .wp-block-search__button,
.news-widget .wp-block-search__button {
	width: 46px;
	height: 46px;
	margin: 0;
	border: 0;
	background-color: var(--news-primary);
	background-image: url("assets/images/icon-search.svg");
	background-position: center;
	background-repeat: no-repeat;
	background-size: 16px 16px;
	box-shadow: none;
	color: transparent;
	font-size: 0;
	cursor: pointer;
}

.news-sidebar .widget h2,
.news-sidebar .widget h3,
.news-sidebar .widget .widget-title,
.news-widget h2,
.news-widget h3,
.news-newsletter h3 {
	position: relative;
	margin: 0 0 22px;
	padding-bottom: 12px;
	color: var(--news-heading);
	font-size: 16px;
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: 0;
	text-transform: uppercase;
	display: block;
	margin-bottom: 15px;
}

.news-sidebar .widget h2::after,
.news-sidebar .widget h3::after,
.news-sidebar .widget .widget-title::after,
.news-widget h2::after,
.news-widget h3::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 42px;
	height: 3px;
	background: var(--news-primary);
}

.news-sidebar .is-divider,
.news-widget .is-divider {
	display: none;
}

.news-sidebar .widget-title + .is-divider + .news-category-list,
.news-sidebar .widget-title + .is-divider + .news-featured-list {
	margin-top: 0;
}

.news-category-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.news-category-list li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 2px 0;
	border: none !important;
	color: var(--news-muted);
	font-size: 12px;
}

.news-category-list li:last-child {
	border-bottom: 0;
}

.news-category-list a {
	color: var(--news-text);
	font-weight: 600;
	text-decoration: none;
}

.news-category-list .count {
	display: inline-grid;
	font-weight: 700;
	min-width: 24px;
	height: 24px;
	line-height: 28px;
	margin-left: auto;
	place-items: center;
	border-radius: 999px;
	border: 1px solid #ccc;
	color: var(--news-heading);
	font-size: 11px;
}

.news-featured-list {
	display: grid;
	gap: 14px;
}

.news-featured {
	display: grid;
	grid-template-columns: 70px minmax(0, 1fr);
	gap: 12px;
	color: var(--news-text);
	text-decoration: none;
}

.news-featured__thumb {
	display: block;
	aspect-ratio: 1.25 / 1;
	overflow: hidden;
	border-radius: 4px;
	background: color-mix(in srgb, var(--news-text) 8%, #fff);
}

.news-featured__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.news-featured strong {
	display: -webkit-box;
	overflow: hidden;
	font-size: 12px;
	line-height: 1.35;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.news-featured time {
	display: block;
	margin-top: 5px;
	color: var(--news-muted);
	font-size: 11px;
}

.news-newsletter {
	padding: 28px 22px 24px;
	background: var(--news-primary);
	color: var(--news-heading);
	text-align: left;
	box-shadow: 0 12px 30px color-mix(in srgb, var(--news-primary) 25%, transparent);
}

.news-newsletter__icon {
	display: grid;
	width: 76px;
	height: 58px;
	margin: 0 auto 14px;
	place-items: center;
	border-radius: 6px;
	background: var(--news-surface);
	color: var(--news-primary);
	font-size: 34px;
	transform: rotate(-7deg);
}

.news-newsletter h3 {
	margin-bottom: 6px;
	padding-bottom: 0;
}

.news-newsletter p {
	margin: 0 0 16px;
	font-size: 13px;
	line-height: 1.5;
}

.news-newsletter form {
	display: grid;
	grid-template-columns: 1fr 42px;
	height: 42px;
	margin: 0;
	overflow: hidden;
	border-radius: 4px;
	background: var(--news-surface);
}

.news-newsletter input {
	min-width: 0;
	padding: 0 12px;
	font-size: 12px;
	background: var(--news-surface);
}

.news-pagination {
	grid-column: 1 / -1;
	padding-top: 10px;
}

.news-pagination .navigation,
.news-pagination .nav-links {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0;
}

.news-pagination .page-numbers {
	display: grid;
	min-width: 34px;
	height: 34px;
	place-items: center;
	border: 1px solid var(--news-border);
	border-radius: 4px;
	background: var(--news-surface);
	color: var(--news-text);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}

.news-pagination .page-numbers.prev,
.news-pagination .page-numbers.next {
	padding: 0;
	color: var(--news-primary);
}

.news-pagination .page-numbers.prev svg,
.news-pagination .page-numbers.next svg {
	display: block;
	width: 14px;
	height: 14px;
}

.news-pagination .page-numbers.current,
.news-pagination .page-numbers:hover {
	border-color: var(--news-primary);
	background: var(--news-primary);
	color: var(--news-heading);
}

.news-pagination .page-numbers.prev:hover svg,
.news-pagination .page-numbers.next:hover svg {
	color: var(--news-heading);
}

.news-empty {
	grid-column: 1 / -1;
	padding: 50px 24px;
	border: 1px solid var(--news-border);
	border-radius: 6px;
	text-align: center;
}

.news-single-hero {
	min-height: 96px;
}

.news-single-hero .news-hero__inner {
	padding: 38px 0;
}

.news-single-layout {
	grid-template-columns: minmax(0, 1fr) 300px;
}

.news-single-main {
	min-width: 0;
}

.news-single-category {
	display: inline-flex;
	align-items: center;
	min-height: 26px;
	margin-bottom: 14px;
	padding: 0 12px;
	border-radius: 4px;
	background: var(--news-primary);
	color: var(--news-heading);
	font-size: 12px;
	font-weight: 800;
	line-height: 1;
	text-decoration: none;
	text-transform: uppercase;
}

.news-single-title {
	max-width: 780px;
	margin: 0 0 12px;
	color: var(--news-heading);
	font-size: clamp(30px, 3.2vw, 46px);
	font-weight: 800;
	line-height: 1.14;
	letter-spacing: 0;
}

.news-single-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 18px;
	margin-bottom: 20px;
	color: var(--news-muted);
	font-size: 13px;
	font-weight: 600;
}

.news-single-meta span,
.news-single-meta a,
.news-single-meta time {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--news-muted);
	text-decoration: none;
}

.news-single-meta img {
	display: block;
	width: 16px;
	height: 16px;
	flex: 0 0 16px;
}

.news-single-featured {
	margin: 0 0 22px;
	overflow: hidden;
	border-radius: 6px;
	background: color-mix(in srgb, var(--news-text) 8%, #fff);
}

.news-single-featured img {
	display: block;
	width: 100%;
	height: auto;
}

.news-single-content {
	color: var(--news-text);
	font-size: 16px;
	line-height: 1.75;
}

.news-single-content > *:first-child {
	margin-top: 0;
}

.news-single-content h2,
.news-single-content h3,
.news-single-content h4 {
	margin: 24px 0 12px;
	color: var(--news-heading);
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: 0;
}

.news-single-content h2 {
	font-size: 24px;
}

.news-single-content h3 {
	font-size: 20px;
}

.news-single-content p,
.news-single-content ul,
.news-single-content ol {
	margin-bottom: 16px;
}

.news-single-content ul,
.news-single-content ol {
	padding-left: 22px;
}

.news-single-content li {
	margin-bottom: 8px;
}

.news-single-content blockquote {
	margin: 22px 0;
	padding: 18px 20px;
	border-left: 4px solid var(--news-primary);
	border-radius: 6px;
	background: color-mix(in srgb, var(--news-primary) 9%, #fff);
	color: var(--news-heading);
	font-weight: 600;
}

.news-single-content img {
	max-width: 100%;
	height: auto;
	border-radius: 6px;
}

.news-single-pages {
	margin-top: 24px;
}

.news-single-footer {
	margin-top: 34px;
	padding-top: 20px;
	border-top: 1px solid var(--news-border);
}

.news-single-share {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 22px;
	color: var(--news-muted);
	font-size: 13px;
	font-weight: 700;
}

.news-single-share > span {
	flex: 0 0 auto;
}

.news-single-share a,
.news-copy-link {
	margin: 0;
	line-height: 1;
	appearance: none;
	-webkit-appearance: none;
	display: grid;
	flex: 0 0 30px;
	width: 30px;
	height: 30px;
	min-width: 30px;
	min-height: 30px;
	padding: 0;
	place-items: center;
	border: 1px solid var(--news-border);
	border-radius: 50%;
	background: var(--news-surface);
	color: var(--news-primary);
	font-size: 12px;
	font-weight: 800;
	text-decoration: none;
	cursor: pointer;
}

.news-single-share a:hover,
.news-copy-link:hover,
.news-copy-link.is-copied {
	border-color: var(--news-primary);
	background: var(--news-primary);
	color: var(--news-heading);
}

.news-single-share a svg,
.news-copy-link svg {
	display: block;
	width: 15px;
	height: 15px;
}

.news-single-nav {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.news-single-nav a {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
	min-height: 88px;
	padding: 12px;
	border: 1px solid var(--news-border);
	border-radius: 6px;
	background: var(--news-surface);
	text-decoration: none;
}

.news-single-nav__item--next {
	justify-content: flex-end;
	text-align: right;
}

.news-single-nav__thumb {
	display: block;
	flex: 0 0 82px;
	width: 82px;
	aspect-ratio: 1.28 / 1;
	overflow: hidden;
	border-radius: 4px;
	background: color-mix(in srgb, var(--news-text) 8%, #fff);
}

.news-single-nav__thumb img,
.news-single-nav__thumb .news-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.news-single-nav__text {
	flex: 1 1 auto;
	min-width: 0;
}

.news-single-nav__text > span {
	display: block;
	margin-bottom: 5px;
	color: var(--news-primary);
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
}

.news-single-nav strong {
	display: -webkit-box;
	overflow: hidden;
	color: var(--news-heading);
	font-size: 14px;
	line-height: 1.35;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

@media (max-width: 1080px) {
	.news-layout {
		grid-template-columns: 1fr;
	}

	.news-sidebar {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		position: static;
	}
}

@media (max-width: 850px) {
	.news-hero__inner,
	.news-shell {
		width: min(100% - 30px, 1170px);
	}

	.news-hero__content,
	.news-sidebar {
		grid-template-columns: 1fr;
	}

	.news-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.news-breadcrumb {
		flex-wrap: nowrap;
	}

	.news-breadcrumb a,
	.news-breadcrumb span {
		white-space: nowrap;
	}

	.news-hero h1 {
		font-size: 36px;
	}

	.news-grid {
		grid-template-columns: 1fr;
	}

	.news-single-title {
		font-size: 30px;
	}

	.news-single-nav {
		grid-template-columns: 1fr;
	}

	.news-single-nav__item--next {
		text-align: left;
	}

	.news-card__body,
	.news-sidebar .widget,
	.news-widget,
	.news-newsletter {
		padding: 18px;
	}

	.news-sidebar .widget .wp-block-search,
	.news-widget .wp-block-search {
		margin: -18px;
	}
}
