/*-- WPJB SEARCH --*/
#wpjb_submit {
	padding-top: 12px !important;
	padding-bottom: 12px !important;
}


.wpjb-text-box h3 {
	margin: 10px 0 !important;
}

.wpjb .wpjb-text ul {
	margin: 0 0 15px 30px !important;
}

.wpjb-row-meta-wpjobboard_am_data {
	margin-bottom: 20px !important;
}

/*-- WPJB TOP HEADER STYLES --*/
.wpjb-top-header {
	display: flex;
	align-items: flex-start;
	gap: 24px;
	margin-bottom: 32px;
	padding: 24px;
	background: #ffffff;
	border-radius: 8px;
	border: 1px solid #e2e8f0;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.wpjb-top-header-image {
	flex: 0 0 120px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.wpjb-top-header-image img {
	width: 120px;
	height: 120px;
	object-fit: contain;
	border-radius: 8px;
	border: 1px solid #e2e8f0;
	background: #ffffff;
	padding: 12px;
}

.wpjb-top-header-image .wpjb-logo-default-size {
	font-size: 48px;
	color: #94a3b8;
	width: 120px;
	height: 120px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f8fafc;
	border-radius: 8px;
	border: 1px solid #e2e8f0;
}

.wpjb-top-header-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.wpjb-top-header-title {
	display: block;
	font-size: 1.5em;
	font-weight: 600;
	color: #111827;
	margin-bottom: 8px;
}

.wpjb-top-header-subtitle {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.wpjb-top-header-subtitle li {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #6b7280;
	font-size: 0.95em;
}

.wpjb-top-header-subtitle .wpjb-glyphs {
	color: #9ca3af;
	font-size: 16px;
}

.wpjb-top-header-subtitle a {
	color: #3b82f6;
	text-decoration: none;
	transition: color 0.2s ease;
}

.wpjb-top-header-subtitle a:hover {
	color: #2563eb;
	text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.wpjb-top-header {
		flex-direction: column;
		align-items: center;
		text-align: center;
		gap: 16px;
		padding: 16px;
	}

	.wpjb-top-header-image {
		flex: none;
	}

	.wpjb-top-header-content {
		align-items: center;
	}
}


/*-- CUSTOM WPJB CARD --*/
.custom-wpjb-card {
	display: block;
	background: #ffffff;
	border-radius: 6px;
	border: 1px solid #e3e5e8;
	padding: 8px;
	margin-bottom: -1px;
	/* Overlap borders */
	text-decoration: none;
	color: inherit;
	transition: all 0.25s ease;
	position: relative;
	margin-bottom: 10px;
}

.custom-wpjb-card:hover {
	background: #f8fafc;
	transform: translate(-5px, -5px);
	box-shadow: 5px 5px 0 rgba(0, 0, 0, 1);
	z-index: 1;
	border-color: transparent;
	border-radius: 6px;
	border-color: #000;
	border-width: 1px;
}

.wpjb-grid .wpjb-grid-row {
	padding: 0 !important;
	border-bottom: none !important;
}

.custom-wpjb-card .wpjb-featured {
	background: transparent !important;
}

.custom-wpjb-card [class*='wpjb-col-'] {
	float: unset !important;
}

.ast-single-post .entry-content a {
	text-decoration: none;
}

.custom-wpjb-card .wpjb-img-36 {
	width: 80px !important;
	height: 50px !important;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #ffffff;
	border-radius: 4px;
	overflow: hidden;
}

.custom-wpjb-card .wpjb-img-36 img {
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 50px;
	object-fit: contain;
}

.custom-wpjb-card .wpjb-line-major {
	display: block;
	font-size: 1.25em;
	font-weight: 600;
	color: #111827;
	margin-bottom: 8px;
}

.custom-wpjb-card .wpjb-sub {
	display: block;
	color: #6b7280;
	font-size: 0.95em;
	margin-bottom: 12px;
}

.custom-wpjb-card .wpjb-col-location {
	flex: 1;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
	margin-top: 4px;
}

.custom-wpjb-card .tag {
	display: inline-flex;
	align-items: center;
	padding: 6px 12px;
	font-size: 12px;
	transition: all 0.2s ease;
	background: #f1f5f9;
	border-radius: 20px;
	margin: 2px 4px 2px 0;
}

.custom-wpjb-card .wpjb-bulb {
	display: inline-flex;
	align-items: center;
	background: #dcfce7;
	color: #166534;
	padding: 2px 8px;
	border-radius: 4px;
	font-size: 0.75em;
	font-weight: 500;
	margin-left: 8px;
}

.custom-wpjb-card .wpjb-desc {
	margin-top: 16px;
	color: #6b7280;
	font-size: 0.95em;
	line-height: 1.6;
	max-width: 85%;
}

/*-- INLINE LOGO AND TITLE LAYOUT --*/
/* Make logo and job title inline for most columns */
.wpjb-grid-row .wpjb-col-logo,
.wpjb-grid-row .wpjb-col-title {
	display: inline-block;
	vertical-align: baseline;
}

.wpjb-grid-row .wpjb-col-logo {
	margin-bottom: 0;
}

/* Override for col-4 columns - keep logo above */
.col-4 .wpjb-grid-row .wpjb-col-logo,
.col-4 .wpjb-grid-row .wpjb-col-title {
	display: block;
}

.col-4 .wpjb-grid-row .wpjb-col-logo {
	margin-bottom: 10px;
}

.col-4 .wpjb-grid-row .wpjb-col-title {
	width: 100%;
}

/*-- COL-4 --*/
.col-4 .custom-wpjb-card {
	width: calc(33.333% - 20px);
	display: inline-block;
	vertical-align: top;
	margin-right: 20px;
	margin-bottom: 20px;
}

.col-4 .custom-wpjb-card:nth-child(3n) {
	margin-right: 0;
}

/* Vertical layout for col-4 cards */
.col-4 .custom-wpjb-card .wpjb-grid-row {
	display: block;
	gap: 0;
}

.col-4 .custom-wpjb-card .wpjb-col-logo {
	flex: none;
	text-align: center;
	margin-bottom: 16px;
}

.col-4 .custom-wpjb-card .wpjb-col-title {
	flex: none;
	margin-bottom: 12px;
}

.col-4 .custom-wpjb-card .wpjb-col-location {
	flex: none;
	margin-top: 0;
}

.col-4 .custom-wpjb-card .wpjb-desc {
	display: none;
}

/*-- RESPONSIVE DESIGN --*/
@media (max-width: 768px) {
	.custom-wpjb-card {
		width: 100% !important;
		margin-right: 0 !important;
		margin-bottom: 15px !important;
	}

	.col-4 .custom-wpjb-card {
		width: 100% !important;
		margin-right: 0 !important;
	}

	.custom-wpjb-card .wpjb-grid-row {
		flex-direction: column;
	}

	.custom-wpjb-card .wpjb-col-logo,
	.custom-wpjb-card .wpjb-col-title,
	.custom-wpjb-card .wpjb-col-location {
		width: 100% !important;
		margin-bottom: 10px;
	}

	.custom-wpjb-card .wpjb-col-logo {
		text-align: center;
	}
}

@media (min-width: 320px) and (max-width: 760px) {
	.custom-wpjb-card .wpjb-col-location {
		text-align: left !important;
		width: auto !important;
	}
}