/**
 * PTJ Auto Jobs — blog & sidebar design (blue brand theme)
 * Loaded on blog home, archives and single posts.
 */

/* ---------- Blog archive cards ---------- */
.blog .entry, .archive .entry {
	background: #fff;
	border: 1px solid #e8edf5;
	border-radius: 18px;
	overflow: hidden;
	transition: box-shadow .25s ease, transform .25s ease;
}

.blog .entry:hover, .archive .entry:hover {
	box-shadow: 0 14px 34px rgba(21, 101, 216, .12);
	transform: translateY(-3px);
}

.blog .entry .post-thumbnail img, .archive .entry .post-thumbnail img {
	border-radius: 0;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.blog .entry-content-wrap, .archive .entry-content-wrap {
	padding: 22px 24px 26px;
}

.blog .entry .entry-title, .archive .entry .entry-title {
	font-size: 1.25rem;
	line-height: 1.4;
	margin: 10px 0 8px;
}

.blog .entry .entry-title a, .archive .entry .entry-title a {
	color: #101828;
	text-decoration: none;
}

.blog .entry .entry-title a:hover, .archive .entry .entry-title a:hover {
	color: #1565d8;
}

/* category badges on cards */
.blog .entry .category-links a, .archive .entry .category-links a,
.blog .entry .entry-meta .category-links a {
	display: inline-block;
	background: #e9f1fd;
	color: #1565d8;
	font-size: .75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	padding: 4px 12px;
	border-radius: 999px;
	text-decoration: none;
	margin: 0 6px 6px 0;
}

.blog .entry .entry-meta, .archive .entry .entry-meta {
	font-size: .83rem;
	color: #98a2b3;
}

/* read more */
.blog .entry .more-link, .archive .entry .more-link {
	display: inline-block;
	margin-top: 12px;
	background: #1565d8;
	color: #fff !important;
	font-weight: 600;
	font-size: .92rem;
	padding: 10px 24px;
	border-radius: 10px;
	text-decoration: none;
	transition: background .2s ease;
}

.blog .entry .more-link:hover, .archive .entry .more-link:hover {
	background: #0d47a1;
}

/* ---------- Sidebar design ---------- */
#secondary .widget {
	background: #fff;
	border: 1px solid #e8edf5;
	border-radius: 16px;
	padding: 22px;
	margin-bottom: 22px;
	box-shadow: 0 4px 14px rgba(16, 24, 40, .04);
}

#secondary .widget-title {
	font-size: 1.05rem;
	font-weight: 700;
	color: #101828;
	margin: 0 0 16px;
	padding-left: 12px;
	border-left: 4px solid #1565d8;
}

/* search widget */
#secondary .widget_search .search-form,
#secondary .widget_block .wp-block-search {
	display: flex;
	gap: 8px;
}

#secondary .widget_search input[type="search"],
#secondary .wp-block-search input {
	flex: 1;
	border: 1px solid #dbe3f0;
	border-radius: 10px;
	padding: 10px 14px;
	font-size: .92rem;
}

#secondary .widget_search button,
#secondary .wp-block-search button {
	background: #1565d8;
	color: #fff;
	border: none;
	border-radius: 10px;
	padding: 10px 18px;
	font-weight: 600;
	cursor: pointer;
}

#secondary .widget_search button:hover,
#secondary .wp-block-search button:hover {
	background: #0d47a1;
}

/* recent posts with thumbnails */
#secondary .widget_recent_entries ul,
#secondary .wp-block-latest-posts {
	list-style: none;
	margin: 0;
	padding: 0;
}

#secondary .widget_recent_entries li,
#secondary .wp-block-latest-posts li {
	display: flex;
	gap: 12px;
	align-items: center;
	padding: 10px 0;
	border-bottom: 1px solid #f1f4f9;
	margin: 0;
}

#secondary .widget_recent_entries li:last-child,
#secondary .wp-block-latest-posts li:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

#secondary .widget_recent_entries li img,
#secondary .wp-block-latest-posts__featured-image img {
	width: 64px;
	height: 64px;
	object-fit: cover;
	border-radius: 10px;
	flex-shrink: 0;
}

#secondary .widget_recent_entries a,
#secondary .wp-block-latest-posts a {
	color: #1d2939;
	font-weight: 600;
	font-size: .92rem;
	line-height: 1.45;
	text-decoration: none;
}

#secondary .widget_recent_entries a:hover,
#secondary .wp-block-latest-posts a:hover {
	color: #1565d8;
}

#secondary .widget_recent_entries .post-date,
#secondary .wp-block-latest-posts__post-date {
	font-size: .78rem;
	color: #98a2b3;
}

/* categories / archives lists */
#secondary .widget_categories ul, #secondary .widget_archive ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

#secondary .widget_categories li, #secondary .widget_archive li {
	padding: 8px 0;
	border-bottom: 1px solid #f1f4f9;
}

#secondary .widget_categories li:last-child, #secondary .widget_archive li:last-child {
	border-bottom: none;
}

#secondary .widget_categories a, #secondary .widget_archive a {
	color: #344054;
	text-decoration: none;
	font-size: .93rem;
	display: flex;
	justify-content: space-between;
}

#secondary .widget_categories a:hover, #secondary .widget_archive a:hover {
	color: #1565d8;
}

/* single post typography polish */
.single-post .entry-content h2 {
	font-size: 1.5rem;
	margin: 2.2em 0 .9em;
	padding-left: 14px;
	border-left: 4px solid #1565d8;
	color: #101828;
}

.single-post .entry-content h3 {
	font-size: 1.15rem;
	color: #1d2939;
	margin: 1.6em 0 .6em;
}

.single-post .entry-content a {
	color: #1565d8;
}

.single-post .entry-content ul {
	margin: 1em 0 1.6em;
}

@media (max-width: 768px) {
	#secondary .widget {
		padding: 18px;
	}
}
