.pub-page {
	font-family: "Assistant", sans-serif;
	color: #808080;
	background: #fff;
}

/* Same content width as the Elementor pages (full width up to 1366px, 10px side gutter) */
.pub-container {
	max-width: 1366px;
	margin: 0 auto;
	padding: 0 10px;
}

/* Header image (same height as the other pages), the title sits below it */
.pub-hero {
	background-color: #484848;
	background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.2) 45%, rgba(0, 0, 0, 0.35) 100%), var(--pub-hero-image);
	background-size: cover;
	background-position: center 30%;
	min-height: 600px;
}

.pub-title {
	margin: 40px 0 0;
	font-size: 52px;
	line-height: 1.31;
	font-weight: 700;
	color: #808080;
}

.pub-title-single {
	font-size: 44px;
	line-height: 1.25;
	max-width: 1100px;
}

.pub-heading {
	padding-top: 20px;
}

.pub-heading .pub-title {
	margin-top: 20px;
}

.pub-date {
	display: block;
	margin-top: 10px;
	font-size: 20px;
	color: #808080;
}

/* Filters */
.pub-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin: 40px 0;
	padding: 20px;
	background: #efefef;
}

.pub-filter {
	flex: 1 1 190px;
	min-width: 0;
}

.pub-filter-search {
	flex: 0 1 220px;
}

.pub-filter-year {
	flex: 0 1 130px;
}

.pub-filter-actions {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 14px;
}

.pub-filters input,
.pub-filters select {
	width: 100%;
	height: 46px;
	padding: 0 14px;
	border: 1px solid #d4d4d4;
	border-radius: 0;
	background: #fff;
	color: #484848;
	font-family: inherit;
	font-size: 16px;
}

.pub-btn {
	height: 46px;
	padding: 0 28px;
	border: 0;
	background: #2a33c3;
	color: #fff;
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
}

.pub-btn:hover {
	background: #1f2796;
}

.pub-reset {
	color: #2a33c3;
	font-weight: 600;
}

/* Grid */
.pub-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
	margin-bottom: 40px;
}

.pub-card {
	display: flex;
	flex-direction: column;
	border: 1px solid #e3e3e3;
	background: #fff;
	color: inherit;
	text-decoration: none;
	transition: box-shadow 0.2s, transform 0.2s;
}

.pub-card:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
}

.pub-card-image {
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #efefef;
}

.pub-card-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pub-card-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #2a33c3, #5b64e6);
}

.pub-card-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 22px 24px 24px;
}

.pub-card-date {
	font-size: 15px;
	color: #808080;
}

.pub-card-title {
	margin: 8px 0 12px;
	font-size: 22px;
	line-height: 1.3;
	font-weight: 700;
	color: #484848;
}

.pub-card-excerpt {
	margin: 0 0 18px;
	font-size: 17px;
	line-height: 1.5;
}

.pub-card-more {
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	color: #2a33c3;
}

.pub-card-more img {
	width: 16px;
	height: auto;
}

.pub-empty {
	margin: 0 0 80px;
	font-size: 20px;
}

/* Pagination */
.pub-pagination {
	margin-bottom: 80px;
}

.pub-pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pub-pagination .page-numbers {
	display: block;
	min-width: 42px;
	padding: 10px 14px;
	border: 1px solid #d4d4d4;
	text-align: center;
	color: #484848;
	text-decoration: none;
}

.pub-pagination .page-numbers.current,
.pub-pagination a.page-numbers:hover {
	background: #2a33c3;
	border-color: #2a33c3;
	color: #fff;
}

/* Single */
.pub-single {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	gap: 56px;
	padding-top: 56px;
	padding-bottom: 90px;
}

.pub-featured {
	margin-bottom: 32px;
}

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

.pub-entry {
	font-size: 20px;
	line-height: 1.7;
}

.pub-entry h2,
.pub-entry h3,
.pub-entry h4 {
	color: #484848;
}

.pub-entry a {
	color: #2a33c3;
}

.pub-entry img {
	max-width: 100%;
	height: auto;
}

.pub-sidebar {
	align-self: start;
	position: sticky;
	top: 32px;
}

.pub-box {
	margin-bottom: 24px;
	padding: 24px 26px;
	background: #efefef;
}

.pub-box-title {
	margin: 0 0 14px;
	font-size: 15px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #808080;
}

.pub-box ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.pub-box li {
	padding: 8px 0;
	border-top: 1px solid #dcdcdc;
}

.pub-box li:first-child {
	border-top: 0;
	padding-top: 0;
}

.pub-box p {
	margin: 0;
}

.pub-box a,
.pub-back {
	color: #2a33c3;
	font-size: 19px;
	font-weight: 600;
	text-decoration: none;
}

.pub-box a:hover,
.pub-back:hover {
	text-decoration: underline;
}

/* Related articles */
.pub-related {
	padding: 64px 0 90px;
	background: #f7f7f7;
}

.pub-related-title {
	margin: 0 0 32px;
	font-size: 36px;
	font-weight: 700;
	color: #484848;
}

.pub-related .pub-grid {
	margin-bottom: 0;
}

/* Keep link colors unchanged after a link has been visited */
.pub-page .pub-card:visited {
	color: inherit;
}

.pub-page .pub-reset:visited,
.pub-page .pub-back:visited,
.pub-page .pub-box a:visited,
.pub-page .pub-entry a:visited {
	color: #2a33c3;
}

.pub-page .pub-pagination a.page-numbers:visited {
	color: #484848;
}

.pub-page .pub-pagination a.page-numbers:hover:visited {
	color: #fff;
}

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

	.pub-single {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.pub-sidebar {
		position: static;
	}
}

@media (max-width: 640px) {
	.pub-filter-actions {
		flex: 1 1 100%;
		width: 100%;
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
		text-align: center;
	}

	.pub-filters .pub-btn {
		display: block;
		width: 100%;
	}
}

@media (max-width: 480px) {
	.pub-filters {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
		padding: 14px;
	}

	.pub-filter,
	.pub-filter-year {
		flex: none;
	}

	.pub-filter-search,
	.pub-filter-actions {
		grid-column: 1 / -1;
	}

	.pub-filters select {
		padding: 0 8px;
		font-size: 15px;
	}
}

@media (max-width: 640px) {
	.pub-hero {
		min-height: 525px;
	}

	.pub-title {
		font-size: 26px;
	}

	.pub-title-single {
		font-size: 26px;
	}

	.pub-grid {
		grid-template-columns: 1fr;
	}

	.pub-filters {
		margin: 28px 0;
	}

	.pub-single {
		padding-top: 32px;
		padding-bottom: 56px;
	}

	.pub-entry {
		font-size: 17px;
		line-height: 1.65;
	}

	.pub-date {
		font-size: 17px;
	}

	.pub-related {
		padding: 40px 0 56px;
	}

	.pub-related-title {
		font-size: 26px;
		margin-bottom: 24px;
	}
}
