/* Blog Template Custom Styles */

/* Fix scrollbar issues - remove nested overflow */
body {
	overflow-x: hidden !important;
	overflow-y: auto !important;
}

.blog-container {
	overflow: visible !important;
	max-height: none !important;
	padding-top: 50px;
}

.blog-content {
	overflow: visible !important;
	max-height: none !important;
}

/* Reduce hero section height to half */
.blog-header.has-cover {
	padding-top: 20vh !important;	
	height: 60vh !important;
	min-height: 250px !important;
}

.blog-header.has-cover .inner {
	height: 100%;
}

.blog-header .blog-cover {
	height: 100% !important;
}

/* Add 50px horizontal padding to page */
.blog-container .blog-content {
	padding-left: 50px;
	padding-right: 50px;
	max-width: 100%;
}

/* Blog header description styling */
.blog-header .inner {
	padding-left: 50px;
	padding-right: 50px;
	max-width: 100%;
}

.blog-header .blog-box {
	max-width: 100%;
	padding-left: 0;
	padding-right: 0;
}

.blog-header .blog-description {
	max-width: 100%;
	display: block;
}

/* Featured Post Styles */
.featured-post {
	margin-bottom: 6rem;
	width: 100%;
}

/* Light blue background wrapper */
.featured-background {
	background: linear-gradient(135deg, #f0f7ff 0%, #e6f2ff 100%);
	padding: 2.5rem;
	border-radius: 16px;
	border: 2px solid #4a90e2;
}

.blog-eyebrow {
	font-size: 1.5em;
	font-weight: 600;
	text-transform: uppercase;
}
/* Animated blue border keyframes */
@keyframes borderPulse {
	0%, 100% {
	  border-color: #1E6FEF; /* brighter + deeper blue */
	  box-shadow: 0 0 0 0 rgba(30, 111, 239, 0.45);
	}
	50% {
	  border-color: #1557C4; /* darker tone */
	  box-shadow: 0 0 0 8px rgba(30, 111, 239, 0);
	}
  }
  

.featured-post .featured-box {
	display: flex;
	flex-direction: row;
	gap: 0;
	padding: 0;
	background: #ffffff;
	border: 3px solid #4a90e2;
	border-radius: 16px;
	overflow: hidden;
	position: relative;
	width: 100%;
	box-sizing: border-box;
	transition: all ease-out 0.4s;
	animation: borderPulse 3s ease-in-out infinite;
}

.featured-post .featured-box:hover {
	border-color: #4a90e2;
	box-shadow: 0 12px 40px rgba(74, 144, 226, 0.3);
	transform: translateY(-4px);
	animation: none;
}

/* Featured Post Image - Rounded on left side */
.featured-post .featured-image-wrapper {
	width: 45%;
	flex-shrink: 0;
	overflow: hidden;
	border-radius: 5px 0 0 5px;
}

.featured-post .featured-image-link {
	display: block;
	overflow: hidden;
	width: 100%;
	height: 100%;
	border-radius: 5px 0 0 5px;
}

.featured-post .featured-image {
	width: 100%;
	height: 100%;
	min-height: 400px;
	max-height: 500px;
	object-fit: cover;
	display: block;
	transition: transform 0.5s ease;
	border-radius: 0;
}

.featured-post .featured-image-link:hover .featured-image {
	transform: scale(1.08);
}

/* Featured content wrapper - centered vertically */
.featured-post .featured-content-wrapper {
	flex: 1;
	padding: 4rem 4rem 4rem 3.5rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 1.5rem;
}

/* Star wrapper with own space */
.featured-post .featured-star-wrapper {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 1.2rem;
	margin-bottom: 0.5rem;
}

.featured-post .post-feature {
	width: 3.5rem;
	height: 3.5rem;
	min-width: 3.5rem;
	min-height: 3.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #4a90e2 0%, #5ba3f5 100%);
	border-radius: 50%;
	color: #fff;
	font-size: 1.8em;
	box-shadow: 0 4px 12px rgba(74, 144, 226, 0.4);
	margin: 0;
	padding: 0;
	flex-shrink: 0;
	position: relative;
}

.featured-post .post-feature .icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.featured-post .featured-label {
	font-size: 1.3em;
	font-weight: 600;
	color: #4a90e2;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	line-height: 1;
	white-space: nowrap;
}

.featured-post .featured-title {
	font-size: 3.4em;
	line-height: 1.2em;
	margin: 0;
	color: var(--color-content-lead);
}

.featured-post .featured-title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.3s ease;
}

.featured-post .featured-title a:hover {
	color: #4a90e2;
}

.featured-post .featured-excerpt {
	font-size: 1.6em;
	line-height: 1.6em;
	margin: 0;
	color: var(--color-content-secondary);
}

/* Featured meta wrapper */
.featured-post .featured-meta-wrapper {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 0.5rem;
}

.featured-post .post-meta {
	display: flex;
	align-items: center;
	gap: 1rem;
	font-size: 1.4em;
}

.featured-post .post-author {
	font-weight: 700;
	color: #4a90e2;
	text-decoration: none;
	cursor: default;
	pointer-events: none;
}

.featured-post .post-author a {
	color: inherit;
	text-decoration: none;
	pointer-events: none;
	cursor: default;
}

.featured-post .post-tag {
	padding: 0.3rem 1rem;
	background: #e6f2ff;
	color: #4a90e2;
	border-radius: 20px;
	font-size: 0.9em;
	font-weight: 600;
}

.featured-post .post-date {
	font-size: 1.3em;
	color: var(--color-content-secondary);
	font-weight: 500;
}

.featured-post .read-more-link {
	display: inline-block;
	padding: 1.2rem 3rem;
	background: linear-gradient(135deg, #4a90e2 0%, #5ba3f5 100%);
	color: #fff;
	text-decoration: none;
	border-radius: 50px;
	font-weight: 700;
	font-size: 1.5em;
	transition: all ease-out 0.3s;
	align-self: flex-start;
	box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.featured-post .read-more-link:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(74, 144, 226, 0.5);
}

/* Posts Grid Styles - 3 columns */
.posts-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 3rem;
	margin-top: 5rem;
	width: 100%;
}

.grid-post {
	width: 100%;
}

/* Vertical card layout */
.grid-post .grid-box {
	display: flex;
	flex-direction: column;
	background: var(--color-background-main);
	border: 1px solid var(--color-background-contrast);
	border-radius: 16px;
	overflow: hidden;
	transition: all ease-out 0.3s;
	width: 100%;
	box-sizing: border-box;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.grid-post .grid-box:hover {
	border-color: var(--ghost-accent-color);
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
	transform: translateY(-6px);
}

/* Grid Post Image - Rounded at top */
.grid-post .grid-image-wrapper {
	width: 100%;
	height: 240px;
	overflow: hidden;
	background: var(--color-background-contrast);
	flex-shrink: 0;
}

.grid-post .grid-image-link {
	display: block;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.grid-post .grid-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.5s ease;
}

.grid-post .grid-image-link:hover .grid-image {
	transform: scale(1.12);
}

/* Grid content wrapper */
.grid-post .grid-content-wrapper {
	padding: 2.5rem;
	display: flex;
	flex-direction: column;
	gap: 1.2rem;
	flex: 1;
}

.grid-post .post-title {
	font-size: 2em;
	line-height: 1.3em;
	margin: 0;
	color: var(--color-content-lead);
}

.grid-post .post-title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.3s ease;
}

.grid-post .post-title a:hover {
	color: #4a90e2;
}

.grid-post .post-excerpt {
	font-size: 1.4em;
	line-height: 1.6em;
	color: var(--color-content-secondary);
	margin: 0;
	flex: 1;
}

/* Grid meta wrapper */
.grid-post .grid-meta-wrapper {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 1rem;
	border-top: 1px solid var(--color-background-contrast);
	margin-top: auto;
}

.grid-post .post-author {
	font-weight: 700;
	font-size: 1.3em;
	color: var(--color-content-main);
	text-decoration: none;
	cursor: default;
	pointer-events: none;
}

.grid-post .post-author a {
	color: inherit;
	text-decoration: none;
	pointer-events: none;
	cursor: default;
}

.grid-post .post-date {
	font-size: 1.2em;
	color: var(--color-content-secondary);
	font-weight: 500;
}

/* Responsive adjustments */
@media only screen and (max-width: 1200px) {
	.posts-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 2.5rem;
	}
}

@media only screen and (max-width: 900px) {
	.featured-post .featured-box {
		flex-direction: column;
		border-radius: 8px;
	}

	.featured-post .featured-image-wrapper {
		width: 100%;
		height: 300px;
		border-radius: 5px 5px 0 0;
	}

	.featured-post .featured-image {
		min-height: 300px;
		max-height: 300px;
	}

	.featured-post .featured-content-wrapper {
		padding: 3rem;
	}

	.featured-post .featured-title {
		font-size: 2.8em;
	}

	.blog-container .blog-content {
		padding-left: 30px;
		padding-right: 30px;
	}
}

@media only screen and (max-width: 768px) {
	.posts-grid {
		grid-template-columns: 1fr;
		gap: 2rem;
		margin-top: 4rem;
	}

	.featured-background {
		padding: 2rem;
	}

	.featured-post .featured-content-wrapper {
		padding: 2.5rem;
	}

	.featured-post .featured-title {
		font-size: 2.4em;
	}

	.blog-container .blog-content {
		padding-left: 20px;
		padding-right: 20px;
	}
}

@media only screen and (max-width: 480px) {
	.blog-container .blog-content {
		padding-left: 15px;
		padding-right: 15px;
	}

	.featured-background {
		padding: 1.5rem;
	}

	.featured-post .featured-content-wrapper {
		padding: 2rem;
	}

	.featured-post .featured-title {
		font-size: 2.2em;
	}

	.featured-post .featured-excerpt {
		font-size: 1.5em;
	}

	.grid-post .grid-content-wrapper {
		padding: 2rem;
	}

	.grid-post .post-title {
		font-size: 1.8em;
	}

	.featured-post .featured-meta-wrapper {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.8rem;
	}

	.grid-post .grid-meta-wrapper {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.5rem;
	}
}

/* Pagination spacing */
.pagination {
	margin-top: 6rem;
	margin-bottom: 4rem;
}

.extra-pagination {
	margin-bottom: 4rem;
}

/* Override any conflicting post-box styles */
.container .post .post-box {
	padding: 0;
	border: none;
}

.container .post.featured .inner:after {
	display: none;
}

/* Ensure proper box-sizing for all elements */
* {
	box-sizing: border-box;
}
