/**
 * Career Jobs for Elementor - frontend + admin styles.
 * Elementor Style tab controls override most of this via inline CSS
 * variables/selectors targeting the classes below; these rules provide
 * sane, responsive defaults.
 */

 .cje-career-widget,
.cje-career-widget *,
.cje-career-widget *::before,
.cje-career-widget *::after {
    font-family: "Poppins", sans-serif !important;
}

.cje-career-widget {
	--cje-gradient: linear-gradient(129.22deg, #ff7c58, #ff6674 55.73%, #ff4a96);
	--cje-gradient-hover: linear-gradient(129.22deg, #ff6674, #ff4a96 55.73%, #ff7c58);
	--cje-accent: #ff5a5f;
	--cje-border: #d6d6d6;
	box-sizing: border-box;
}

.cje-career-widget *,
.cje-career-widget *::before,
.cje-career-widget *::after {
	box-sizing: border-box;
}

.cje-heading {
	margin: 0 0 20px;
}

/* Filters */
.cje-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 20px;
}

.cje-filter-search,
.cje-filter-department {
	flex: 1 1 220px;
}

.cje-search-input,
.cje-department-select {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--cje-border);
	border-radius: 4px;
	font-size: 14px;
}

/* Layout: vertical (default) */
.cje-jobs-wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	align-items: flex-start;
}

.cje-layout-vertical .cje-jobs-nav {
	display: flex;
	flex-direction: column;
	flex: 0 0 100%;
	max-width: 300px;
	background: #f7f7f8;
	
}

.cje-layout-vertical .cje-jobs-content {
	flex: 1 1 0;
	min-width: 0;
}

/* Layout: horizontal */
.cje-layout-horizontal .cje-jobs-wrapper {
	flex-direction: column;
}

.cje-layout-horizontal .cje-jobs-nav {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	width: 100%;
	gap: 4px;
}

.cje-layout-horizontal .cje-jobs-content {
	width: 100%;
}

/* Layout: accordion (nav hidden, panels toggle inline) */
.cje-layout-accordion .cje-jobs-nav {
	display: none;
}

.cje-layout-accordion .cje-jobs-content {
	width: 100%;
}

.cje-layout-accordion .cje-job-panel {
	border: 1px solid var(--cje-border);
	border-radius: 4px;
	margin-bottom: 10px;
	padding: 16px;
}

.cje-layout-accordion .cje-job-panel .cje-job-title {
	cursor: pointer;
}

/* Nav links */
.cje-nav-link {
    position: relative;
    display: block;
    width: 100%;
    text-align: left;
    background: transparent;
    cursor: pointer;
    padding: 1.25rem;
    color: #666666;
	height: auto;
    line-height: 1.4;
    white-space: normal;
    overflow-wrap: break-word;
    -webkit-tap-highlight-color: transparent;
}

.cje-nav-link::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 3px;
    height: 100%;
    background: #ECECEC; /* Black in normal state */
    transition: background 0.3s ease;
}

.cje-nav-link:hover::after,
.cje-nav-link.is-active::after {
    background: linear-gradient(129.22deg, #ff7c58, #ff6674 55.73%, #ff4a96);
}

.cje-nav-link:hover,
.cje-nav-link:focus {
    background: #fff !important;
}

.cje-nav-link:hover,
.cje-nav-link.is-active {
    background: #fff !important;
    color: #ff8e57;
    font-weight: 700;
} 
/* Job content */
.cje-job-content[hidden] {
	display: none;
}

.cje-job-title {
	margin: 0 0 12px;
}

.cje-meta-row {
	margin-bottom: 20px;
	color: #666666;
}

.cje-meta-label {
	color: #666666;
	font-weight: 800;
	margin-right: 4px;
}

.cje-job-section {
	margin-bottom: 20px;
}

.cje-job-description img {
	max-width: 100%;
	height: auto;
	margin-left: 20px;
}

.cje-job-description {
	margin-left: 20px;
	margin-top: 10px;
	color: #666666;
}

.cje-job-description li {
    margin-bottom: 3px; 
    line-height: 1.5;    
}

.cje-no-jobs {
	width: 100%;
	text-align: center;
	padding: 40px 0;
	opacity: 0.7;
}

/* Buttons */
.cje-btn {
	display: inline-block;
	border: none;
	cursor: pointer;
	padding: 12px 28px;
	border-radius: 6px;
	background: var(--cje-gradient);
	color: #fff;
	font: inherit;
	font-weight: 700;
	text-decoration: none;
	transition: background .2s ease, color .15s ease;
}

.cje-btn:hover,
.cje-btn:focus {
    background: var(--cje-gradient-hover) !important;
    color: #fff !important;
}

.cje-btn-outline {
	background: #fff;
	color: var(--cje-accent);
	border: 1px solid var(--cje-border);
}

.cje-btn-outline:hover {
	background: #fff;
	color: var(--cje-accent);
}

/* Modal */
.cje-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 100000;
}

.cje-modal.is-open {
	display: block;
}

.cje-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .6);
}

.cje-modal-dialog {
	position: relative;
	z-index: 1;
	max-width: 560px;
	width: calc(100% - 32px);
	margin: 5vh auto;
	max-height: 90vh;
	display: flex;
}

.cje-modal-content {
	background: #fff;
	border-radius: 8px;
	width: 100%;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}

.cje-modal-header {
	position: relative;
	padding: 24px 24px 16px;
	text-align: center;
}

.cje-modal-title {
	margin: 0 0 8px;
}

.cje-modal-subtitle {
	margin: 0;
	opacity: .75;
	font-size: 14px;
}

.cje-modal-close {
	position: absolute;
	top: 16px;
	right: 16px;
	background: transparent;
	border: none;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	color: inherit;
}

.cje-modal-body {
	padding: 0 24px 24px;
	overflow-y: auto;
}

/* Form */
.cje-form-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 16px;
}

.cje-form-group {
	width: 100%;
}

.cje-form-group.cje-col-50 {
	width: calc(50% - 8px);
}

.cje-form-label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
}

.cje-required {
	color: var(--cje-accent);
}

.cje-form-control {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--cje-border);
	border-radius: 6px;
	font: inherit;
	transition: border-color .15s ease;
}

.cje-form-control:focus {
	outline: none;
	border-color: #18ba60;
}

.cje-form-control.is-invalid {
	border-color: #d63638;
}

.cje-help-block {
	margin-top: 4px;
	font-size: 12px;
	opacity: .7;
}

.cje-field-error {
	margin-top: 4px;
	font-size: 13px;
	color: #d63638;
	min-height: 1em;
}

.cje-form-footer {
	display: flex;
	gap: 12px;
}

.cje-form-footer .cje-btn {
	flex: 1 1 0;
	text-align: center;
}

.cje-ajax-loader {
	display: none;
	width: 20px;
	height: 20px;
	margin: 12px auto 0;
	border: 2px solid #d6d6d6;
	border-top-color: var(--cje-accent);
	border-radius: 50%;
	animation: cje-spin .6s linear infinite;
}

.cje-ajax-loader.is-active {
	display: block;
}

@keyframes cje-spin {
	to {
		transform: rotate(360deg);
	}
}

.cje-form-success {
	margin-top: 12px;
	font-weight: 600;
	color: #00a32a;
	display: none;
}

.cje-form-success.is-visible {
	display: block;
}

.cje-form-error-summary {
	margin-top: 12px;
	font-weight: 600;
	color: #d63638;
	display: none;
}

.cje-form-error-summary.is-visible {
	display: block;
}

/* Load more */
.cje-load-more-wrapper {
	width: 100%;
	text-align: center;
	margin-top: 20px;
}

/* Body scroll lock while modal is open */
body.cje-modal-open {
	overflow: hidden;
}

/* Responsive */
@media (max-width: 767px) {
	.cje-layout-vertical .cje-jobs-nav,
	.cje-layout-vertical .cje-jobs-content {
		max-width: 100%;
		flex: 1 1 100%;
	}

	.cje-form-group.cje-col-50 {
		width: 100%;
	}
}

/* Admin: Career Applications screen */
.cje-admin-wrap .cje-status-badge {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 3px;
	font-size: 12px;
	text-transform: capitalize;
	background: #f0f0f1;
}

.cje-admin-wrap .cje-status-new {
	background: #e5f5fa;
	color: #0a5f76;
}

.cje-admin-wrap .cje-status-reviewed {
	background: #fff8e5;
	color: #7a5b00;
}

.cje-admin-wrap .cje-status-shortlisted {
	background: #e6f6e6;
	color: #1a7a1a;
}

.cje-admin-wrap .cje-status-rejected {
	background: #fbe9e9;
	color: #a02222;
}
