/* Rivers Custom Widgets Global Styles */
.elementor-widget-blog-menu,
.elementor-widget-blog-footer,
.elementor-widget-featured-posts {
	display: block;
	width: 100%;
}

/* --- Dynamic Blog Menu --- */
.elementor-blog-menu {
	display: flex;
	flex-wrap: wrap;
	list-style: none;
	padding: 0;
	margin: 0;
	align-items: center;
	border-top: 1px solid #000;
	border-bottom: 1px solid #000;
	gap: 10px 20px;
}
.elementor-blog-menu-item {
	display: block;
}
.elementor-blog-menu-link {
	display: block;
	text-decoration: none;
	transition: color 0.3s ease, border-color 0.3s ease;
	cursor: pointer;
	border-bottom: 0px solid transparent;
	box-sizing: border-box;
}
.elementor-blog-menu-text {
	display: inline-block;
}

/* --- Dynamic Blog Footer (Meet the Author) --- */
.rivers-blog-footer {
	background-color: #133854; /* Default dark blue background */
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	box-sizing: border-box;
}

.rivers-blog-footer-inner {
	width: 100%;
	max-width: 900px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.rivers-blog-footer-avatar-wrapper {
	margin-bottom: 24px;
	display: flex;
	justify-content: center;
}

.rivers-blog-footer-avatar {
	border-radius: 50%;
	object-fit: cover;
}

.rivers-blog-footer-title {
	color: #ffffff;
	margin: 20px 0 30px 0;
	text-align: center;
}

.rivers-blog-footer-content {
	color: #ffffff;
	text-align: center;
}

.rivers-blog-footer-content p {
	margin: 0 0 20px 0;
}

.rivers-blog-footer-content p:last-child {
	margin-bottom: 0;
}

/* --- Asymmetrical Featured Posts Grid --- */
.rivers-featured-posts {
	width: 100%;
}

.rivers-featured-posts-inner {
	display: flex;
	gap: 40px;
	width: 100%;
	flex-wrap: wrap;
}

.rivers-featured-post-item {
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
}

/* Asymmetrical columns ratio (Desktop) */
@media (min-width: 768px) {
	.rivers-featured-post-large {
		flex: 1.6;
		max-width: 60%;
	}
	.rivers-featured-post-small {
		flex: 1;
		max-width: 40%;
	}
}

@media (max-width: 767px) {
	.rivers-featured-posts-inner {
		flex-direction: column;
		gap: 30px;
	}
	.rivers-featured-post-large,
	.rivers-featured-post-small {
		width: 100%;
		max-width: 100%;
	}
	.rivers-featured-post-date {
		font-size: 12px;
	}
	.rivers-featured-post-category,
	.rivers-related-post-category,
	.elementor-post__badge {
		font-size: 12px !important;
		line-height: 22px !important;
		padding: 0 10px !important;
	}
}

/* Image structure with overlay flag */
.rivers-featured-post-image-wrapper {
	position: relative;
	width: 100%;
	margin-bottom: 20px;
	overflow: hidden;
}

.rivers-featured-post-image {
	width: 100%;
	height: auto;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.rivers-featured-post-image-wrapper:hover .rivers-featured-post-image {
	transform: scale(1.02);
}

.rivers-featured-post-category,
.rivers-related-post-category {
	position: absolute;
	top: 0;
	right: 0;
	padding: 5px 20px;
	text-transform: uppercase;
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	font-size: 16px;
	line-height: 29px;
	letter-spacing: 12%;
	text-align: center;
	color: #7C0104;
	background-color: #FFF0E8;
	display: inline-block;
}

/* Content block styles */
.rivers-featured-post-title {
	margin: 0 0 15px 0;
}

.rivers-featured-post-title a {
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.rivers-featured-post-title a:hover {
	opacity: 0.85;
}

.rivers-featured-post-excerpt {
	margin-bottom: 20px;
}

.rivers-featured-post-divider {
	border: 0;
	border-bottom: 1px solid #e2e8f0;
	margin: 0 0 15px 0;
}

.rivers-featured-post-date {
	margin-top: 10px;
}

/* --- Custom Single Post Template --- */
.rivers-single-post-wrapper {
	width: 100%;
	background-color: #ffffff;
}

/* Header Banner Section */
.rivers-single-post-header {
	position: relative;
	background-size: cover;
	background-position: center;
	height: 450px;
	display: flex;
	align-items: center;
	box-sizing: border-box;
}

.rivers-single-post-header-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(89.93deg, #7C0104 0.04%, rgba(226, 3, 6, 0) 67.71%);
	z-index: 1;
}

.rivers-single-post-header-container {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 40px;
}

.rivers-single-post-header-date {
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	font-size: 24px;
	line-height: 29px;
	color: #ffffff;
	margin-bottom: 15px;
}

.rivers-single-post-header-title {
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	font-size: 48px;
	line-height: 120%;
	text-transform: uppercase;
	color: #D9EAF9;
	margin: 0;
}

/* Content Container Section */
.rivers-single-post-content-container {
	width: 100%;
	max-width: 1140px;
	margin: 60px auto;
	padding: 0 40px;
	box-sizing: border-box;
}

.rivers-single-post-content {
	max-width: 800px;
	margin: 0 auto;
}

.rivers-single-post-content p {
	font-family: Rubik, Sans-serif, serif;
	font-weight: 400;
	font-style: normal;
	font-size: 20px;
	line-height: 140%;
	letter-spacing: 0%;
}
.rivers-single-post-content a {
	word-break: break-word;
}
.rivers-single-post-content h1,
.rivers-single-post-content h2,
.rivers-single-post-content h3,
.rivers-single-post-content h4,
.rivers-single-post-content h5,
.rivers-single-post-content h6 {
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	font-size: 35px;
	line-height: 140%;
	color: #183B5B;
	margin: 40px 0 20px 0;
}

/* Related Posts Section (You Might Also Like) */
.rivers-single-post-related-section {
	background-color: #fafafa;
	border-top: 1px solid #e2e8f0;
	padding: 80px 40px;
	box-sizing: border-box;
}

.rivers-single-post-related-container {
	max-width: 1140px;
	margin: 0 auto;
}

.rivers-single-post-related-title {
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	font-size: 32px;
	color: #7C0104;
	text-align: center;
	margin: 0 0 50px 0;
	text-transform: capitalize;
}

.rivers-single-post-related-grid {
	display: flex;
	gap: 40px;
	justify-content: center;
	width: 100%;
	flex-wrap: wrap;
}

.rivers-related-post-item {
	flex: 1;
	max-width: 500px;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
}

.rivers-related-post-image-wrapper {
	position: relative;
	width: 100%;
	overflow: hidden;
	margin-bottom: 20px;
}

.rivers-related-post-image {
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.rivers-related-post-image-wrapper:hover .rivers-related-post-image {
	transform: scale(1.02);
}

/* Category styles are defined in the shared block above */

.rivers-related-post-title {
	margin: 0;
}

.rivers-related-post-title a {
	text-decoration: none;
	font-family: 'Montserrat', sans-serif;
	font-weight: 600;
	font-size: 26px;
	line-height: 130%;
	color: #183B5B;
	transition: opacity 0.2s ease;
}

.rivers-related-post-title a:hover {
	opacity: 0.85;
}

.rivers-related-post-date {
	display: none;
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	font-size: 16px;
	line-height: 130%;
	color: #7C0104;
	margin-top: 10px;
}

/* Inline Featured Image inside post content */
.rivers-single-post-content-featured-image {
	width: 100%;
	margin-bottom: 40px;
	display: flex;
	justify-content: center;
}

.rivers-single-post-inline-image {
	width: 100%;
	max-width: 100%;
	height: auto;
	object-fit: cover;
	display: block;
}

@media (max-width: 767px) {
	.rivers-single-post-related-grid {
		flex-direction: column;
		align-items: center;
	}
	.rivers-related-post-item {
		width: 100%;
		max-width: 100%;
	}
	.rivers-single-post-header {
		height: 350px;
	}
	.rivers-single-post-header-date{
		font-size:18px;
	}
	.rivers-single-post-header-title {
		font-size: 28px;
	}
	.rivers-single-post-content blockquote {
		margin: 0;
		font-size: 22px;

		& p {
			margin: 0 0 25px 0;
		}
	}
	.rivers-single-post-content p{
		margin-left: 0;
		margin-right: 0;
		font-size: 18px;
	}
	.rivers-single-post-content h1,
	.rivers-single-post-content h2,
	.rivers-single-post-content h3,
	.rivers-single-post-content h4,
	.rivers-single-post-content h5,
	.rivers-single-post-content h6 {
		font-size: 22px;
		line-height: 100%;
	}
	.rivers-single-post-related-title{
		font-size: 20px;
	}
	.rivers-related-post-title, .rivers-related-post-title a {
		font-size: 18px;
		line-height: 100%;
	}

	.rivers-related-post-date {
		font-size: 14px;
	}
}