/* Novamira: Blog page styling — matches the e-comm.it design system used across the rest of the site */

.nova-blog {
	padding-top: 40px;
	padding-bottom: 80px;
}

.nova-blog__title {
	font-family: 'Inter', sans-serif;
	font-weight: 700;
	font-size: 2.4rem;
	color: var(--black);
	margin-bottom: 8px;
}

.nova-blog__title-sub {
	display: block;
	font-weight: 400;
	font-size: 1.1rem;
	color: var(--gray-600);
	margin-top: 6px;
}

.nova-blog__search {
	margin: 24px 0 40px;
	max-width: 480px;
}

.nova-blog__search .form-search {
	display: flex;
	align-items: center;
	background: var(--white);
	border: 1px solid var(--gray-300);
	border-radius: 999px;
	padding: 6px 6px 6px 20px;
}

.nova-blog__search .form-search input[type="search"] {
	flex: 1;
	height: 40px;
	line-height: 40px;
	padding: 0;
	margin: 0;
	border: none;
	background: transparent;
	font-family: 'Inter', sans-serif;
	font-size: 1rem;
	color: var(--black);
	outline: none;
	-webkit-appearance: none;
	appearance: none;
}

.nova-blog__search .form-search button {
	position: static;
	top: auto;
	right: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	line-height: 1;
	border: none;
	border-radius: 50%;
	background: var(--accent);
	cursor: pointer;
	flex-shrink: 0;
	transition: background-color .2s ease;
}

.nova-blog__search .form-search button:hover {
	background: var(--accent-hover);
}

.nova-blog__search .form-search button svg {
	width: 22px;
	height: 22px;
	display: block;
	margin: auto;
	transform: translate(-1px, -3px);
	fill: var(--white);
}

/* Post card */

.nova-post-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--white);
	border: 1px solid var(--gray-300);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 16px rgba(17, 17, 17, 0.06);
	transition: box-shadow .2s ease, transform .2s ease;
}

.nova-post-card:hover {
	box-shadow: 0 10px 28px rgba(17, 17, 17, 0.1);
	transform: translateY(-2px);
}

.nova-post-card__media {
	display: block;
	line-height: 0;
}

.nova-post-card__media img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	margin: 0;
	border-radius: 0;
}

.nova-post-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 24px;
}

.nova-post-card__meta {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
}

.nova-post-card__date {
	font-family: 'Inter', sans-serif;
	font-size: 0.85rem;
	color: var(--gray-600);
}

.nova-post-card__badge {
	display: inline-block;
	font-family: 'Inter', sans-serif;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--accent-hover);
	background: rgba(224, 139, 62, 0.12);
	border-radius: 6px;
	padding: 4px 10px;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.nova-post-card__badge:hover {
	background: rgba(224, 139, 62, 0.22);
	color: var(--accent-hover);
}

.nova-post-card__title {
	font-family: 'Inter', sans-serif;
	font-weight: 700;
	font-size: 1.35rem;
	line-height: 1.25;
	margin: 0 0 12px;
}

.nova-post-card__title a {
	color: var(--black);
	text-decoration: none;
}

.nova-post-card__title a:hover {
	color: var(--accent);
}

.nova-post-card__excerpt {
	font-family: 'Inter', sans-serif;
	font-size: 0.98rem;
	line-height: 1.6;
	color: var(--gray-900);
	flex: 1;
	margin-bottom: 16px;
}

.nova-post-card__excerpt p {
	margin: 0;
}

.nova-post-card__readmore {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	font-family: 'Inter', sans-serif;
	font-weight: 600;
	font-size: 0.92rem;
	color: var(--white);
	background: var(--accent);
	border-radius: 6px;
	padding: 10px 18px;
	text-decoration: none;
	transition: background-color .2s ease;
}

.nova-post-card__readmore:hover {
	background: var(--accent-hover);
	color: var(--white);
}

.nova-post-card__tags {
	margin: 14px 0 0;
	font-size: 0.85rem;
	color: var(--gray-600);
}

.nova-post-card__tags a {
	color: var(--gray-600);
}

/* Pagination */

.nova-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	margin-top: 40px;
}

.nova-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border-radius: 6px;
	border: 1px solid var(--gray-300);
	font-family: 'Inter', sans-serif;
	font-size: 0.95rem;
	color: var(--black);
	text-decoration: none;
	background: var(--white);
}

.nova-pagination .page-numbers.current {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--white);
}

.nova-pagination .page-numbers:hover:not(.current) {
	border-color: var(--accent);
	color: var(--accent);
}

/* Mobile */

@media (max-width: 768px) {

	.nova-blog {
		padding-top: 24px;
		padding-bottom: 48px;
	}

	.nova-blog__title {
		font-size: 1.8rem;
	}

	.nova-blog__search {
		max-width: 100%;
	}

	.nova-post-card__body {
		padding: 18px;
	}

	.nova-post-card__title {
		font-size: 1.2rem;
	}
}
