/**
 * PTJ Auto Jobs — front-end styles
 * Modern jobs-board styling: cards, badges, buttons, responsive.
 */

.ptj-job-list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
	margin: 24px 0;
}

/* Redesigned job card: avatar + body + arrow */
.ptj-job-card {
	display: flex;
	align-items: center;
	gap: 18px;
	background: #fff;
	border: 1px solid #e7eaee;
	border-radius: 16px;
	padding: 18px 20px;
	transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}

.ptj-job-card:hover {
	box-shadow: 0 10px 28px rgba(21, 101, 216, .10);
	transform: translateY(-2px);
	border-color: #bfd9f8;
}

.ptj-job-avatar {
	flex: 0 0 52px;
	width: 52px;
	height: 52px;
	border-radius: 14px;
	background: linear-gradient(135deg, #1565d8, #42a5f5);
	color: #fff;
	font-size: 1.4rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ptj-job-body {
	flex: 1 1 auto;
	min-width: 0;
}

.ptj-job-title {
	margin: 0 0 6px;
	font-size: 1.08rem;
	line-height: 1.4;
}

.ptj-job-title a {
	color: #101828;
	text-decoration: none;
}

.ptj-job-title a:hover {
	color: #1565d8;
}

.ptj-job-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	align-items: center;
	font-size: .88rem;
	color: #667085;
	margin-bottom: 8px;
}

.ptj-company { font-weight: 600; color: #344054; }
.ptj-location::before { content: "\1F4CD\00A0"; }

.ptj-job-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 12px;
	align-items: center;
}

.ptj-salary { color: #1565d8; font-weight: 700; font-size: .92rem; }

.ptj-job-view {
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid #e7eaee;
	color: #1565d8;
	font-size: 1.3rem;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.ptj-job-card:hover .ptj-job-view {
	background: #1565d8;
	border-color: #1565d8;
	color: #fff;
}

.ptj-job-date {
	font-size: .82rem;
	color: #98a2b3;
}

/* Live stats (hero) */
.ptj-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 36px;
	margin: 22px 0 6px;
}

.ptj-stat {
	display: flex;
	flex-direction: column;
}

.ptj-stat-num {
	font-size: 1.7rem;
	font-weight: 800;
	color: #fff;
	line-height: 1.2;
	text-shadow: 0 1px 8px rgba(0, 0, 0, .25);
}

.ptj-stat-label {
	font-size: .82rem;
	color: rgba(255, 255, 255, .82);
	letter-spacing: .02em;
}

/* Hero polish when the cover carries .ptj-hero */
.ptj-hero .wp-block-cover__inner-container > h1 {
	font-size: clamp(2rem, 4.5vw, 3.1rem);
	letter-spacing: -0.01em;
	text-shadow: 0 2px 14px rgba(0, 0, 0, .3);
}

.ptj-hero .ptj-search-form {
	background: #fff;
	border-radius: 16px;
	padding: 10px;
	box-shadow: 0 14px 40px rgba(0, 0, 0, .22);
	margin: 24px auto;
	max-width: 720px;
}

.ptj-hero .ptj-search-form .ptj-input {
	border: none;
	background: transparent;
}

.ptj-hero .ptj-search-form .ptj-input:focus {
	outline: 2px solid #1565d8;
	outline-offset: -2px;
}

.ptj-hero .ptj-search-form .ptj-btn {
	border-radius: 10px;
}

.ptj-badge {
	display: inline-block;
	background: #e9f1fd;
	color: #1565d8;
	border: 1px solid #bfd9f8;
	border-radius: 999px;
	padding: 2px 12px;
	font-size: .78rem;
	font-weight: 600;
	white-space: nowrap;
}

.ptj-badge-remote {
	background: #eef4ff;
	color: #2447c4;
	border-color: #ccd9f7;
}

.ptj-job-date,
.ptj-job-excerpt {
	margin-top: 8px;
	font-size: .88rem;
	color: #6b7280;
}

/* Search form */
.ptj-search-form {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 20px 0;
}

.ptj-search-form .ptj-input {
	flex: 1 1 220px;
	padding: 12px 14px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 1rem;
}

.ptj-btn {
	background: #1565d8;
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 12px 26px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: background .2s ease;
}

.ptj-btn:hover { background: #0d47a1; color: #fff; }

/* Single job */
.ptj-single { max-width: 860px; margin: 0 auto; }

.ptj-single-layout {
	max-width: 1180px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 32px;
	align-items: start;
}

.ptj-sidebar .ptj-widget {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 20px;
	margin: 24px 0;
}

.ptj-sidebar .ptj-widget:first-child { margin-top: 24px; }

.ptj-widget-title {
	margin: 0 0 12px;
	font-size: 1.05rem;
	color: #111827;
}

.ptj-widget p { font-size: .9rem; color: #4b5563; margin: 0 0 12px; }

.ptj-widget-list { list-style: none; margin: 0; padding: 0; }

.ptj-widget-list li {
	padding: 7px 0;
	border-bottom: 1px solid #f3f4f6;
	font-size: .92rem;
}

.ptj-widget-list li:last-child { border-bottom: none; }

.ptj-widget-list a { color: #1f2937; text-decoration: none; }
.ptj-widget-list a:hover { color: #1565d8; }
.ptj-count { color: #9ca3af; font-size: .82rem; }

.ptj-btn-block { display: block; text-align: center; text-decoration: none; }

.ptj-widget-cta {
	background: #e9f1fd;
	border-color: #bfd9f8;
}

@media (max-width: 900px) {
	.ptj-single-layout { grid-template-columns: 1fr; }
	.ptj-sidebar .ptj-widget:first-child { margin-top: 0; }
}

.ptj-single-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	padding: 32px;
	margin: 24px 0;
}

.ptj-single-title { margin: 0 0 20px; font-size: 1.7rem; line-height: 1.3; }

.ptj-meta-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 14px;
	background: #f9fafb;
	border: 1px solid #e9edf5;
	border-radius: 10px;
	padding: 18px;
	margin-bottom: 24px;
}

.ptj-meta-label {
	display: block;
	font-size: .75rem;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: #9ca3af;
	margin-bottom: 4px;
}

.ptj-meta-value { font-weight: 600; color: #111827; }

.ptj-desc { line-height: 1.75; color: #1f2937; }
.ptj-desc p { margin-bottom: 1em; }

.ptj-apply-wrap { text-align: center; margin: 32px 0 12px; }

.ptj-apply-btn {
	display: inline-block;
	background: #1565d8;
	color: #fff;
	font-size: 1.15rem;
	font-weight: 700;
	padding: 15px 56px;
	border-radius: 10px;
	text-decoration: none;
	transition: background .2s ease, transform .2s ease;
}

.ptj-apply-btn:hover { background: #0d47a1; color: #fff; transform: translateY(-1px); }

.ptj-apply-note { font-size: .85rem; color: #6b7280; margin-top: 10px; }
.ptj-source { font-size: .85rem; color: #9ca3af; text-align: right; }

.ptj-related { margin: 32px 0; }
.ptj-related h2 { font-size: 1.3rem; margin-bottom: 12px; }

/* Archive */
.ptj-archive { max-width: 960px; margin: 0 auto; }
.ptj-archive-head { margin: 24px 0; }
.ptj-archive-title { font-size: 1.8rem; margin-bottom: 8px; }
.ptj-pagination { margin: 28px 0; text-align: center; }

.ptj-no-jobs {
	background: #fff8e6;
	border: 1px solid #f0dfae;
	border-radius: 10px;
	padding: 18px;
	color: #7a5c14;
}

.ptj-fallback-note {
	background: #e9f1fd;
	border: 1px solid #b3cdf7;
	border-radius: 10px;
	padding: 14px 18px;
	color: #1565d8;
	margin-bottom: 18px;
}

/* ---------------------------------------------------------
 * Hub / city / category page design system
 * (applies to classic-content landing pages; block headings
 *  and block lists used by the editors are left untouched)
 * ------------------------------------------------------- */

/* Section headings with green accent bar */
.entry-content > h2:not(.wp-block-heading):not(.kt-adv-heading) {
	font-size: 1.45rem;
	line-height: 1.35;
	color: #111827;
	margin: 2.4em 0 1em;
	padding-left: 14px;
	border-left: 4px solid #1565d8;
}

/* FAQ / sub-heading cards */
.entry-content > h3:not(.wp-block-heading):not(.kt-adv-heading) {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-bottom: none;
	border-radius: 12px 12px 0 0;
	padding: 16px 20px 8px;
	margin: 1.6em 0 0;
	font-size: 1.05rem;
	line-height: 1.5;
	color: #111827;
}

.entry-content > h3:not(.wp-block-heading):not(.kt-adv-heading) + p {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-top: none;
	border-radius: 0 0 12px 12px;
	padding: 0 20px 18px;
	margin: 0 0 0.5em;
	color: #4b5563;
	line-height: 1.75;
}

/* Link-card grids (related roles / cities / tips) */
.entry-content > ul:not(.wp-block-list) {
	list-style: none;
	padding: 0;
	margin: 1.2em 0 2em;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 10px;
}

.entry-content > ul:not(.wp-block-list) > li {
	margin: 0;
	padding: 0;
}

.entry-content > ul:not(.wp-block-list) > li > a {
	display: block;
	background: #f9fafb;
	border: 1px solid #e8edf5;
	border-radius: 10px;
	padding: 12px 16px;
	text-decoration: none;
	color: #1f2937;
	font-weight: 500;
	font-size: .95rem;
	line-height: 1.5;
	transition: border-color .15s ease, background .15s ease, color .15s ease;
}

.entry-content > ul:not(.wp-block-list) > li > a:hover {
	border-color: #1565d8;
	background: #e9f1fd;
	color: #1565d8;
}

/* Plain (non-link) list items become soft cards too */
.entry-content > ul:not(.wp-block-list) > li:not(:has(> a)) {
	background: #f9fafb;
	border: 1px solid #e8edf5;
	border-radius: 10px;
	padding: 12px 16px;
	font-size: .95rem;
	line-height: 1.6;
	color: #374151;
}

/* Intro paragraph lead */
.entry-content > p:first-of-type {
	font-size: 1.08rem;
	line-height: 1.8;
	color: #374151;
}



@media (max-width: 600px) {
	.ptj-single-card { padding: 20px; }
	.ptj-apply-btn { width: 100%; padding: 15px 20px; box-sizing: border-box; }
	.ptj-search-form .ptj-input { flex: 1 1 100%; }
	.ptj-search-form .ptj-btn { width: 100%; }
}

/* Related searches (internal linking) on single job pages */
.ptj-related-searches {
	margin: 32px 0 0;
}

.ptj-related-searches h2 {
	font-size: 1.3rem;
	color: #101828;
	margin: 0 0 16px;
	padding-left: 12px;
	border-left: 4px solid #1565d8;
}

.ptj-related-searches .ptj-link-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ptj-related-searches .ptj-link-grid a {
	display: block;
	background: #f8fafd;
	border: 1px solid #e8edf5;
	border-radius: 10px;
	padding: 12px 14px;
	color: #1d2939;
	font-weight: 600;
	font-size: .9rem;
	text-decoration: none;
	transition: all .2s ease;
}

.ptj-related-searches .ptj-link-grid a:hover {
	background: #e9f1fd;
	border-color: #1565d8;
	color: #1565d8;
}

/* Header "Post a Job" button */
.ptj-post-job-btn > a {
	background: #1565d8 !important;
	color: #fff !important;
	border-radius: 999px !important;
	padding: 10px 22px !important;
	font-weight: 700 !important;
	transition: background .2s ease, transform .2s ease;
}

.ptj-post-job-btn > a:hover {
	background: #0d47a1 !important;
	color: #fff !important;
	transform: translateY(-1px);
}

/* Standalone header Post-a-Job button (right side) */
.ptj-header-post-job {
	display: inline-block;
	background: #1565d8 !important;
	color: #fff !important;
	border-radius: 999px !important;
	padding: 10px 24px !important;
	font-weight: 700 !important;
	font-size: .95rem;
	text-decoration: none !important;
	margin-left: auto;
	white-space: nowrap;
	transition: background .2s ease, transform .2s ease;
	flex-shrink: 0;
}

.ptj-header-post-job:hover {
	background: #0d47a1 !important;
	color: #fff !important;
	transform: translateY(-1px);
}

@media (max-width: 768px) {
	.ptj-header-post-job {
		padding: 8px 16px !important;
		font-size: .85rem;
	}
}

/* ---------- Homepage restaurant section ---------- */
.ptj-home-rest-section {
	background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
	border-radius: 20px;
	padding: 40px 32px;
	margin: 40px 0;
	text-align: center;
}

.ptj-home-rest-section h2 {
	font-size: 1.8rem;
	margin: 0 0 10px;
	color: #101828;
}

.ptj-home-rest-section p {
	color: #667085;
	max-width: 600px;
	margin: 0 auto 20px;
}

.ptj-home-rest-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	margin-bottom: 24px;
}

.ptj-home-rest-chip {
	background: #fff;
	border: 1px solid #fed7aa;
	border-radius: 999px;
	padding: 8px 20px;
	font-weight: 600;
	font-size: .9rem;
	color: #9a3412;
	text-decoration: none;
	transition: all .2s ease;
}

.ptj-home-rest-chip:hover {
	background: #ea580c;
	border-color: #ea580c;
	color: #fff;
}

.ptj-home-rest-cta {
	display: inline-block;
	background: #ea580c;
	color: #fff !important;
	border-radius: 999px;
	padding: 14px 36px;
	font-weight: 700;
	font-size: 1.05rem;
	text-decoration: none !important;
	transition: background .2s ease;
}

.ptj-home-rest-cta:hover {
	background: #c2410c;
	color: #fff !important;
}

/* ---------- Brand-matched dropdown submenu ---------- */
.site-header .sub-menu,
#masthead .sub-menu,
.main-navigation .sub-menu {
	background: linear-gradient(180deg, #1565d8 0%, #0d47a1 100%) !important;
	border-radius: 0 0 12px 12px !important;
	border: none !important;
	box-shadow: 0 12px 28px rgba(13, 71, 161, .25) !important;
	padding: 8px !important;
	min-width: 230px !important;
}

.site-header .sub-menu li a,
#masthead .sub-menu li a,
.main-navigation .sub-menu li a {
	color: #fff !important;
	font-weight: 600 !important;
	font-size: .88rem !important;
	padding: 12px 18px !important;
	border-radius: 8px !important;
	text-transform: uppercase;
	letter-spacing: .3px;
}

.site-header .sub-menu li a:hover,
#masthead .sub-menu li a:hover,
.main-navigation .sub-menu li a:hover {
	background: rgba(255, 255, 255, .18) !important;
	color: #fff !important;
}

/* ---------- Brand dropdown: override Kadence variables (v1.0.26 fix) ---------- */
.site-header .main-navigation .sub-menu,
.site-header .main-navigation ul.sub-menu,
#masthead .main-navigation .sub-menu,
header .sub-menu {
	background: #1565d8 !important;
	background: linear-gradient(180deg, #1565d8 0%, #0d47a1 100%) !important;
}

.site-header .main-navigation .sub-menu li a,
#masthead .main-navigation .sub-menu li a {
	color: #ffffff !important;
}

.site-header .main-navigation .sub-menu li a:hover,
#masthead .main-navigation .sub-menu li a:hover {
	background: rgba(255,255,255,.2) !important;
	color: #ffffff !important;
}
