/*
 * Blog component refinements.
 * Kept separate from the main blog stylesheet so card/search overrides remain
 * easy to maintain.
 */

.blog-card-image {
	position: relative;
	flex: none;
}

.blog-card-image > .blog-category-pill {
	position: absolute;
	z-index: 2;
	bottom: 20px;
	left: 22px;
	box-shadow: 0 7px 18px rgba(3, 33, 33, 0.18);
}

.blog-card-body > h2 {
	margin-top: 0;
	margin-bottom: 14px;
}

.blog-card {
	display: flex;
	min-width: 0;
	height: 100%;
	flex-direction: column;
}

.blog-card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
}

.blog-card-body > p {
	flex: 1;
	margin-bottom: 20px;
}

.blog-card-body > .blog-meta {
	margin-top: 0;
	margin-bottom: 22px;
	padding-top: 17px;
	border-top: 1px solid #dceaea;
}

.blog-card-body > .blog-read-more {
	width: max-content;
	min-height: 44px;
	padding: 0 20px;
	border-radius: 999px;
	background: #063232;
	color: #fff;
}

.blog-card-body > .blog-read-more i {
	color: #fbb12f;
}

.blog-card-body > .blog-read-more:hover {
	background: #f59e0b;
	color: #063232;
}

.blog-card-body > .blog-read-more:hover i {
	color: #063232;
}

.blog-single-hero {
	min-height: 590px;
	align-items: flex-end;
	padding-bottom: 88px;
}

.blog-single-hero::before {
	inset: -150px -100px auto auto;
}

.blog-single-hero::after {
	right: 8%;
	bottom: -210px;
	width: 430px;
	height: 430px;
}

.blog-single-heading {
	max-width: 980px;
	padding-left: 34px;
	border-left: 5px solid #fbb12f;
}

.blog-single-heading .blog-breadcrumb {
	margin-bottom: 26px;
}

.blog-single-heading > .blog-category-pill {
	margin-bottom: 18px;
	background: #fbb12f;
}

.blog-single-heading h1 {
	max-width: 920px;
	margin: 0;
	font-size: clamp(2.75rem, 5vw, 4.65rem);
	line-height: 1.08;
}

.blog-single-meta {
	width: max-content;
	max-width: 100%;
	display: flex;
	flex-wrap: wrap;
	gap: 10px 24px;
	margin-top: 30px;
	padding: 14px 20px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 12px;
	background: rgba(3, 33, 33, 0.52);
	color: rgba(255, 255, 255, 0.82);
	backdrop-filter: blur(8px);
}

.blog-single-meta span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.86rem;
	font-weight: 700;
}

.blog-single-meta i {
	color: #ffc456;
}

@media (max-width: 767px) {
	.blog-single-hero {
		min-height: 520px;
		padding-bottom: 60px;
	}

	.blog-single-heading {
		padding-left: 20px;
		border-left-width: 4px;
	}

	.blog-single-heading h1 {
		font-size: clamp(2.2rem, 10vw, 3rem);
	}

	.blog-single-meta {
		width: 100%;
		gap: 8px 16px;
		padding: 12px 14px;
	}
}

@media (max-width: 480px) {
	.blog-card-body > .blog-read-more {
		width: 100%;
		justify-content: center;
	}
}

/*
 * Compact editorial card treatment based on the supplied visual reference.
 * The content order remains: image, title, excerpt, metadata, read-more link.
 */
.blog-grid {
	gap: 28px;
}

.blog-card {
	overflow: hidden;
	border: 0;
	border-radius: 4px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(3, 33, 33, 0.1);
}

.blog-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 34px rgba(3, 33, 33, 0.14);
}

.blog-card-image {
	width: 100%;
	height: 225px !important;
	min-height: 225px;
	max-height: 225px;
}

.blog-card-image > img {
	width: 100% !important;
	height: 100% !important;
	position: static !important;
	inset: auto !important;
	object-fit: cover;
}

.blog-card-image > .blog-category-pill {
	top: 15px;
	right: auto;
	bottom: auto;
	left: 15px;
	padding: 6px 10px;
	border: 1px solid rgba(255, 255, 255, 0.7);
	border-radius: 3px;
	background: rgba(255, 255, 255, 0.94);
	color: #063232;
	font-size: 0.65rem;
	box-shadow: 0 5px 16px rgba(3, 33, 33, 0.14);
	backdrop-filter: blur(6px);
}

.blog-card-body {
	padding: 24px 22px 25px;
}

.blog-card-body > h2 {
	margin-bottom: 11px;
	font-size: 1.25rem;
	font-weight: 800;
	line-height: 1.28;
}

.blog-card-body > p {
	margin-bottom: 17px;
	color: #5f7a7d;
	font-size: 0.88rem;
	line-height: 1.65;
}

.blog-card-body > .blog-meta {
	gap: 6px 15px;
	margin-bottom: 16px;
	padding-top: 14px;
	color: #789194;
	font-size: 0.7rem;
}

.blog-card-body > .blog-meta i {
	font-size: 0.7rem;
}

.blog-card-body > .blog-read-more {
	min-height: auto;
	padding: 0;
	border-radius: 0;
	background: transparent;
	color: #063232;
	font-size: 0.78rem;
	font-weight: 800;
}

.blog-card-body > .blog-read-more i {
	color: #f59e0b;
	font-size: 0.7rem;
}

.blog-card-body > .blog-read-more:hover {
	background: transparent;
	color: #f59e0b;
}

.blog-card-body > .blog-read-more:hover i {
	color: #f59e0b;
}

@media (max-width: 1199px) {
	.blog-card-image {
		height: 205px !important;
		min-height: 205px;
		max-height: 205px;
	}
}

@media (max-width: 767px) {
	.blog-grid {
		gap: 22px;
	}

	.blog-card-image {
		height: 230px !important;
		min-height: 230px;
		max-height: 230px;
	}
}

@media (max-width: 480px) {
	.blog-card-image {
		height: 205px !important;
		min-height: 205px;
		max-height: 205px;
	}

	.blog-card-body {
		padding: 22px 20px 23px;
	}

	.blog-card-body > .blog-read-more {
		width: max-content;
		justify-content: flex-start;
	}
}

.blog-search-form {
	position: relative;
	display: flex;
}

.blog-search-form input {
	width: 100%;
	height: 52px;
	padding: 0 58px 0 16px;
	border: 1px solid #dceaea;
	border-radius: 12px;
	outline: 0;
	background: #fff;
	color: #063232;
}

.blog-search-form input:focus {
	border-color: #fbb12f;
	box-shadow: 0 0 0 4px rgba(251, 177, 47, 0.13);
}

.blog-search-form button {
	width: 44px;
	height: 44px;
	display: grid;
	position: absolute;
	top: 4px;
	right: 4px;
	place-items: center;
	padding: 0;
	border: 0;
	border-radius: 9px;
	background: #063232;
	color: #fff;
	transition: background-color 180ms ease, color 180ms ease;
}

.blog-search-form button:hover {
	background: #f59e0b;
	color: #063232;
}

.blog-search-form svg {
	width: 19px;
	height: 19px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
}
