/* JOB */

/* Remote Position Filter Styles */
.remote-position-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.remote-position-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1a1a1a;
}

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

.remote_positions li {
    margin-bottom: 8px;
}

.remote_positions label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #4a5568;
    transition: color 0.2s ease;
}

.remote_positions label:hover {
    color: #1a1a1a;
}

.remote_positions input[type="checkbox"] {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Highlight remote jobs in listing */
.job_listing.remote-position .position h3:after {
    content: "Remote";
    display: inline-block;
    margin-left: 10px;
    padding: 2px 8px;
    background-color: #10b981;
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    vertical-align: middle;
}

/* Remote badge in listing */
/* .remote-badge-listing {
    display: inline-flex !important;
    align-items: center;
    margin-left: 10px;
    padding: 4px 10px !important;
    background-color: #f0fdf4 !important;
    border: 1px solid #10b981 !important;
    color: #10b981 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    gap: 4px;
    white-space: nowrap;
    vertical-align: middle;
}

.remote-badge-listing svg {
    width: 14px;
    height: 14px;
    stroke: #10b981;
    flex-shrink: 0;
} */

/* Alternative remote indicator style */
.job-location .remote-indicator {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Job Expiry Date Styles */
/* .job-expires-listing {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    margin-left: auto;
    margin-right: 10px;
    background-color: #fef3c7;
    border: 1px solid #fcd34d;
    color: #92400e;
}

.job-expires-listing svg {
    width: 12px;
    height: 12px;
    stroke: #d97706;
    flex-shrink: 0;
}

.job-expires-listing strong {
    color: #92400e;
    font-weight: 600;
} */
.job-expires-listing,.job-expires-listing{
	font-size:14px;
}
/* Additional Job Info (Salary and Important Info) */
.job-additional-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
    font-size: 14px;
}

.job-salary-listing,
.job-important-info-listing {
    display: flex;
    align-items: center;
    gap: 6px;
}

.job-salary-listing {
    color: #059669;
}

.job-salary-listing svg {
    width: 14px;
    height: 14px;
    stroke: #059669;
    flex-shrink: 0;
}

.job-salary-listing .salary-label {
    color: #6b7280;
    margin-right: 4px;
}

.job-salary-listing strong {
    color: #059669;
    font-weight: 600;
}

.job-important-info-listing {
    color: #7c3aed;
    flex: 1;
}

.job-important-info-listing svg {
    width: 14px;
    height: 14px;
    stroke: #7c3aed;
    flex-shrink: 0;
}

.job-important-info-listing span {
    color: #7c3aed;
    font-weight: 500;
}

/* Ensure proper spacing when additional info is present */
.job_listing .job-listing-content {
    padding-bottom: 5px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .job-additional-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .job-salary-listing,
    .job-important-info-listing {
        font-size: 13px;
    }
}
div.job_listings_inner_wrapper {
  display: grid;
  grid-template-columns: 380px 1fr; 
  grid-column-gap: 50px;
  align-items: normal;
}
div.job_listings_inner_wrapper .job_filters {
  grid-column: 1;
}
@media (max-width: 782px) {
  .job_listings_inner_wrapper {
    display: block;
  }
  .job_listings_inner_wrapper .job_filters {
    position: static;
  }
}

/* === SAVE JOB BUTTON STYLES === */
.job-save-action {
	position: static;
}
.save-job-btn-card,
.save-job-btn,
.save-job-toggle {
	background: #fff;
	border: 2px solid #e0e6ed;
	padding: 8px 12px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer !important;
	transition: all 0.3s ease;
	position: relative;
	z-index: 1000 !important;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
	pointer-events: auto !important;
	display: inline-block;
	min-width: 80px;
	text-align: center;
}

.save-job-btn-card:hover,
.save-job-btn:hover,
.save-job-toggle:hover {
	border-color: #007cba;
	background: #f8f9fa;
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(0,0,0,0.15);
	cursor: pointer !important;
}

.save-job-btn-card.saved,
.save-job-btn.saved,
.save-job-toggle.saved {
	background: #28a745;
	color: #fff;
	border-color: #28a745;
}

.save-job-btn-card.saved:hover,
.save-job-btn.saved:hover,
.save-job-toggle.saved:hover {
	background: #218838;
	border-color: #218838;
}

/* Disabled state for save job buttons */
.save-job-btn-card:disabled,
.save-job-btn:disabled,
.save-job-toggle:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	pointer-events: none;
}

/* Job listing item styling */
.job_listing {
	position: relative;
	border: 1px solid #e0e6ed;
	border-radius: 8px;
	margin-bottom: 16px;
	padding: 20px;
	padding-top: 50px; /* Extra padding to accommodate save button */
	background: #fff;
	transition: all 0.3s ease;
	overflow: visible;
}

.job_listing:hover {
	border-color: #007cba;
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Ensure job content doesn't interfere with save button */
.job-listing-content {
	position: relative;
	z-index: 1;
}
div.job_listings .job_listing .job-header {
	padding-bottom: 14px;
}
/* Remove old job-listing-link styles since we're not using it anymore */
.job-listing-link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.job-listing-link:hover {
	text-decoration: none;
}

/* Job header with separate title and arrow links */
.job-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}

.job-title {
	margin: 0;
	flex: 1;
}

.job-title-link {
	color: #333;
	font-size: 18px;
	font-weight: 600;
	text-decoration: none;
	transition: color 0.3s ease;
}

.job-title-link:hover {
	color: #007cba;
	text-decoration: none;
}

.job-arrow-link {
	color: #666;
	font-size: 18px;
	text-decoration: none;
	padding: 4px 8px;
	border-radius: 4px;
	transition: all 0.3s ease;
}

.job-arrow-link:hover {
	color: #007cba;
	background-color: #f0f8ff;
	text-decoration: none;
}

.job-arrow {
	display: inline-block;
	transition: transform 0.3s ease;
}

.job-arrow-link:hover .job-arrow {
	transform: translateX(2px);
}

/* Job meta information */
.job-meta-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
}

.job-location,
.job-category {
		display: flex;
    align-items: center;
	flex-wrap:wrap;
    gap: 0.5rem;
    color: #000;
    font-size: 14px;
    font-weight: 400;
    line-height: 24px;
}
.job-listing-content .job-title .featured-badge{
	min-width:112px;
}
.job-listing-content .job-title{
	align-items: center;
}
.job-listing-content .job-title .featured-badge svg{
	margin-bottom:-2px;
}
/* Location and job type links */
.job-location-link,
.job-type-link {
	color: #0073aa;
	text-decoration: none;
	padding: 2px 4px;
	border-radius: 3px;
	transition: all 0.3s ease;
}

.job-location-link:hover,
.job-type-link:hover {
	color: #005a87;
	background-color: #f0f8ff;
	text-decoration: none;
}

/* Job category links */
.job-category-link {
	color: #d63638;
	text-decoration: none;
	padding: 2px 4px;
	border-radius: 3px;
	transition: all 0.3s ease;
	font-weight: 500;
}

.job-category-link:hover {
	color: #b32d2e;
	background-color: #fdf2f2;
	text-decoration: none;
}

.job-category-link.fallback {
	color: #666;
	pointer-events: none;
	opacity: 0.7;
}

@media (max-width: 768px) {
	.save-job-btn-card,
	.save-job-btn,
	.save-job-toggle {
		padding: 6px 10px;
		font-size: 12px;
	}
	
	.job-meta-row {
		flex-direction: column;
		align-items: flex-start;
	}
	.job-listing-content .job-title{
		flex-direction: column;
    	align-items: start;
	}
	.job-listing-content .job-title .featured-badge{
		margin-top:10px;
	}
}


.job_filters{
	background: #D5E6FF; 
	padding: 32px;
	border-radius: 30px;
}
.job_filters h3 {
	color: #000;
	font-size: 24px;
	font-weight: 700;
	line-height: 18px;
	margin-top: 0;
}
/*.job_filters_sidebar_widget{
	position: sticky;
    top: 100px;
}*/
.filter-section{
	padding-top: 25px;
}
.filter-section > label {
	color: #000;
	font-size: 18px;
	font-weight: 600;
	padding-bottom: 6px;
}
.filter-section > input[type="text"]{
	border-radius: 50px;
	border: 1px solid #BFD3EC;
	background: #FFF;
	height: 50px;
}
.filter-section .select2-container--default .select2-selection--single {
	height: 50px;
	background: transparent;
	border: 0;
}
.filter-section .select2-container--default .select2-selection--single .select2-selection__rendered {
	line-height: 48px;
	border-radius: 50px;
	border: 1px solid #BFD3EC;
	background: #FFF;
	padding: 0 18px;
}

.select2-container .select2-dropdown {
	overflow: hidden;
	border-radius: 10px !important;
	border: 0;
}
.filter-section .select2-container--default .select2-selection--single .select2-selection__arrow {
	height: 48px;
	right: 13px;
}
.filter-section .select2-container--default .select2-selection--single .select2-selection__clear{
	margin-right: 13px;
}
.job_filters .job_types{
	background: transparent;
	border:0;
	padding: 0;
}
.filter-section .select-wrapper .select-arrow {
	display: none;
}
.job_filters .job_types li{
	float: none;
	padding-left: 0;
	padding-right: 0;
	border-right: 0;
}
.job_filters .job_types li label {
	color: #000;
	font-size: 16px;
	font-weight: 400;
}
.job_filters_sidebar_widget .showing_jobs{
	text-align: center;
	font-size: 16px;
}
.job_filters_sidebar_widget .showing_jobs a.rss_link{
	display: none;
}
.job_filters_sidebar_widget .showing_jobs a.reset{
	margin-left: 10px;
	    padding: 2px 4px;
    background: #f8b403;
    border-radius: 4px;
}
.saved-jobs-link-section{
	padding-top: 30px;
}
.saved-jobs-link-section a {
	border-radius: 12px;
	border: 1px solid #B4C9E4;
	background: #FFF;
	color: #000;
	text-align: center;
	display: block;
	font-size: 18px;
	font-weight: 700;
	padding: 15px 20px;
	transition:all .3s ease;
}
.saved-jobs-link-section a:hover {
	background: #B4C9E4;
}
ul.job_listings li.no_job_listings_found.no_job_listings_found{
	padding-left: 0;
	padding-right: 0;
}
div.job_listings .load_more_jobs {
	border-bottom: 0;
	background-color: var(--e-global-color-accent);
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    line-height: 28px;
    color: #000000;
    border-style: none;
    border-radius: 50px 50px 50px 50px;
    padding: 15px 36px 15px 36px;
    display: inline-block;
     max-width: 240px;
    width: 100%;
    transition: background .3s ease;
}

div.job_listings .load_more_jobs:hover{
	background-color: #C08A00;
}
.loadmore-wrap{
	display: grid;
    grid-template-columns: 380px 1fr;
    grid-column-gap: 50px;
    align-items: normal;
}
.loadmore-wrap:before {
	content: '';
	display: inline-block;
}
div.job_listings .load_more_jobs{
	margin-top: 36px;
}




div.job_listings ul.job_listings {
	border-top: 0;
}
div.job_listings ul.job_listings li.job_listing {
	padding: 30px;
	border-radius: 30px;
	border: 2px solid #EEF4FC; 
	background: #FFF;
	margin-bottom: 20px !important;
}
div.job_listings ul.job_listings li.job_listing:hover {
	border-color: #285A9D;
}
div.job_listings ul.job_listings li.job_listing:hover .job-title-link {
	color: #285A9D;
}
div.job_listings .job-title .job-title-link { 
	font-size: 26px;
	font-weight: 700;
	line-height: 34px;
	padding: 0;
	display: inline-block;
}
div.job_listings .job-title .job-title-link:hover {
	background: transparent !important;
}
div.job_listings .save-job-btn-card {
	padding: 0;
    background: transparent;
    border-radius: 0;
    border: 0 !important;
    box-shadow: none;
    font-size: 16px;
    font-weight: 400;
    color: #000;
}
div.job_listings .save-job-btn-card:hover,div.job_listings .save-job-btn-card:focus {
	color: #285A9D;
	background: transparent;
}
div.job_listings .job-header > a.job-arrow-link {
	padding: 4px 0 4px 15px;
}
div.job_listings .job-header {
	margin-bottom: 0;
}
ul.job_listings li.job_listing a {
	padding: 0;
	color: #000;
}
ul.job_listings li.job_listing .job-category {
	color: #000;
}

ul.job_listings li.job_listing.job_position_featured a {
	background: transparent !important;
}



.job_listings button.filter-menu{
	padding: 10px 20px;
    background: #d5e6ff;
    border: 0;
    margin-bottom: 10px;
} 
.job_listings button.filter-menu svg {
	width: 20px;
	height:27px;
	margin-right: 6px;
	margin-bottom:-7px;
}
.job_listings button.filter-menu:hover,.job_listings button.filter-menu:focus {
	background:#a8bedd;
	color:#000;
}
.job_listings button.filter-menu:hover span,.job_listings button.filter-menu:focus span {
	color:#000;
}
button.filter-close{
	padding: 10px;
    background: #d5e6ff;
    border: 0;
    margin-bottom: 10px; 
    position: absolute;
    right: 20px;
    top: 20px;
}

@media(max-width: 1199px){
	div.job_listings_inner_wrapper {
		grid-template-columns: 320px 1fr;
		grid-column-gap:30px;
	}
	div.job_listings_inner_wrapper .job-title .job-title-link{
		font-size: 22px;
		line-height: 30px;
	}
	.loadmore-wrap{
		grid-template-columns: 320px 1fr;
		grid-column-gap:30px;
	}
}
@media(min-width: 992px){ 
	button.filter-menu,button.filter-close{
		display: none;
	}
}

@media (max-width: 991px) {
	.loadmore-wrap{
		display: block;
	}
	div.job_listings_inner_wrapper{
		display: block;
	}
	.job_filters_sidebar_widget{
		padding: 60px 30px 30px 30px;
	}
  .job_filters_sidebar_widget {
    position: fixed;
    top: 0; left: 0;
    height: 100vh;
    width: 85vw;        
    max-width: 360px;
    background: #fff;
    box-shadow: 0 0 30px rgba(0,0,0,.2);
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform .3s ease;
    z-index: 10001;
  }
  .job_filters_sidebar_widget.is-open {
    transform: translateX(0);
  }

  .filter-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 10000;
  }
  .filter-overlay[hidden] { display: none; }

  body.filter-open {
    overflow: hidden;
    touch-action: none;
  }
  .job_filters {
	    background: transparent;
	    padding: 0;
	    border-radius: 0;
	}
	.select2-dropdown{
		box-shadow: 1px 2px 10px rgba(0, 0, 0, .2);z-index: 99999;
	}

}

/**
 * ===== SEARCH CLEAR BUTTON STYLES =====
 * Ensures the clear button is always visible when there's text
 * Works across all browsers including Firefox
 * Fixed: Only applies to main search bar, not filter inputs
 */

/* Search input wrapper - specific to main search bar */
.wpjm-search-bar__wrap .wpjm-search-input-wrapper,
.wpjm-search-bar .wpjm-search-input-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

/* Hide browser default clear buttons in IE, Edge, Chrome - only in search bar */
.wpjm-search-bar__wrap input[type="search"]::-webkit-search-cancel-button,
.wpjm-search-bar__wrap input[type="search"]::-webkit-search-decoration,
.wpjm-search-bar__wrap input[type="text"]::-webkit-search-cancel-button,
.wpjm-search-bar__wrap input[type="text"]::-webkit-search-decoration,
.wpjm-search-bar .wpjm-search-keywords::-webkit-search-cancel-button,
.wpjm-search-bar .wpjm-search-keywords::-webkit-search-decoration {
    display: none !important;
    -webkit-appearance: none !important;
}

/* Firefox specific - hide default clear button */
.wpjm-search-bar__wrap input[type="search"]::-moz-clear,
.wpjm-search-bar__wrap input[type="text"]::-moz-clear,
.wpjm-search-bar input[type="search"]::-moz-clear,
.wpjm-search-bar input[type="text"]::-moz-clear {
    display: none !important;
}

/* Edge specific */
.wpjm-search-bar__wrap input[type="search"]::-ms-clear,
.wpjm-search-bar__wrap input[type="search"]::-ms-reveal,
.wpjm-search-bar__wrap input[type="text"]::-ms-clear,
.wpjm-search-bar__wrap input[type="text"]::-ms-reveal,
.wpjm-search-bar input[type="search"]::-ms-clear,
.wpjm-search-bar input[type="search"]::-ms-reveal {
    display: none !important;
}

/* Add padding to input for clear button space - only in main search bar */
.wpjm-search-bar__wrap .wpjm-search-input-wrapper input,
.wpjm-search-bar .wpjm-search-input-wrapper input,
.wpjm-search-bar .wpjm-search-keywords {
    padding-right: 35px !important;
}

/* Custom clear button */
.wpjm-clear-button {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent !important;
    border: none;
    padding: 4px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    color: #666;
	height: 24px;
    width: 30px !important;
    padding: 0px !important;
	outline:0;
}

/* Show clear button when input has value */
.wpjm-clear-button.visible {
    opacity: 1;
    visibility: visible;
	background:transparent !important;
}

/* Ensure button is hidden when no value or empty parameter */
.wpjm-search-input-wrapper:not(.has-value) .wpjm-clear-button {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Clear button hover state */
.wpjm-clear-button:hover {
    color: #333;
    /* border-radius: 50%; */
}


/* Clear button active state */
/* .wpjm-clear-button:active {
    transform: translateY(-50%) scale(0.95);
} */

/* SVG icon styling */
.wpjm-clear-button svg {
    width: 16px;
    height: 16px;
    display: block;
    position: relative;
	fill:#000;
    display: block;
    margin: 0px 0px 0px 7px;;
}

/* Ensure proper alignment in search bar context only */
.wpjm-search-bar__wrap .wpjm-search-input-wrapper,
.wpjm-search-bar .wpjm-search-input-wrapper {
    width: 100%;
}

/* Prevent clear button in filter sections */
.job_filters .wpjm-clear-button,
.filter-section .wpjm-clear-button {
    display: none !important;
}

/* Animation for smooth appearance */
/* @keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
}

.wpjm-clear-button.visible {
    animation: fadeIn 0.2s ease forwards;
} */

/* Ensure compatibility with various themes */
.wpjm-search-input-wrapper input {
    box-sizing: border-box;
}

/* Fix for potential z-index issues */
.wpjm-search-bar,
.job_filters,
.filter-section {
    position: relative;
}

/* Ensure the button works properly in flexbox containers */
.wpjm-search-bar.flex,
.wpjm-search-bar.d-flex {
    align-items: center;
}

.wpjm-search-bar.flex .wpjm-search-input-wrapper,
.wpjm-search-bar.d-flex .wpjm-search-input-wrapper {
    flex: 1;
}

/* Mobile responsive adjustments for clear button */
@media (max-width: 768px) {
    .wpjm-clear-button {
        padding: 6px;
        right: 10px;
    }
    
    .wpjm-clear-button svg {
        width: 18px;
        height: 18px;
    }
    
    .wpjm-search-input-wrapper input,
    .wpjm-search-bar .wpjm-search-keywords {
        padding-right: 40px !important;
    }
}

/**
 * ===== BACK TO TOP BUTTON STYLES =====
 * Smooth scroll to top button - appears on job listing pages only
 * Positioned at bottom right corner
 */

.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    background: var(--e-global-color-accent, #F8B403);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    padding: 0 !important;
    height: 50px;
    width: 50px;
}

.back-to-top:hover {
    background: #C08A00;
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.back-to-top:active {
    transform: translateY(-2px);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    stroke: #000;
    stroke-width: 2.5;
    fill: none;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .back-to-top svg {
        width: 20px;
        height: 20px;
    }
}

/* Accessibility focus state */
.back-to-top:focus {
    outline: 2px solid #4A90E2;
    outline-offset: 3px;
}

/* Animation for smooth appearance */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.back-to-top.visible {
    animation: slideUp 0.3s ease forwards;
}

