/*!
 * Home Page Styles - Knowledge AGMA Theme
 * Version: 2.4.3
 * Home page specific styles
 */

.home p {
	font-family: var(--font-b);
	font-weight: normal;
	font-size: 2.2rem;
	margin: 0;
	line-height: 1.2em;
}

@media (min-width: 1100px) {
	.home p {
		font-size: 1.55rem;
	}
}

.home p a {
	text-decoration: none !important;
	color: var(--s-color) !important;
}

/* Two Columns Layout */
.two-columns {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	padding-top: 37px;
}

.two-columns .column {
	flex: 1;
	box-sizing: border-box;
}

.home .two-columns .column:last-child {
	justify-content: end;
	display: flex;
}

/* Nearby Events */
.nearby-events {
	margin-bottom: 40px;
}

.nearby-events .post-type-header {
	margin-bottom: 20px;
	display: flex;
	align-items: center;
}

.nearby-events .post-type-icon {
	width: 20px;
	height: 20px;
	vertical-align: middle;
	margin: 0;
	margin-inline-end: 10px;
}

.nearby-events .post-items {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

.nearby-events .r_event_box {
	display: flex;
	width: 100%;
	max-width: 676px;
	height: 100%;
	flex-direction: column;
	align-items: flex-end;
	border-radius: 20px 20px 20px 20px;
	background: var(--white);
}

.post_inner {
	padding: 18px 38px 38px 38px;
	text-align: start;
	width: 100%;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: flex-start;
}

.nearby-events .post_img {
	width: 100%;
	height: 300px;
	background-size: cover;
	background-position: center;
	max-width: 676px;
	max-height: 272px;
	flex-shrink: 0;
	border-radius: 20px 20px 0px 0px;
}

.nearby-events .r_post_title {
	font-family: var(--font-a);
	font-size: 36px;
	font-style: normal;
	line-height: 1;
	margin: 0;
	padding: 0;
	color: var(--post-title-color, var(--m-color));
}

.nearby-events .r_post_description {
	color: var(--post-title-color, var(--m-color));
	text-align: right;
	font-family: var(--font-b);
	font-size: 22px;
	font-style: normal;
	font-weight: 400;
	line-height: 32px;
}

.r_post_dates {
	color: var(--post-title-color, var(--m-color));
	text-align: right;
	font-size: 18px;
	font-style: normal;
	font-weight: 700;
	line-height: 137%;
	font-family: var(--font-b);
}

.event-button {
	padding: 8px 16px;
	justify-content: center;
	align-items: center;
	gap: 12px;
	border: 1.5px dashed var(--m-color);
	font-size: 18px;
}

.event-button:hover {
	background: var(--m-color);
	color: var(--b-color);
}

.nearby-events .read-time {
	font-size: 14px;
	color: #666;
}

@media (min-width: 1100px) {
	.nearby-events .r_event_box {
		zoom: 0.7;
	}

	.nearby-events .post_img {
		height: 38vh !important;
	}

	header ul {
		gap: 1.8125rem;
	}
}

/* Home Post Items */
.home .post-items,
.blog .post-items {
	scroll-snap-type: x mandatory;
	-ms-overflow-style: none;
	scrollbar-width: none;
	overflow: hidden;
}

.blog .post-items {
	overflow-x: auto;
}

.home .post-items::-webkit-scrollbar,
.blog .post-items::-webkit-scrollbar {
	display: none;
}

/* Mobile Home Adjustments */
@media screen and (max-width: 765px) {
	.home {
		height: auto !important;
	}

	html {
		height: unset !important;
		overflow: auto !important;
	}

	.home #agma_map {
		position: relative !important;
		top: 0;
		height: 80vh;
		width: 100vw;
		z-index: 999 !important;
	}

	body.home #agma_map:before {
		display: none;
	}

	.home .map_btns {
		position: absolute;
		top: 173vh;
		z-index: 9999;
	}

	.home .map_btn:hover::after {
		display: none;
	}

	#map_zoom_out, #map_zoom_in {
		display: none;
	}

	.home .main {
		position: static;
		float: unset;
		height: unset;
		right: unset;
		padding: 7vh 0vw !important;
	}

	.home .main .two-columns .column {
		padding: 0 4vw;
	}

	.two-columns {
		display: flex;
		justify-content: space-between;
		gap: 20px;
		flex-direction: column;
		flex-wrap: wrap;
		padding-top: 0;
	}

	.home p {
		font-size: 1.6rem;
	}

	p.page_content.home_text {
		font-size: 25px;
		line-height: 1.86em;
		width: 90%;
		margin: auto;
	}

	body.home .nearby-events .post-type-header {
		font-size: 1rem;
		margin-bottom: 10px;
	}

	body.home .nearby-events .post_img {
		height: 7.685rem;
		align-self: stretch;
	}

	body.home .nearby-events .r_post_title {
		font-size: 1.7rem;
		font-style: normal;
		line-height: 1.2;
	}

	body.home .nearby-events .post_inner {
		padding: 18px;
		text-align: start;
		width: 100%;
		box-sizing: border-box;
		display: flex;
		flex-direction: column;
		gap: 10px;
		align-items: flex-start;
	}

	body.home .nearby-events .r_post_description {
		font-size: 0.9rem;
	}

	body.home .post-items {
		display: flex;
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
		height: 100%;
		scroll-snap-type: x mandatory;
		max-height: 280px;
	}

	body.home .nearby-events .post-items {
		max-height: unset;
	}

	body.home #row_dictionary .post-items {
		max-height: 160px;
		flex-wrap: unset;
	}

	body.home #row_dictionary .post-items .r_post_box {
		height: 16vh;
	}

	body.home .post-items::-webkit-scrollbar {
		display: none;
	}

	body.home .post-items .r_post_box {
		flex: 0 0 auto;
		scroll-snap-align: start;
		width: calc(80% - 20px);
		height: 100%;
		margin-bottom: 0;
	}

	body.home .post-items.items-4-r .r_post_box {
		width: calc(70% - 20px);
	}

	body.home .post-items.items-5-r .r_post_box {
		width: calc(60% - 20px);
	}

	body.home .post-items .r_post_box .r_post_title {
		font-size: 0.85rem;
	}

	body.home .post-type-section {
		margin-bottom: 5vh;
	}

	body.home header {
		border-color: transparent;
	}

	.home .mobile_header_start {
		display: grid;
		justify-content: center;
		height: 9vh;
		top: -9vh;
		position: absolute;
	}

	.home .mobile_header_start_active {
		height: 35vh;
		font-family: var(--font-b);
		align-items: center;
		transition: height 1.5s, opacity 0.5s;
		border-bottom: unset;
		-webkit-mask: url(../../../images/my_path2.svg);
		-webkit-mask-size: cover;
		-webkit-mask-position: bottom;
		background: var(--s-color);
		position: relative;
		top: -10vh;
		margin-bottom: -10vh;
		width: 100vw;
		color: white;
		text-align: center;
		font-size: 26px;
		z-index: 9999999;
	}

	.home .mobile_header_start_active span {
		padding-top: 1vh;
	}
}

