/**
 * Job Listings Styles - Enhanced Split Layout
 *
 * @package Together_Job_Board
 * @since 1.0.0
 */

/* Hide page title and date on jobs page when job listings shortcode is present */
body.page:has(.tjb-job-listings-page-enhanced) .page-content .page-header,
body.page:has(.tjb-job-listings-page-enhanced) .entry-content .page-header {
	display: none !important;
}

/* Override theme constraints - allow full width breakouts */
.site-main .entry-content .tjb-job-listings-page-enhanced,
.entry-content .tjb-job-listings-page-enhanced,
.together-page .tjb-job-listings-page-enhanced,
.container .tjb-job-listings-page-enhanced,
.page-content .tjb-job-listings-page-enhanced,
.page-content-inner .tjb-job-listings-page-enhanced {
	max-width: none !important;
	width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

.tjb-job-listings-page-enhanced {
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0;
	background: #fff;
	box-sizing: border-box;
	margin-top: 0 !important;
	padding-top: 0 !important;
}

/* Allow parent containers to handle full-width children and remove max-width constraint */
body:has(.tjb-job-listings-page-enhanced) .together-page {
	max-width: none !important;
	width: 100% !important;
	padding: 0 !important;
	margin-top: 0 !important;
	overflow-x: visible !important;
}

body:has(.tjb-job-listings-page-enhanced) .container,
body:has(.tjb-job-listings-page-enhanced) .page-content,
body:has(.tjb-job-listings-page-enhanced) .entry-content {
	overflow-x: visible !important;
}

/* Remove top margin from page content containers */
body:has(.tjb-job-listings-page-enhanced) .page-content,
body:has(.tjb-job-listings-page-enhanced) .entry-content,
body:has(.tjb-job-listings-page-enhanced) .entry-summary {
	margin-top: 0 !important;
}

/* Hero Header Section - Force Full Width by breaking out of containers */
.tjb-jobs-hero-header {
	background: #F0FDF4; /* Light green background */
	padding: 80px 0 60px;
	color: #1a1a1a;
	width: 100vw !important;
	position: relative;
	left: 50% !important;
	right: auto !important;
	margin-left: -50vw !important;
	margin-right: 0 !important;
	box-sizing: border-box;
	overflow: hidden;
}

/* Add soft blob shapes to hero header */
.tjb-jobs-hero-header::before,
.tjb-jobs-hero-header::after {
	content: '';
	position: absolute;
	width: 400px;
	height: 400px;
	border-radius: 50% 30% 60% 40% / 50% 40% 60% 30%;
	z-index: 1;
	pointer-events: none;
}

.tjb-jobs-hero-header::before {
	top: -100px;
	right: -100px;
	background: rgba(107, 203, 119, 0.3); /* Light green blob */
	transform: rotate(45deg);
}

.tjb-jobs-hero-header::after {
	bottom: -80px;
	left: -80px;
	background: rgba(151, 195, 84, 0.4); /* Medium green blob */
	border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
	transform: rotate(-30deg);
}

.tjb-hero-content {
	max-width: 1250px;
	margin: 0 auto;
	text-align: center;
	padding: 0 20px;
	position: relative;
	z-index: 2;
}

.tjb-hero-title {
	font-size: 3.5rem;
	font-weight: 700;
	margin: 0 0 20px 0;
	color: #1a1a1a;
	line-height: 1.2;
}

.tjb-hero-subtitle {
	font-size: 1.125rem;
	margin: 0 0 40px 0;
	color: #1a1a1a;
}

.tjb-hero-subtitle a {
	color: #447AB3;
	text-decoration: underline;
}

.tjb-hero-subtitle a:hover {
	color: #3a6a9a;
	text-decoration: none;
}

/* Hero Search Form */
.tjb-hero-search-form {
	max-width: 1000px;
	margin: 0 auto;
	padding: 0 20px;
}

.tjb-hero-search-wrapper {
	display: flex;
	gap: 0;
	background: #fff;
	border-radius: 50px;
	padding: 18px 18px 18px 34px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
	align-items: center;
	position: relative;
}

.tjb-hero-search-field {
	padding: 0 34px;
	display: flex;
	flex-direction: column;
	gap: 0;
}

.tjb-hero-search-keywords {
	flex: 0 0 70%;
	max-width: 70%;
}

.tjb-hero-search-category {
	flex: 0 0 30%;
	max-width: 30%;
	padding-right: 20px;
}

.tjb-hero-search-label {
	display: none; /* Hide labels */
}

.tjb-hero-search-input,
.tjb-hero-search-select {
	width: 100%;
	border: 1px solid #ccc;
	background: transparent;
	font-size: 15px;
	color: #4a4a4a;
	padding: 10px;
	border-radius: 15px;
	outline: none;
	line-height: 1.5;
	font-weight: 400;
}

.tjb-hero-search-input::placeholder {
	color: #999;
}

.tjb-hero-search-select {
	cursor: pointer;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9L12 15L18 9' stroke='%234a4a4a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0 center;
	padding-right: 24px;
	color: #4a4a4a;
}

.tjb-hero-search-button {
	width: 56px;
	height: 56px;
	min-width: 56px;
	border-radius: 50%;
	background: #00B0F0;
	color: #fff;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: background 0.3s;
	margin-left: 16px;
	box-shadow: 0 2px 8px rgba(0, 176, 240, 0.3);
}

.tjb-hero-search-button:hover {
	background: #0099d6;
}

.tjb-hero-search-button svg {
	width: 24px;
	height: 24px;
	stroke-width: 2.5;
}

/* Category Filter Buttons */
.tjb-category-filters-wrapper {
	background: #fff;
	padding: 20px;
	border-bottom: 1px solid #e0e0e0;
}

.tjb-category-filters {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	max-width: 1250px;
	margin: 0 auto;
}

.tjb-category-filter-tab {
	padding: 10px 24px;
	border: none;
	border-radius: 25px;
	background-color: #f5f5f5;
	color: #666;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s ease;
	font-family: "Open Sans", sans-serif;
	white-space: nowrap;
}

.tjb-category-filter-tab:hover {
	background-color: #e0e0e0;
}

.tjb-category-filter-tab.active {
	background-color: #447AB3;
	color: #fff;
}

/* Jobs List Header Bar */
.tjb-jobs-list-header {
	background: #fff;
	padding: 20px;
	border-bottom: 1px solid #e0e0e0;
}

.tjb-jobs-list-header-content {
	max-width: 1250px;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
	padding: 0 20px;
}

.tjb-jobs-list-title-section {
	display: flex;
	align-items: center;
	gap: 16px;
}

.tjb-jobs-list-title {
	font-size: 2rem;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 12px;
}

.tjb-jobs-count-badge {
	display: inline-block;
	padding: 4px 12px;
	background: #f0f0f0;
	color: #666;
	border-radius: 20px;
	font-size: 0.875rem;
	font-weight: 500;
}

.tjb-filter-toggle-button {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	color: #333;
	transition: all 0.3s;
}

.tjb-filter-toggle-button:hover {
	border-color: #447AB3;
	color: #447AB3;
}

.tjb-jobs-list-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

.tjb-sort-button {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	color: #333;
	transition: all 0.3s;
}

.tjb-sort-button:hover {
	border-color: #447AB3;
}

.tjb-create-alert-button-header {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	background: #447AB3;
	color: #fff !important;
	text-decoration: none;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 600;
	transition: background 0.3s;
}

.tjb-create-alert-button-header:hover {
	background: #3a6a9a;
	color: #fff !important;
	text-decoration: none;
}

.tjb-create-alert-button-header svg {
	color: #fff !important;
}

.tjb-create-alert-button-header svg {
	width: 20px;
	height: 20px;
}

/* Split Layout */
.tjb-job-listings-layout {
	display: grid;
	grid-template-columns: 400px 1fr;
	gap: 30px;
	align-items: start;
	width: 100%;
	max-width: 1250px;
	margin: 0 auto;
	padding: 30px 20px;
	box-sizing: border-box;
}

@media (min-width: 1200px) {
	.tjb-job-listings-layout {
		grid-template-columns: 420px 1fr;
		gap: 40px;
		padding: 40px;
	}
}

/* Responsive Hero Header */
@media (max-width: 768px) {
	.tjb-jobs-hero-header {
		padding: 60px 20px 40px;
	}
	
	.tjb-hero-title {
		font-size: 2.5rem;
	}
	
	.tjb-hero-search-form {
		padding: 0;
	}
	
	.tjb-hero-search-wrapper {
		flex-direction: column;
		border-radius: 12px;
		padding: 16px;
		gap: 16px;
		align-items: stretch;
	}
	
	.tjb-hero-search-field {
		padding: 0;
		width: 100%;
		max-width: 100%;
		flex: 1 1 100% !important;
	}
	
	.tjb-hero-search-keywords,
	.tjb-hero-search-category {
		flex: 1 1 100% !important;
		max-width: 100% !important;
		padding: 0;
	}
	
	.tjb-hero-search-field:first-child,
	.tjb-hero-search-field:last-of-type {
		padding: 0;
	}
	
	.tjb-hero-search-input,
	.tjb-hero-search-select {
		padding: 10px;
		width: 100%;
	}
	
	.tjb-hero-search-button {
		width: 100%;
		border-radius: 8px;
		height: 48px;
		margin-left: 0;
		align-self: stretch;
	}
	
	.tjb-jobs-list-header-content {
		flex-direction: column;
		align-items: flex-start;
	}
	
	.tjb-jobs-list-actions {
		width: 100%;
		flex-wrap: wrap;
	}
	
	.tjb-create-alert-button-header {
		flex: 1;
		justify-content: center;
	}
}

@media (max-width: 1024px) {
	.tjb-job-listings-layout {
		grid-template-columns: 1fr;
		padding: 20px;
	}
}

/* Left Column: Job List */
.tjb-job-list-column {
	display: flex;
	flex-direction: column;
	gap: 20px;
	overflow-y: auto;
	max-height: calc(100vh - 250px);
}

/* Job Alert Box */
.tjb-job-alert-box {
	background: #447AB3;
	color: #fff;
	padding: 25px;
	border-radius: 8px;
	margin-bottom: 20px;
}

.tjb-job-alert-box h3 {
	margin: 0 0 10px 0;
	font-size: 18px;
	font-weight: 700;
	color: #fff;
}

.tjb-job-alert-box p {
	margin: 0 0 20px 0;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.9);
}

.tjb-create-alert-button {
	display: block;
	text-align: center;
	padding: 12px 20px;
	background: #fff;
	color: #447AB3;
	text-decoration: none;
	border-radius: 4px;
	font-weight: 600;
	transition: background 0.3s;
}

.tjb-create-alert-button:hover {
	background: #f0f0f0;
	color: #447AB3;
}

/* Job Listings */
.tjb-job-listings {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.tjb-job-listing-card {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-left: 4px solid transparent;
	border-bottom: none;
	padding: 20px;
	cursor: pointer;
	transition: all 0.3s;
	position: relative;
}

.tjb-job-listing-card:last-child {
	border-bottom: 1px solid #e0e0e0;
}

.tjb-job-listing-card:hover {
	background: #f8f9fa;
}

.tjb-job-listing-card.tjb-job-selected {
	background: #fff;
	border-left: 4px solid #97C354;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Job Card Header (Status Badge & Bookmark) */
.tjb-job-card-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 12px;
}

.tjb-job-status-badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.tjb-job-status-badge.tjb-urgent {
	background: #447AB3;
	color: #fff;
}

.tjb-job-status-badge.tjb-new {
	background: #97C354;
	color: #fff;
}

.tjb-job-listing-card.tjb-job-selected .tjb-job-status-badge.tjb-new {
	background: #97C354;
}

.tjb-job-status-badge.tjb-response {
	background: #17a2b8;
	color: #fff;
}

.tjb-job-status-badge.tjb-expired {
	background: #dc3545;
	color: #fff;
}

.tjb-job-bookmark {
	background: none;
	border: none;
	padding: 4px;
	cursor: pointer;
	color: #666;
	transition: color 0.3s;
	display: flex;
	align-items: center;
	justify-content: center;
}

.tjb-job-bookmark:hover {
	color: #447AB3;
}

.tjb-job-bookmark svg {
	width: 20px;
	height: 20px;
}

.tjb-job-bookmark.bookmarked {
	color: #447AB3;
}

.tjb-job-bookmark.bookmarked svg {
	fill: #447AB3;
}

/* Job Card Title Wrapper (Logo + Title + Featured Badge) */
.tjb-job-card-title-wrapper {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	margin-bottom: 16px;
}

.tjb-job-company-logo-placeholder {
	width: 60px;
	height: 60px;
	border-radius: 8px;
	background: #447AB3;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	overflow: hidden;
}

.tjb-company-logo-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tjb-company-logo-letter {
	color: #fff;
	font-size: 24px;
	font-weight: 700;
	line-height: 1;
}

.tjb-job-title-section {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	min-width: 0;
}

.tjb-job-card-title {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.4;
	flex: 1;
	min-width: 0;
}

.tjb-job-card-title a {
	color: #1a1a1a;
	text-decoration: none;
	transition: color 0.3s ease;
}

.tjb-job-card-title a:hover {
	color: #447AB3;
}

.tjb-featured-badge {
	background: #97C354;
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 4px;
	text-transform: uppercase;
	white-space: nowrap;
}

.tjb-job-bookmark-top {
	background: none;
	border: none;
	cursor: pointer;
	color: #999;
	transition: color 0.3s ease;
	padding: 4px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.tjb-job-bookmark-top:hover {
	color: #447AB3;
}

.tjb-job-bookmark-top svg {
	width: 20px;
	height: 20px;
}

/* Job Card Meta Info (Category, Date, Salary) */
.tjb-job-card-meta-info {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 16px;
	align-items: center;
}

.tjb-job-meta-item {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	color: #666;
}

.tjb-job-meta-item svg {
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	color: #666;
}

/* Job Type Badge */
.tjb-job-type-badge-wrapper {
	margin-bottom: 16px;
}

.tjb-job-type-badge-pill {
	display: inline-block;
	padding: 6px 12px;
	border-radius: 20px;
	background: rgba(68, 122, 179, 0.1);
	color: #447AB3;
	font-size: 13px;
	font-weight: 500;
	white-space: nowrap;
}

.tjb-job-company {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 12px;
}

.tjb-company-logo-small {
	width: 48px;
	height: 48px;
	border-radius: 4px;
	object-fit: cover;
	flex-shrink: 0;
}

.tjb-company-info {
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex: 1;
}

.tjb-job-location-work {
	font-size: 13px;
	color: #666;
}

/* Job Tags */
.tjb-job-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 16px;
}

.tjb-job-tag {
	display: inline-block;
	padding: 6px 12px;
	background: rgba(151, 195, 84, 0.15);
	color: #5a7a2e;
	border-radius: 16px;
	font-size: 12px;
	font-weight: 500;
	white-space: nowrap;
}

.tjb-company-logo-small {
	width: 40px;
	height: 40px;
	object-fit: contain;
	border-radius: 4px;
}

.tjb-company-name {
	font-size: 14px;
	color: #666;
	font-weight: 500;
}

.tjb-job-card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	margin-bottom: 12px;
}

.tjb-job-type-badge,
.tjb-job-salary-badge {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: #666;
}

.tjb-job-type-badge svg,
.tjb-job-salary-badge svg {
	flex-shrink: 0;
	width: 16px;
	height: 16px;
}

.tjb-job-card-description {
	font-size: 14px;
	color: #666;
	line-height: 1.6;
	margin-bottom: 16px;
}

.tjb-job-salary-display {
	font-size: 14px;
	color: #333;
	margin-bottom: 16px;
	font-weight: 500;
}

.tjb-job-card-footer {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	padding-top: 16px;
	border-top: 1px solid #f0f0f0;
	gap: 16px;
}

.tjb-job-bookmark-footer {
	background: none;
	border: none;
	cursor: pointer;
	color: #999;
	transition: color 0.3s ease;
	padding: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.tjb-job-bookmark-footer:hover {
	color: #447AB3;
}

.tjb-job-bookmark-footer svg {
	width: 20px;
	height: 20px;
}

.tjb-job-bookmark-footer.bookmarked,
.tjb-job-bookmark-top.bookmarked {
	color: #447AB3;
}

.tjb-job-bookmark-footer.bookmarked svg,
.tjb-job-bookmark-top.bookmarked svg {
	fill: #447AB3;
}

.tjb-job-bookmark-footer {
	background: none;
	border: none;
	cursor: pointer;
	color: #999;
	transition: color 0.3s ease;
	padding: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.tjb-job-bookmark-footer:hover {
	color: #447AB3;
}

.tjb-job-bookmark-footer svg {
	width: 20px;
	height: 20px;
}

.tjb-job-bookmark-footer.bookmarked,
.tjb-job-bookmark-top.bookmarked {
	color: #447AB3;
}

.tjb-job-bookmark-footer.bookmarked svg,
.tjb-job-bookmark-top.bookmarked svg {
	fill: #447AB3;
}

.tjb-apply-now-button {
	display: inline-block;
	padding: 10px 20px;
	background: #97C354;
	color: #fff !important;
	text-decoration: none;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 600;
	transition: background 0.3s;
	flex-shrink: 0;
}

.tjb-apply-now-button:hover {
	background: #7fa845;
	color: #fff !important;
	text-decoration: none;
}

.tjb-job-posted {
	font-size: 12px;
	color: #999;
	white-space: nowrap;
}

/* Right Column: Job Details */
.tjb-job-details-column {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 20px;
	overflow-y: auto;
	max-height: calc(100vh - 200px);
}

.tjb-job-details {
	animation: fadeIn 0.3s ease-in;
}

/* Job Banner */
.tjb-job-banner {
	position: relative;
	width: 100%;
	height: 200px;
	margin-bottom: 20px;
	border-radius: 8px;
	overflow: hidden;
}

.tjb-job-banner img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tjb-company-logo-overlay {
	position: absolute;
	bottom: 20px;
	left: 20px;
	width: 80px;
	height: 80px;
	background: #fff;
	border-radius: 8px;
	padding: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.tjb-company-logo-overlay img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* Job Detail Header */
.tjb-job-detail-header {
	margin-bottom: 30px;
}

.tjb-job-detail-title {
	font-size: 2em;
	font-weight: 700;
	margin: 0 0 15px 0;
	color: #1a1a1a;
}

.tjb-job-detail-company {
	margin-bottom: 12px;
}

.tjb-company-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #333;
	text-decoration: none;
	font-size: 16px;
	font-weight: 600;
	transition: color 0.3s;
}

.tjb-company-link:hover {
	color: #447AB3;
}

.tjb-company-link svg {
	width: 16px;
	height: 16px;
}

.tjb-job-detail-location-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
	font-size: 14px;
	color: #666;
}

.tjb-job-detail-location-meta svg {
	width: 16px;
	height: 16px;
	color: #999;
}

.tjb-job-detail-salary-type {
	font-size: 14px;
	color: #666;
	margin-bottom: 20px;
}

.tjb-job-detail-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 5px;
	padding-bottom: 5px;
	border-bottom: 1px solid #e0e0e0;
}

.tjb-apply-button {
	padding: 12px 24px;
	background: #447AB3;
	color: #fff;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 600;
	transition: background 0.3s;
}

.tjb-apply-button:hover {
	background: #3a6a9a;
	color: #fff;
}

.tjb-job-detail-bookmark,
.tjb-job-detail-share {
	background: #f5f5f5;
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 10px;
	cursor: pointer;
	color: #666;
	transition: all 0.3s;
	display: flex;
	align-items: center;
	justify-content: center;
}

.tjb-job-detail-bookmark:hover,
.tjb-job-detail-share:hover {
	background: #e8e8e8;
	color: #333;
}

.tjb-job-detail-bookmark svg,
.tjb-job-detail-share svg {
	width: 20px;
	height: 20px;
}

.tjb-job-detail-bookmark.bookmarked {
	color: #447AB3;
}

.tjb-job-detail-bookmark.bookmarked svg {
	fill: #447AB3;
}

/* Job Detail Sections */
.tjb-job-detail-section {
	margin-bottom: 12px;
	padding-bottom: 12px;
	border-bottom: 1px solid #e0e0e0;
}

.tjb-job-detail-section:last-child {
	border-bottom: none;
}

.tjb-job-detail-section-title {
	font-size: 0.875rem;
	font-weight: 700;
	margin: 0 0 8px 0;
	color: #1a1a1a;
}

.tjb-job-detail-items {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.tjb-job-detail-item {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	color: #666;
}

.tjb-job-detail-item svg {
	width: 20px;
	height: 20px;
	color: #999;
	flex-shrink: 0;
}

.tjb-work-type-tag {
	display: inline-block;
	padding: 4px 12px;
	background: #f0f0f0;
	color: #333;
	border-radius: 16px;
	font-size: 12px;
	font-weight: 500;
}

.tjb-benefits-intro {
	font-size: 13px;
	color: #999;
	margin-bottom: 15px;
}

.tjb-benefits-list {
	list-style: none;
	padding: 0;
	margin: 0 0 15px 0;
}

.tjb-benefits-list li {
	padding: 8px 0;
	font-size: 14px;
	color: #666;
	border-bottom: 1px solid #f0f0f0;
}

.tjb-benefits-list li:last-child {
	border-bottom: none;
}

.tjb-benefits-list li::before {
	content: "•";
	color: #447AB3;
	font-weight: bold;
	margin-right: 10px;
}

.tjb-show-more-benefits {
	background: none;
	border: none;
	color: #447AB3;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 0;
	transition: color 0.3s;
}

.tjb-show-more-benefits:hover {
	color: #2d3dd3;
}

.tjb-show-more-benefits svg {
	width: 16px;
	height: 16px;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.tjb-job-detail-location {
	font-size: 12px;
	font-weight: 600;
	color: #97C354;
	margin-bottom: 15px;
	letter-spacing: 0.5px;
}

.tjb-job-detail-title {
	font-size: 28px;
	font-weight: 700;
	margin: 0 0 15px 0;
	color: #333;
	line-height: 1.3;
}

.tjb-job-detail-company {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-bottom: 20px;
}

.tjb-company-logo {
	width: 80px;
	height: 80px;
	object-fit: contain;
	border-radius: 4px;
}

.tjb-job-detail-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin-bottom: 20px;
	padding-bottom: 20px;
	border-bottom: 1px solid #e0e0e0;
}

.tjb-job-detail-posted {
	font-size: 14px;
	color: #999;
	margin-bottom: 25px;
}

.tjb-job-detail-actions {
	margin-bottom: 5px;
	padding-bottom: 5px;
	border-bottom: 1px solid #e0e0e0;
}

.tjb-apply-button {
	display: inline-block;
	padding: 14px 40px;
	background: #447AB3;
	color: #fff !important;
	text-decoration: none;
	border-radius: 4px;
	font-weight: 600;
	font-size: 16px;
	transition: background 0.3s;
	margin-bottom: 15px;
	border: none;
	cursor: pointer;
}

.tjb-apply-button:hover {
	background: #3a6a9a;
	color: #fff !important;
}

.tjb-sign-in-text {
	font-size: 14px;
	color: #666;
	margin: 0;
}

.tjb-sign-in-text a {
	color: #4A90E2;
	text-decoration: none;
}

.tjb-sign-in-text a:hover {
	text-decoration: underline;
}

.tjb-job-detail-content h2 {
	font-size: 0.875rem;
	font-weight: 700;
	margin: 0 0 8px 0;
	color: #1a1a1a;
}

.tjb-job-description {
	font-size: 15px;
	line-height: 1.8;
	color: #333;
}

.tjb-job-description p {
	margin-bottom: 15px;
}

.tjb-no-job-selected {
	text-align: center;
	padding: 60px 20px;
	color: #999;
}

.tjb-no-jobs-found {
	text-align: center;
	padding: 60px 20px;
	background: #f8f9fa;
	border-radius: 8px;
	color: #666;
}

/* Pagination */
.tjb-pagination {
	margin-top: 30px;
	padding-top: 30px;
	border-top: 1px solid #e0e0e0;
	text-align: center;
}

.tjb-pagination .page-numbers {
	display: inline-flex;
	gap: 8px;
	list-style: none;
	padding: 0;
	margin: 0;
	align-items: center;
	justify-content: center;
}

.tjb-pagination .page-numbers li {
	display: inline-block;
}

.tjb-pagination .page-numbers a,
.tjb-pagination .page-numbers span {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 2px solid #e0e0e0;
	border-radius: 50%;
	text-decoration: none;
	color: #333;
	font-weight: 500;
	transition: all 0.3s ease;
	background: #fff;
}

.tjb-pagination .page-numbers a:hover {
	background: #f8f9fa;
	border-color: #447AB3;
	color: #4A90E2;
	transform: translateY(-2px);
	box-shadow: 0 2px 8px rgba(74, 144, 226, 0.2);
}

.tjb-pagination .page-numbers .current {
	background: #447AB3;
	color: #fff;
	border-color: #447AB3;
	font-weight: 600;
	box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
}

.tjb-pagination .page-numbers .current:hover {
	background: #3a6a9a;
	border-color: #357ABD;
	transform: translateY(-2px);
}

/* Style dots/ellipsis differently */
.tjb-pagination .page-numbers .dots,
.tjb-pagination .page-numbers span.dots {
	border: none;
	background: transparent;
	min-width: auto;
	padding: 0 8px;
	color: #999;
	font-weight: normal;
}

.tjb-pagination .page-numbers .dots:hover,
.tjb-pagination .page-numbers span.dots:hover {
	background: transparent;
	border: none;
	transform: none;
	box-shadow: none;
}

/* Prevent body scroll when sidebar is open */
body.tjb-filter-sidebar-open {
	overflow: hidden;
}

/* Filter Sidebar Overlay */
.tjb-filter-sidebar-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 998;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.tjb-filter-sidebar-overlay.active {
	display: block;
	opacity: 1;
}

/* Filter Sidebar */
.tjb-filter-sidebar {
	position: fixed;
	top: 0;
	left: -400px;
	width: 400px;
	max-width: 90vw;
	height: 100vh;
	background: #fff;
	box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
	z-index: 999;
	overflow-y: auto;
	transition: left 0.3s ease;
}

.tjb-filter-sidebar.active {
	left: 0;
}

.tjb-filter-sidebar-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px;
	border-bottom: 1px solid #e0e0e0;
	position: sticky;
	top: 0;
	background: #fff;
	z-index: 10;
}

.tjb-filter-sidebar-title {
	font-size: 1.5rem;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0;
}

.tjb-filter-sidebar-close {
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
	color: #666;
	transition: color 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.tjb-filter-sidebar-close:hover {
	color: #1a1a1a;
}

.tjb-filter-sidebar-form {
	padding: 20px;
}

.tjb-filter-section {
	border-bottom: 1px solid #e0e0e0;
	margin-bottom: 0;
}

.tjb-filter-section-toggle {
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 0;
	background: none;
	border: none;
	cursor: pointer;
	font-size: 1rem;
	font-weight: 600;
	color: #1a1a1a;
	text-align: left;
}

.tjb-filter-section-toggle:hover {
	color: #447AB3;
}

.tjb-filter-section-icon {
	transition: transform 0.3s ease;
	flex-shrink: 0;
}

.tjb-filter-section-toggle.active .tjb-filter-section-icon {
	transform: rotate(180deg);
}

.tjb-filter-section-content {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease;
}

.tjb-filter-section-content.active {
	max-height: 1000px;
	padding-bottom: 16px;
}

.tjb-filter-radio-group {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.tjb-filter-radio {
	display: flex;
	align-items: center;
	cursor: pointer;
	padding: 4px 0;
}

.tjb-filter-radio input[type="radio"] {
	margin: 0 12px 0 0;
	cursor: pointer;
	width: 18px;
	height: 18px;
}

.tjb-filter-radio-label {
	flex: 1;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 0.9375rem;
	color: #333;
}

.tjb-filter-count {
	color: #999;
	font-size: 0.875rem;
	margin-left: 8px;
}

.tjb-filter-sidebar-actions {
	padding: 20px;
	border-top: 1px solid #e0e0e0;
	position: sticky;
	bottom: 0;
	background: #fff;
}

.tjb-filter-apply-button {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 20px;
	background: #447AB3;
	color: #fff;
	border: none;
	border-radius: 4px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.3s ease;
}

.tjb-filter-apply-button:hover {
	background: #3a6a9a;
}

/* Responsive */
@media (max-width: 1024px) {
	.tjb-job-listings-layout {
		grid-template-columns: 1fr;
	}

	.tjb-job-details-column {
		max-height: none;
	}
	
	.tjb-job-list-column {
		max-height: none;
	}
	
	.tjb-filter-sidebar {
		width: 350px;
	}
}

@media (max-width: 768px) {
	.tjb-job-listings-page-enhanced {
		padding: 20px 15px;
	}

	/* Greyish background for job cards on mobile */
	.tjb-job-listing-card {
		background: #f5f5f5;
	}

	.tjb-job-listing-card:hover {
		background: #eeeeee;
	}

	.tjb-job-listing-card.tjb-job-selected {
		background: #f5f5f5;
	}

	.tjb-search-inputs {
		flex-direction: column;
	}

	.tjb-search-field-keywords,
	.tjb-search-field-location {
		min-width: 100%;
	}

	.tjb-search-button {
		width: 100%;
	}

	.tjb-filters-row {
		flex-direction: column;
	}

	.tjb-filter-dropdown {
		width: 100%;
	}

	.tjb-filter-menu {
		width: 100%;
	}
	
	.tjb-job-detail-title {
		font-size: 24px;
	}
}

/* Ensure proper width on larger screens - already set above */
