/* News listing */

.news-page,
.news-page * {
	font-family: 'Roboto', Arial, sans-serif;
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.news-page {
	padding-top: 48px;
	padding-bottom: 64px;
	background: #fff;
}

.news-page__head {
	margin-bottom: 32px;
}

.news-page__head h2 {
	margin: 0;
	line-height: 1.15;
	font-family: 'Roboto', Arial, sans-serif;
	font-weight: 400;
	font-size: 40px;
}

.news-page__head [data-size-lg="6"]:last-child {
	display: flex;
	justify-content: flex-end;
	align-items: center;
}

/* Search */
.news-search {
	display: flex;
	align-items: stretch;
	width: 100%;
	max-width: 420px;
	margin-left: auto;
}

.news-search__input {
	flex: 1 1 auto;
	min-width: 0;
	height: 44px;
	margin: 0;
	padding: 0 16px;
	border: none;
	border-radius: 5px;
	background: #f3f3f3;
	color: #063e6d;
	font-family: 'Roboto', Arial, sans-serif;
	font-size: 15px;
	line-height: 44px;
	box-sizing: border-box;
	-webkit-appearance: none;
	appearance: none;
}

.news-search__input::placeholder {
	color: #9aa3ad;
}

.news-search__input:focus {
	background: #fff;
}

.news-search__btn {
	flex: 0 0 auto;
	float: none;
	height: 44px;
	margin: 0 0 0 5px;
	padding: 0 28px;
	border: none;
	border-radius: 5px;
	background-color: #119bcf !important;
	font-family: 'Roboto', Arial, sans-serif;
	font-weight: 500;
	font-size: 15px;
	line-height: 44px;
	white-space: nowrap;
}

.news-search__btn:hover {
	background-color: #063e6d !important;
}

/* Cards grid */
.news-page__grid.cr,
.news-page__grid {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 30px 0;
	margin-bottom: 16px;
	float: none !important;
	width: 100% !important;
}

.news-page__grid:after,
.news-page__grid:before {
	display: none !important;
	content: none !important;
}

.news-page__grid > .news-card,
.news-page__grid > [data-size-lg],
.news-page__grid > [data-size-md],
.news-page__grid > [data-size-sm],
.news-page__grid > [data-size-xs] {
	float: none !important;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding-left: 15px;
	padding-right: 15px;
	box-sizing: border-box;
	display: block !important;
}

.news-card {
	margin-bottom: 0;
}

.news-card__inner {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #fff;
	border: 1px solid #e6e6e6;
	box-sizing: border-box;
	overflow: hidden;
}

.news-card__media {
	position: relative;
	margin: 0;
	padding: 0;
	line-height: 0;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: #063e6d;
}

.news-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.news-card__media::after {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(6, 62, 109, 0.45);
	pointer-events: none;
}

.news-card__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 20px 22px 24px;
	box-sizing: border-box;
}

.news-card__date {
	display: block;
	margin: 0 0 10px;
	color: #555555;
	font-family: 'Roboto', Arial, sans-serif;
	font-size: 14px;
	line-height: 1.3;
	letter-spacing: 0;
}

.news-card__title {
	margin: 0 0 12px !important;
	width: auto !important;
	letter-spacing: -0.03em;
}

.news-card__title a {
	color: inherit;
	text-decoration: none;
}

.news-card__title a:hover {
	color: #119bcf;
}

.news-card__excerpt {
	margin: 0 0 18px !important;
	color: #5c6670 !important;
	font-size: 14px !important;
	line-height: 1.45 !important;
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.news-card__more {
	display: inline-block;
	margin-top: auto;
	color: #063e6d;
	font-family: 'Roboto', Arial, sans-serif;
	font-weight: 500;
	font-size: 15px;
	line-height: 1.3;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.news-card__more:hover {
	color: #119bcf;
}

/* Load more */
.news-page__more [data-size-lg="12"] {
	display: block;
	float: none;
	width: 100%;
	padding-top: 8px;
	text-align: center;
}

.news-page__more-btn {
	float: none !important;
	display: inline-block;
	min-width: 220px;
	margin: 0 auto;
	padding: 12px 40px;
	text-align: center;
	background-color: #119bcf;
	cursor: pointer;
	border: none;
}

.news-page__more-btn:hover {
	background-color: #063e6d;
}

.news-page__more-btn.is-loading,
.news-page__more-btn:disabled {
	opacity: 0.7;
	cursor: wait;
	pointer-events: none;
}

/* Tablet */
@media only screen and (max-width: 1199px) {
	.news-page {
		padding-top: 40px;
		padding-bottom: 48px;
	}

	.news-page__head {
		margin-bottom: 28px;
	}

	.news-search {
		max-width: 380px;
	}

	.news-page__grid.cr,
	.news-page__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px 0;
	}
}

/* Mobile */
@media only screen and (max-width: 768px) {
	.news-page {
		padding-top: 28px;
		padding-bottom: 40px;
	}

	.news-page__head {
		margin-bottom: 20px;
	}

	.news-page__head [data-size-lg="6"]:first-child {
		margin-bottom: 16px;
	}

	.news-page__head [data-size-lg="6"]:last-child {
		justify-content: stretch;
	}

	.news-search {
		max-width: none;
		margin-left: 0;
	}

	.news-search__input,
	.news-search__btn {
		height: 42px;
		line-height: 42px;
	}

	.news-search__btn {
		padding: 0 20px;
	}

	.news-page__grid.cr,
	.news-page__grid {
		grid-template-columns: 1fr;
		gap: 20px 0;
	}

	.news-page__grid > .news-card,
	.news-page__grid > [data-size-lg],
	.news-page__grid > [data-size-md],
	.news-page__grid > [data-size-sm],
	.news-page__grid > [data-size-xs] {
		padding-left: 0;
		padding-right: 0;
	}

	.news-card__body {
		padding: 16px 16px 20px;
	}

	.news-page__more-btn {
		width: 100%;
		min-width: 0;
	}
}

@media only screen and (max-width: 480px) {
	.news-search {
		flex-wrap: wrap;
	}

	.news-search__input {
		width: 100%;
		border: none;
		border-radius: 5px;
		margin-bottom: 8px;
	}

	.news-search__btn {
		width: 100%;
		margin-left: 0;
		border-radius: 5px;
		text-align: center;
	}
}
