/**
 * Vacancies Styles
 * 
 * Modern, responsive styling for vacancies list
 * Matches the screenshot design with teal filter bar and clean layout
 * 
 * @package HelloElementorChild
 */

/* Container */


/* Header */
.vacancies-header {
	text-align: center;
	margin-bottom: 40px;
}

.vacancies-header h1 {
	font-size: 2.5rem;
	font-weight: 700;
	margin: 0 0 16px 0;
	color: #1a1a1a;
}

.vacancies-header p {
	font-size: 1.125rem;
	color: #666;
	margin: 0;
}

/* Filter Section */
.vacancies-filter {
	background: #005B7B;
	padding: 20px;
	border-radius: 5px;
	margin-bottom: 20px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.filter-checkboxes {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	align-items: center;
}

.filter-checkbox-label {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	color: #ffffff;
	font-size: 1rem;
	font-weight: 500;
	margin: 0;
	user-select: none;
}

.filter-checkbox-label input[type="checkbox"] {
	width: 20px;
	height: 20px;
	cursor: pointer;
	accent-color: #45C8F5;
	border: 2px solid #ffffff;
	border-radius: 3px;
}

.filter-checkbox-label:hover {
	opacity: 0.9;
}

.filter-checkbox-label input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.filter-checkbox-label span::before {
    content: '';
    width: 18px;
    height: 18px;
    background-color: #45C8F5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}


.filter-checkbox-label span::after {
    content: '';
    position: absolute;
    width: 5px;
    height: 12px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    left: 7px;
    top: 2px;
    opacity: 0;
}


.filter-checkbox-label input:checked + span::after {
    opacity: 1;
}


.filter-checkbox-label span {
    position: relative;
    display: flex;
    align-items: center;
}


/* Vacancies List Wrapper */
.vacancies-list-wrapper {
	position: relative;
	min-height: 300px;
}

/* Loader */
.vacancies-loader {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 80px 20px;
	text-align: center;
}

.loader-spinner {
	width: 50px;
	height: 50px;
	border: 4px solid #f0f0f0;
	border-top: 4px solid #005B7B;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin-bottom: 16px;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.vacancies-loader p {
	font-size: 1rem;
	color: #666;
	margin: 0;
}

/* Vacancies List */
.vacancies-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
	transition: opacity 0.3s ease;
}

.vacancies-list.loading {
	opacity: 0.5;
	pointer-events: none;
}

/* Vacancy Item */
.vacancy-item {
	background: #ffffff;
	border-radius: 5px;
	padding: 10px 20px;
	transition: all 0.2s ease;
}

.vacancy-item:hover {
	box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
	border-color: #d0d0d0;
}

.vacancy-content {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}

/* Company Logo */
.vacancy-logo {
	flex-shrink: 0;
	width: 60px;
	height: 60px;
	margin-right: 35px;
	display: flex;
	align-items: center;
	justify-content: flex-start;
}

.vacancy-details>div {
    flex: 1;
}

.company-initial {
	display: block;
}

/* Vacancy Details */
.vacancy-details {
	flex: 1;
	display: flex;
    align-items: center;
}

.vacancy-title {
	font-size: 14px!important;
    font-weight: 700!important;
    line-height: 24px!important;
    margin: 0;
}

.vacancy-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	font-size: 14px;
	line-height: 24px;
	color: #343A3F99;
}

.vacancy-location {
	display: inline-block;
}

/* Vacancy Info */
.vacancy-info {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.vacancy-company {
	font-size: 1rem;
	color: #005B7B;
}

.vacancy-company strong {
	font-weight: 600;
}

.vacancy-posted {
	font-size: 14px;
	line-height: 24px;
	color: #343A3F99;
}
.vacancy-type {
    font-size: 14px;
    line-height: 24px;
    font-weight: 700;
    color: #4D9CC5;
}

/* Apply Button */
.vacancy-actions {
	flex-shrink: 0;
}

.vacancy-apply-btn {
	background: #ffffff;
	color: #000000;
	border: 1px solid #005B7B;
	padding: 12px 32px;
	font-size: 16px;
	font-weight: 600;
	border-radius: 5px;
	cursor: pointer;
	transition: all 0.2s ease;
	white-space: nowrap;
}

.vacancy-apply-btn:hover {
	background: #4D9CC5;
	border: 1px solid #4D9CC5;
	color: #ffffff;
	transform: translateY(-1px);
}

.vacancy-apply-btn:active {
	transform: translateY(0);
}

/* No Vacancies Message */
.no-vacancies {
	text-align: center;
	padding: 60px 20px;
	font-size: 1.125rem;
	color: #999;
	background: #f9f9f9;
	border-radius: 8px;
	border: 1px dashed #ddd;
}

.filter-error {
    text-align: center;
    padding: 20px;
    font-size: 1rem;
    color: #343A3F99;
    background: #fff;
    border-radius: 5px;
}

/* Responsive Design */
@media (max-width: 767px) {
	.vacancies-header h1 {
		font-size: 2rem;
	}
	
	.vacancies-header p {
		font-size: 1rem;
	}
	
	.vacancies-filter {
		padding: 20px;
	}
	
	.filter-checkboxes {
		gap: 16px;
	}
	
	.vacancy-item {
		padding: 20px;
	}

	.vacancy-details {
		flex-direction: column;
		align-items: flex-start;
		gap: 20px;
	}

	.vacancy-content {
		align-items: flex-start;
	}
}

@media (max-width: 480px) {
	
	
	.vacancies-header {
		margin-bottom: 24px;
	}
	
	.vacancies-header h1 {
		font-size: 1.75rem;
	}
	
	.filter-checkboxes {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}
}

@media (max-width: 375px) {

	.vacancy-content {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* Animation for filtered results */
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.vacancy-item {
	animation: fadeIn 0.3s ease;
}
