/* Navia Blog widgets: post cards, grid, load more, featured image, TOC,
   sticky sidebar helper. */

/* Grid */
.navia-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}

/* Card */
.navia-card {
	display: flex;
	flex-direction: column;
	background: #FFFFFF;
	border: 1px solid #E7E1D6;
	border-radius: 14px;
	overflow: hidden;
	transition: transform .2s ease, box-shadow .2s ease;
}

.navia-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 28px rgba(22, 50, 59, .10);
}

.navia-card__media {
	display: block;
	position: relative;
	padding-top: 58%;
	background: #EFE9DE;
	overflow: hidden;
}

.navia-card__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .35s ease;
}

.navia-card:hover .navia-card__media img {
	transform: scale(1.04);
}

.navia-card__placeholder {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, #EFE9DE 0%, #E2D9C8 100%);
}

.navia-card__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 20px 22px 24px;
	flex-grow: 1;
}

.navia-card__meta {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
}

.navia-card__cat {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	font-weight: 600;
	letter-spacing: .02em;
}

.navia-card__title {
	margin: 0;
	font-size: 21px;
	line-height: 1.3;
}

.navia-card__title a {
	text-decoration: none;
	transition: color .2s ease;
}

.navia-card__excerpt {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
}

.navia-card__more {
	margin-top: auto;
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
}

.navia-card__more:hover {
	text-decoration: underline;
}

/* Load more */
.navia-load-more-wrap {
	display: flex;
	justify-content: center;
	margin-top: 36px;
}

.navia-load-more {
	border: 0;
	cursor: pointer;
	padding: 14px 32px;
	font-size: 15px;
	font-weight: 600;
	border-radius: 999px;
	transition: background-color .2s ease, transform .15s ease;
}

.navia-load-more:active {
	transform: scale(.98);
}

.navia-load-more[disabled] {
	opacity: .6;
	cursor: default;
}

.navia-empty {
	text-align: center;
	padding: 40px 0;
}

/* Featured image */
.navia-featured-image {
	margin: 0;
	overflow: hidden;
}

.navia-featured-image img {
	display: block;
	width: 100%;
	height: auto;
}

.navia-featured-image--empty {
	padding: 40px;
	border: 1px dashed #ccc;
	text-align: center;
	border-radius: 16px;
}

/* Post content */
.navia-post-content {
	font-size: 17px;
	line-height: 1.75;
}

.navia-post-content h2 {
	margin: 1.6em 0 .6em;
	line-height: 1.25;
}

.navia-post-content h3 {
	margin: 1.3em 0 .5em;
	line-height: 1.3;
}

.navia-post-content p {
	margin: 0 0 1.15em;
}

.navia-post-content img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
}

.navia-post-content ul,
.navia-post-content ol {
	margin: 0 0 1.15em;
	padding-left: 1.4em;
}

.navia-post-content blockquote {
	margin: 1.4em 0;
	padding: 14px 22px;
	border-left: 4px solid #C4572E;
	background: rgba(196, 87, 46, .06);
	border-radius: 0 10px 10px 0;
}

.navia-post-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 1.15em;
}

.navia-post-content th,
.navia-post-content td {
	border: 1px solid #E7E1D6;
	padding: 10px 12px;
	text-align: left;
}

/* Table of contents */
.navia-toc {
	border: 1px solid #E7E1D6;
	border-radius: 14px;
	padding: 20px 24px;
	margin-bottom: 28px;
}

.navia-toc__title {
	margin: 0 0 10px;
	font-weight: 700;
	font-size: 17px;
}

.navia-toc__list {
	margin: 0;
	padding-left: 1.2em;
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 15px;
}

.navia-toc__list .navia-toc__sub {
	padding-left: 1.2em;
	font-size: 14px;
	margin-top: 4px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	list-style: circle;
}

.navia-toc a {
	text-decoration: none;
	transition: color .2s ease;
}

/* Smooth anchor scrolling with offset for the heading targets */
.navia-post-content [id^="navia-h-"] {
	scroll-margin-top: 110px;
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

/* Sticky sidebar helper: add the CSS class "navia-sticky" to the sidebar
   container (Advanced > CSS Classes) */
@media (min-width: 1025px) {
	.navia-sticky {
		position: sticky !important;
		top: 100px;
		align-self: flex-start;
	}
}

/* Post meta */
.navia-post-meta {
	font-size: 14px;
}

.navia-post-meta a {
	color: inherit;
	text-decoration: none;
}

.navia-post-meta a:hover {
	text-decoration: underline;
}

/* Breadcrumbs */
.navia-breadcrumbs {
	font-size: 14px;
}

.navia-breadcrumbs a {
	text-decoration: none;
}

.navia-breadcrumbs a:hover {
	text-decoration: underline;
}

.navia-breadcrumbs__sep {
	opacity: .5;
	margin: 0 2px;
}

/* Responsive grid */
@media (max-width: 1024px) {
	.navia-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 767px) {
	.navia-grid {
		grid-template-columns: 1fr;
	}
}
