/* Blog listing & single post */

.page-hero--blog,
.page-hero--type {
	background: var(--color-white);
	color: var(--color-heading);
}

.page-hero--single {
	padding-bottom: 28px;
}

.page-hero--single .page-hero__inner {
	max-width: min(100%, 980px);
}

.page-hero--single .page-hero__title {
	font-size: clamp(1.75rem, 3.2vw, 2.45rem);
	line-height: 1.28;
	max-width: none;
	margin-inline: auto;
}

.page-hero__meta {
	margin: 8px 0 0;
	font-size: 0.85rem;
	color: var(--color-heading-sub);
	opacity: 1;
}

.page-hero__meta a {
	color: var(--color-primary);
}

.page-hero__meta a:hover {
	color: var(--color-pink);
}

.blog-search {
	display: flex;
	align-items: center;
	max-width: 560px;
	margin: 22px auto 0;
	background: #fff;
	border: 1px solid var(--color-gray-200);
	border-radius: 999px;
	box-shadow: 0 10px 28px rgba(35, 37, 58, 0.08);
	overflow: hidden;
}

.blog-search__input {
	flex: 1;
	min-width: 0;
	border: 0;
	padding: 14px 18px 14px 22px;
	font: inherit;
	font-size: 0.95rem;
	color: var(--color-heading);
	background: transparent;
}

.blog-search__input::placeholder {
	color: #9a93b0;
}

.blog-search__input:focus {
	outline: none;
}

.blog-search__btn {
	flex-shrink: 0;
	width: 46px;
	height: 46px;
	margin: 5px;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	background: linear-gradient(135deg, #6c3cff 0%, #f33fa6 100%);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-search__btn:hover,
.blog-search__btn:focus-visible {
	transform: scale(1.04);
	box-shadow: 0 8px 22px rgba(243, 63, 166, 0.35);
}

.blog-search__icon {
	display: block;
	width: 18px;
	height: 18px;
	margin: 0 auto;
	background: #fff;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M15.5 14h-.79l-.28-.27A6.47 6.47 0 0016 9.5 6.5 6.5 0 109.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E") center / contain no-repeat;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M15.5 14h-.79l-.28-.27A6.47 6.47 0 0016 9.5 6.5 6.5 0 109.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.blog-search-status {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
	margin: 0 0 22px;
	font-size: 0.92rem;
	color: var(--color-heading-sub);
}

.blog-search-status__clear {
	font-weight: 700;
	color: var(--color-primary);
	text-decoration: none;
}

.blog-search-status__clear:hover {
	color: var(--color-pink);
}

.blog-search-empty-actions {
	margin: 18px 0 0;
	text-align: center;
}

.blog-index {
	background: var(--color-warm);
	padding-top: 64px;
	padding-bottom: 90px;
}

.blog-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}

.blog-card {
	background: var(--color-white);
	border-radius: var(--radius-card);
	overflow: hidden;
	box-shadow: var(--shadow-card);
	display: flex;
	flex-direction: column;
	transition: transform var(--transition), box-shadow var(--transition);
}

.blog-card:hover {
	transform: translateY(-8px);
	box-shadow: var(--shadow-hover);
}

.blog-card__media {
	display: block;
	overflow: hidden;
}

.blog-card__image {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	transition: transform var(--transition);
}

.blog-card:hover .blog-card__image {
	transform: scale(1.06);
}

.blog-card__body {
	padding: 22px 24px 24px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.blog-card__date {
	font-size: 0.78rem;
	color: var(--color-gray-400);
	margin-bottom: 8px;
}

.blog-card__title {
	font-family: var(--font-heading);
	font-size: 1.05rem;
	font-weight: 700;
	margin: 0 0 10px;
	line-height: 1.35;
}

.blog-card__title a {
	color: var(--color-heading);
}

.blog-card__excerpt {
	font-size: 0.88rem;
	color: var(--color-gray-600);
	line-height: 1.65;
	margin: 0 0 16px;
	flex: 1;
}

.blog-pagination {
	margin-top: 40px;
	text-align: center;
}

.blog-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.blog-pagination a,
.blog-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border-radius: var(--radius-input);
	background: var(--color-white);
	box-shadow: var(--shadow-soft);
	font-size: 0.88rem;
}

.blog-pagination .current {
	background: var(--color-primary);
	color: var(--color-white);
}

/* Single */
.blog-single {
	padding-top: 48px;
	padding-bottom: 90px;
	background: var(--color-white);
}

.blog-single__grid {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 40px;
	align-items: start;
}

.blog-single__thumb {
	margin-bottom: 28px;
	border-radius: var(--radius-card);
	overflow: hidden;
	box-shadow: var(--shadow-soft);
}

.blog-single__thumb img {
	width: 100%;
	height: auto;
	display: block;
}

.blog-single__content {
	font-size: 0.95rem;
	line-height: 1.85;
	color: var(--color-gray-600);
}

.blog-single__content h2,
.blog-single__content h3 {
	font-family: var(--font-serif);
	color: var(--color-primary);
	margin: 2rem 0 0.75rem;
}

.blog-single__content ul {
	list-style: disc;
	margin: 0 0 1em;
	padding-left: 1.4em;
}

.blog-single__content ol {
	list-style: decimal;
	margin: 0 0 1em;
	padding-left: 1.4em;
}

.blog-single__content li {
	margin: 0 0 0.45em;
}

.blog-single__content p {
	margin: 0 0 1em;
}

.blog-widget {
	background: var(--color-warm);
	border-radius: var(--radius-card);
	padding: 24px;
	box-shadow: var(--shadow-soft);
	position: sticky;
	top: 90px;
}

.blog-widget__title {
	font-family: var(--font-serif);
	font-size: 1.1rem;
	color: var(--color-primary);
	margin: 0 0 10px;
}

.blog-widget p {
	font-size: 0.88rem;
	color: var(--color-gray-600);
	margin: 0 0 16px;
	line-height: 1.65;
}

.blog-widget .btn {
	margin-bottom: 10px;
}

.blog-widget .btn:last-child {
	margin-bottom: 0;
}

@media (max-width: 991px) {
	.blog-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.blog-single__grid {
		grid-template-columns: 1fr;
	}

	.blog-widget {
		position: static;
	}
}

@media (max-width: 576px) {
	.blog-grid {
		grid-template-columns: 1fr;
	}

	.blog-search {
		margin-top: 16px;
	}

	.blog-search__input {
		padding: 12px 12px 12px 16px;
		font-size: 0.88rem;
	}

	.blog-search__btn {
		width: 42px;
		height: 42px;
	}
}
