/* Container: fill parent, no external margins to respect parent spacing */
.tj-articles-block {
	width: 100%;
	box-sizing: border-box;
}


/* Page title */
.tj-articles-title h1 {
	font-family: Lora, serif;
	font-weight: 600;
	font-size: 2.2rem;
	color: #2E6B68; /* turquoise */
	margin-bottom: 2rem;
}

/* Articles grid */
.tj-articles-list {
	display: grid;
	gap: 2rem;
	grid-template-columns: repeat(2, 1fr);
}

/* Single column variant when requested via shortcode attribute */
.tj-articles-list.tj-cols-1 {
	grid-template-columns: 1fr;
}

/* Individual card */
.tj-article-card {
	display: flex;
	flex-direction: column;
	background-color: #FEFCFA;
	border-radius: 6px;
	overflow: hidden;
}

/* Make full-card link behave like a block and inherit text color */
.tj-article-card,
.tj-article-card:link,
.tj-article-card:visited {
	text-decoration: none;
	color: inherit;
}

/* Image */
.tj-article-image img {
	width: 100%;
	height: 240px; /* normalized height */
	object-fit: cover;
	display: block;
}

/* Missing image placeholder keeps layout stable */
.tj-image-missing {
	width: 100%;
	height: 240px;
	background: #ececec linear-gradient(135deg, #f6f6f6 0%, #e3e3e3 100%);
}

/* Content */
.tj-article-content {
	padding: 1rem;
}
.tj-article-title {
	font-family: Lora, serif;
	font-weight: 600;
	font-size: 1.25rem;
	color: #2E6B68;
	margin-bottom: 0.25rem;
}
.tj-article-meta {
	font-family: IBM Plex Sans, sans-serif;
	font-size: 0.875rem;
	color: #656668;
	margin-bottom: 0.25rem;
	padding-bottom: 0 !important;
}
.tj-article-summary {
	font-family: IBM Plex Sans, sans-serif;
	font-size: 1rem;
	color: #0a0a0a;
	line-height: 1.6;
}

/* Tablet breakpoint: 980–768px */
@media (max-width: 980px) and (min-width: 768px) {
	.tj-articles-list {
		grid-template-columns: 1fr 1fr;
		gap: 1.5rem;
	}
	.tj-article-image img {
		height: 180px;
	}
	.tj-image-missing {
		height: 180px;
	}
	.tj-article-title {
		font-size: 1.15rem;
	}
}

/* Mobile breakpoint: <=767px */
@media (max-width: 767px) {
	.tj-articles-list {
		grid-template-columns: 1fr;
		gap: 1rem;
	}
	.tj-article-image img {
		height: 150px;
	}
	.tj-image-missing {
		height: 150px;
	}
	.tj-article-title {
		font-size: 1.1rem;
	}
}

/* No Divi-specific containment; respects whatever parent container/page template provides */

/* Pagination styles: bracketed links */
.tj-pagination {
	margin-top: 1.5rem;
}
.tj-pagination-list {
	list-style: none !important;
	padding: 0;
	margin: 0;
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
}
.tj-page-link {
	display: inline-block;
	font-family: IBM Plex Sans, sans-serif;
	font-size: 0.95rem;
	color: #2E6B68; /* turquoise */
	text-decoration: none;
	padding: 0.25rem 0.5rem;
	border: 1px solid #dcdcdc;
	border-radius: 4px;
	background: #ffffff;
}
.tj-page-link::before { content: '['; margin-right: 0.25rem; color: #888; }
.tj-page-link::after { content: ']'; margin-left: 0.25rem; color: #888; }
.tj-page-link:hover { background: #f6fbfa; border-color: #cddede; }
.tj-page-link:focus { outline: 2px solid #cddede; outline-offset: 2px; }

/* Latest posts widget (sidebar) */
.tj-latest-widget {
	margin-top: 1.5rem;
}
.tj-latest-list {
	list-style: none !important;
	padding: 0 !important;
	margin: 0 !important;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}
.tj-latest-item {
	padding-bottom: 0.5rem;
	border-bottom: 1px solid #eeeeee;
}
.tj-latest-title {
	display: inline-block;
	font-weight: 600;
	font-size: 0.95rem;
	color: #2E6B68; /* turquoise */
	text-decoration: none;
}
.tj-latest-title:hover { color: #1f4d4a; text-decoration: underline; }
.tj-latest-date {
	display: block;
	margin-top: 0.15rem;
	font-family: IBM Plex Sans, sans-serif;
	font-size: 0.85rem;
	color: #656668;
}