/**
 * Blog grid shortcode — styles copied from Elementor TPG grid-layout3
 * widget (page ID 21, element 0399258) + The Post Grid defaults.
 */

.wtc-blog-grid-wrap {
	width: 100%;
}

.wtc-blog-grid-wrap .wtc-blog-grid.rt-row {
	margin-left: 0;
	margin-right: 0;
	width: 100%;
}

.wtc-blog-grid-wrap .wtc-blog-search {
	display: block;
	margin: 0 0 24px;
	width: 100%;
	max-width: 100%;
}

.wtc-blog-grid-wrap .wtc-blog-search__group {
	display: flex;
	align-items: stretch;
	width: 100%;
	height: 52px;
	overflow: hidden;
	background: #fff;
	border: 1px solid #0e1a4a;
	border-radius: 8px;
}

.wtc-blog-grid-wrap .wtc-blog-search__group:focus-within {
	border-color: #fc1520;
	box-shadow: 0 0 0 3px rgba(252, 21, 32, 0.12);
}

.wtc-blog-grid-wrap .wtc-blog-search__field {
	position: relative;
	display: flex;
	align-items: center;
	flex: 1 1 auto;
	min-width: 0;
	height: 100%;
	background: #fff;
}

.wtc-blog-grid-wrap .wtc-blog-search__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 48px;
	width: 48px;
	height: 100%;
	color: #0e1a4a;
	pointer-events: none;
}

.wtc-blog-grid-wrap .wtc-blog-search__icon svg {
	display: block;
	width: 18px;
	height: 18px;
}

.wtc-blog-grid-wrap .wtc-blog-search input[type="search"].wtc-blog-search__input {
	display: block;
	flex: 1 1 auto;
	width: auto;
	min-width: 0;
	height: 100%;
	margin: 0;
	padding: 0 12px 0 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: #0e1a4a;
	font-family: "Roboto", Sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.4;
	appearance: none;
	-webkit-appearance: none;
	outline: none;
	transition: none;
}

.wtc-blog-grid-wrap .wtc-blog-search input[type="search"].wtc-blog-search__input::placeholder {
	color: #8a8a8a;
	opacity: 1;
}

.wtc-blog-grid-wrap .wtc-blog-search input[type="search"].wtc-blog-search__input:focus {
	outline: none;
	border: 0;
	box-shadow: none;
}

.wtc-blog-grid-wrap .wtc-blog-search input[type="search"].wtc-blog-search__input::-webkit-search-decoration,
.wtc-blog-grid-wrap .wtc-blog-search input[type="search"].wtc-blog-search__input::-webkit-search-cancel-button,
.wtc-blog-grid-wrap .wtc-blog-search input[type="search"].wtc-blog-search__input::-webkit-search-results-button,
.wtc-blog-grid-wrap .wtc-blog-search input[type="search"].wtc-blog-search__input::-webkit-search-results-decoration {
	display: none;
}

.wtc-blog-grid-wrap .wtc-blog-search button.wtc-blog-search__clear {
	position: static;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 40px;
	width: 40px;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #0e1a4a;
	font-size: 24px;
	font-weight: 400;
	line-height: 1;
	transform: none;
	cursor: pointer;
	white-space: nowrap;
}

.wtc-blog-grid-wrap .wtc-blog-search button.wtc-blog-search__clear[hidden] {
	display: none;
}

.wtc-blog-grid-wrap .wtc-blog-search button.wtc-blog-search__clear:hover,
.wtc-blog-grid-wrap .wtc-blog-search button.wtc-blog-search__clear:focus {
	color: #fc1520;
	background: transparent;
	border: 0;
	outline: none;
}

.wtc-blog-grid-wrap .wtc-blog-search button.wtc-blog-search__submit {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	min-width: 120px;
	margin: 0;
	padding: 0 28px;
	border: 0;
	border-left: 1px solid #0e1a4a;
	border-radius: 0;
	background: #0e1a4a;
	color: #fff;
	font-family: "Roboto", Sans-serif;
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
	transition: color 0.2s ease, background-color 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
}

.wtc-blog-grid-wrap .wtc-blog-search button.wtc-blog-search__submit:hover,
.wtc-blog-grid-wrap .wtc-blog-search button.wtc-blog-search__submit:focus {
	background: #fc1520;
	border-left-color: #fc1520;
	color: #fff;
	outline: none;
	text-decoration: none;
}

.wtc-blog-grid-wrap .wtc-blog-search__group:focus-within .wtc-blog-search__submit {
	border-left-color: #fc1520;
}

.wtc-blog-search__status {
	min-height: 0;
	margin: -8px 0 22px;
	color: #707070;
	font-family: "Roboto", Sans-serif;
	font-size: 15px;
	line-height: 1.4;
}

.wtc-blog-search__status:empty {
	display: none;
	margin: 0;
}

.wtc-blog-grid-wrap .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.wtc-blog-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wtc-blog-card {
	min-width: 0;
	height: 100%;
}

.wtc-blog-card__holder {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.3);
}

.wtc-blog-card__detail {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 15px;
	text-align: left;
}

.wtc-blog-card__image-wrap {
	overflow: hidden;
	position: relative;
	margin: -15px -15px 15px;
	border-radius: 8px 8px 0 0;
}

.wtc-blog-card__image-link {
	display: block;
	text-align: center;
}

.wtc-blog-card__image,
.wtc-blog-card__image-wrap img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
	object-position: inherit;
	transition: transform 1.1s ease;
}

.wtc-blog-card__holder:hover .wtc-blog-card__image {
	transform: scale(1.1);
}

.wtc-blog-card__image-placeholder {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #eaf1ff;
}

.wtc-blog-card__title-wrap {
	margin-bottom: 15px;
}

.wtc-blog-card__title {
	font-family: "Roboto", Sans-serif;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.5em;
	letter-spacing: 0.025rem;
	margin: 0 0 18px;
	padding-bottom: 2px;
	color: #0e1a4a;
}

.wtc-blog-card__title a {
	color: #0e1a4a;
	text-decoration: none;
}

.wtc-blog-card__title a:hover,
.wtc-blog-card__holder .entry-title:hover,
.wtc-blog-card__holder .entry-title a:hover {
	color: #fc1520;
}

.wtc-blog-card__excerpt {
	margin-bottom: 10px;
}

.wtc-blog-card__excerpt .tpg-excerpt-inner {
	font-family: "Roboto", Sans-serif;
	font-weight: 400;
	font-size: 16px;
	line-height: 1.5;
	color: #707070;
}

.wtc-blog-card__excerpt .tpg-excerpt-inner a {
	color: #0e1a4a;
}

.wtc-blog-card__excerpt .tpg-excerpt-inner a:hover {
	color: #fc1520;
}

.wtc-blog-card__footer {
	margin-top: auto;
	margin-bottom: 0;
}

.wtc-blog-card__read-more,
.wtc-blog-grid-wrap .wtc-blog-card__detail .read-more a {
	display: inline-flex;
	align-items: center;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: left;
	background-color: hsla(0, 0%, 100%, 0.7);
	border-style: solid;
	border-width: 1px;
	border-color: #0e1a4a;
	border-radius: 8px;
	color: #0e1a4a;
	font-family: "Roboto", Sans-serif;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.8;
	padding: 6px 20px;
	text-decoration: none;
	overflow: hidden;
	transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.wtc-blog-card__read-more:hover,
.wtc-blog-grid-wrap .wtc-blog-card__detail .read-more a:hover {
	background-color: #fff;
	color: #fc1520;
	border-color: #fc1520;
}

.wtc-blog-grid__empty {
	grid-column: 1 / -1;
	margin: 0;
	color: #707070;
	font-family: "Roboto", Sans-serif;
}

.wtc-blog-grid__loader {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-top: 30px;
	min-height: 48px;
}

.wtc-blog-grid__loader[hidden] {
	display: none;
}

.wtc-blog-grid__spinner {
	width: 36px;
	height: 36px;
	border: 3px solid #e0e0e0;
	border-top-color: #fc1520;
	border-radius: 50%;
	animation: wtc-blog-spin 0.8s linear infinite;
}

.wtc-blog-grid__sentinel {
	width: 100%;
	height: 1px;
	margin-top: 20px;
}

@keyframes wtc-blog-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (max-width: 991px) {
	.wtc-blog-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.wtc-blog-grid-wrap .wtc-blog-search__group {
		flex-direction: row;
		flex-wrap: nowrap;
		align-items: stretch;
		height: 48px;
		max-width: 100%;
	}

	.wtc-blog-grid-wrap .wtc-blog-search__field {
		height: 100%;
		min-width: 0;
	}

	.wtc-blog-grid-wrap .wtc-blog-search__icon {
		flex: 0 0 40px;
		width: 40px;
	}

	.wtc-blog-grid-wrap .wtc-blog-search button.wtc-blog-search__clear {
		flex: 0 0 36px;
		width: 36px;
	}

	.wtc-blog-grid-wrap .wtc-blog-search button.wtc-blog-search__submit {
		flex: 0 0 auto;
		width: auto;
		min-width: 88px;
		height: 100%;
		padding: 0 16px;
		border: 0;
		border-left: 1px solid #0e1a4a;
		border-radius: 0;
		font-size: 14px;
	}
}

@media (max-width: 767px) {
	.wtc-blog-grid {
		grid-template-columns: 1fr;
	}

	.wtc-blog-card__title {
		font-size: 20px;
		margin: 0 0 15px;
	}

	.wtc-blog-grid-wrap .wtc-blog-search__group {
		height: 46px;
	}

	.wtc-blog-grid-wrap .wtc-blog-search input[type="search"].wtc-blog-search__input {
		font-size: 16px;
		padding-right: 8px;
	}

	.wtc-blog-grid-wrap .wtc-blog-search button.wtc-blog-search__submit {
		min-width: 78px;
		padding: 0 14px;
	}
}
