/*	dropdown css start	*/
:root {
	--dropdown-container-height: 100%;
	--dropdown-container-min-height: 25px;
	--dropdown-container-max-height: 10rem;
	--dropdown-container-border-size: 1px;
	--dropdown-container-border-color: lightgray;
	--dropdown-container-background-color: white;
	--dropdown-container-border: 1px solid var(--dropdown-container-border-color);
	--dropdown-container-background-color-hover: #d6e501;
	--dropdown-list-text-size: 11pt;
	--dropdown-selected-text-size: 8pt;
	--dropdown-elements-padding: 0.1rem 0.7rem;
	--dropdown-elements-padding-mob: 0.7rem 0.7rem;
	--dropdown-selected-elemnt-background: #d6e501;
	--invenio-main-color: #d6e501;
	--invenio-blue-color: #44697D;
	--invenio-gray-color: #F0F0F0;
}
.sc_main {
	padding: 1rem;
	color: inherit;
	font-family: arial, helvetica, sans-serif; font-size: 16px;
}

.job-containers {
/* 	border: 1px solid var(--invenio-main-color); */
	border-radius: 0px;
	padding: 12px;
	margin: 15px 0;
/* 	max-width: 800px; */
	display: flex;
	flex-direction: column;
	gap: 5px;
    box-shadow: 0 0px 4px 0 rgba(0, 0, 0, 0.24);
}
.job-containers:hover {
/* 	outline: 1px solid var(--invenio-main-color); */
	box-shadow: 0 0px 8px 0 rgba(0, 0, 0, 0.24);
}
.job-titel .left{
	font-weight: bold;
}
.job-titel div{
	margin-bottom: auto; 
}
.job-titel {
	display: flex;
	justify-content: space-between;
/* 	align-items: center; */
	font-size: 14px;
	color: #333;
	flex-direction: column;
	gap: 1em;
}

.job-header span {
	flex: 1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.job-header .left {
	flex: 7; /* 70% */
}

.job-header .right {
	flex: 3; /* 30% */
	text-align: right;
}

.job-tags {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.job-tag {
	font-size: 12px;
	padding: 5px 8px;
	border-radius: 5px;
	max-width: 160px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.gray {
	background-color: #E0E0E0;
	color: #666;
}

.yellow {
	background-color: var(--invenio-main-color);
	color: #333;
}

.dd-pagination {
	margin-top: 10px;
}

.job-filter-form {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 15px;
}

.job-filter-form>div {
	display: flex;
	flex-direction: column;
}

.buttons {
	margin-bottom: 20px;
}

button.dd-main {
	background-color: var(--invenio-main-color);
}

.dropdown-item mark.highlight {
	background: none;
	background-color: none;
	font-weight: bold;
	padding:0px !important;
	margin:0px !important;
}


.dropdown-container {
	position: absolute;
	background: white;
	max-height: 300px;
}

.dropdown-parent {
	min-height: var(--dropdown-container-min-height);
	height: fit-content;
	/* 	border: var(--dropdown-container-border-size) solid var(--dropdown-container-border-color); */
	/* 	background-color: var(--dropdown-container-background-color); */
	position: relative;
}

.dropdown-content {
	background-color: var(--dropdown-container-background-color);
	border: var(--dropdown-container-border);
	display: flex;
	flex-direction: column;
	position: absolute;
	z-index: 5;
	left: 0;
	right: 0;
}

.dropdown-search {
	width: 100%;
	align-items: center;
	display: flex;
	justify-content: center;
}

.dropdown-list {
	font-size: var(--dropdown-list-text-size);
	max-height: var(--dropdown-container-max-height);
	overflow-y: scroll;
}

.dropdown-input-div {
	background-color: white;
	width: 100%;
	height: fit-content;
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
}

.dropdown-selected {
	font-size: var(--dropdown-selected-text-size);
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	column-gap: 10px;
	row-gap: 5px;
	flex-grow: 9;
	align-items: center;
	padding: 10px 0px 10px 0px;
}

.dropdown-selected-item {
	background-color: var(--dropdown-selected-elemnt-background);
	padding: 0 3px 0 3px;
	height: fit-content;
	font-size: 1em;
	font-weight: 500;
}

.list-selected-item {
	background-color: var(--dropdown-selected-elemnt-background);
}

.dropdown-item {
	padding: var(--dropdown-elements-padding);
}

.dropdown-item.dropdown-hidden {
	display: none;
}

.dropdown-arrow {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-left: auto;
	/*   flex-grow: 1; */
	/*   width: 20px; */
}

.job-filter-form {
	width: 100%;
}

.job-filter-form .buttons {
	display: flex;
	flex-direction: row;
	gap: 10px;
}
/* .job-filter-form .buttons { */
/* 	grid-column: span 3; Make buttons span across all columns */
/*     display: flex; */
/*     justify-content: flex-end; Align buttons to the right */
/*     gap: 10px; Space between buttons */
/* } */

/* 	dropdown css end	*/

/* Base styles */
.job-filter-form {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	border-radius: 8px;
}

.job-filter-form>div, .job-filter-form .buttons {
	width: 100%;
	flex-direction: column;
}

/* Form inputs */
.job-filter-form label {
	font-weight: bold;
	display: block;
}

.job-filter-form input:not(.invisible-border), .job-filter-form select, .dropdown-input-div {
	display: flex;
	align-items: center;
	min-height: 44px; /* Match input height */
	padding: 0 12px; /* Similar to input */
	border: 1px solid #ccc;
	/*   border-radius: 4px; */
	font-size: 16px; /* Match browser default input font size */
	background-color: white;
	box-sizing: border-box; /* Important to ensure consistent sizing */
}

.dropdown-content {
	padding: var(--dropdown-elements-padding);
}

.job-filter-form button {
	display: flex;
	align-items: center;
	min-height: 44px; /* Match input height */
	padding: 0 12px; /* Similar to input */
	border: 1px solid #ccc;
	/*   border-radius: 4px; */
	font-size: 16px; /* Match browser default input font size */
	box-sizing: border-box;
	justify-content: center;
}

.job-filter-form input:focus, .job-filter-form select:focus,
	.dropdown-parent:focus {
	outline-width: 0px;
	outline-style: solid;
}

.job_search_form_select_div {
	position: relative;
}

.job_search_form_select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	width: 100%;
	padding: 10px;
	padding-right: 30px; /* space for arrow */
	font-size: 16px;
	border: 1px solid #ccc;
	background-color: white;
	cursor: pointer;
}

div.job_search_form_select_div:after {
	content: "▾";
	position: absolute;
	background: red;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none; /* Let clicks go to the select */
	font-size: 16px;
	color: gray;
}

.job-filter-form button {
	cursor: pointer;
	border: none;
}

/* Buttons container */
.job-filter-form .buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.job-containers {
	display: flex;
	flex-direction: column;
	height: fit-content;
	min-height: 8em;
	justify-content: space-between;
}

.job-containers .job-titel .left, .job-containers .job-titel .right {
	overflow: hidden;
}

.job-containers .job-titel a, .job-containers .job-titel span {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	max-height: 4em;
	line-height: 1.25em;
}

.selected-element {
	background: red;
}

.inner-dropdown-element:not(.not-clickable) {
	cursor: pointer;
	padding: var(--dropdown-elements-padding);
}
.not-clickable {
	color: lightgray;
	margin: 0px 10px 0px 10px;
	border-top: 1px solid;
}
.dropdown-list-post {
	position: absolute;
	background: var(--dropdown-container-background-color);
	border: var(--dropdown-container-border);
	z-index: 999;
	font-size: var(--dropdown-list-text-size);
	left: 0;
	right: 0;
	display: flex;
	flex-direction: column;
	max-height: var(--dropdown-container-max-height);
	overflow-y: scroll;
}

.invisible-border {
	border: 0px;
	font-size: 16px;
	flex-grow: 1;
/* 	min-width: 40px; */
	border: none;
	outline: none;
}
.job-containers .job-titel a {
	cursor: pointer;
}
.dd-pagination {
	display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-left: auto;
}
.dd-pagination button{
	display: flex;
    width: 2em;
    height: 2em;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    background: none;
    border: 0px;
    font-size: 1em;
    line-height: inherit;
    cursor: pointer;
}


.sc_main button:focus{
	outline: none;
}
.blue {
	background: var(--invenio-blue-color);
	color: white;
}
.dd-blue {
	background: var(--invenio-blue-color);
	color: white;
}
.job-titel .left a {
	color: #333 !important;
    text-decoration: underline;
}

/* Responsive layout for larger screens */
@media ( min-width : 768px) {
	.job-filter-form {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: flex-end;
	}
	.job-filter-form .buttons {
		flex-direction: row;
	}
	.job-filter-form>div {
		flex: 1 1 45%;
	}
	.job-filter-form .buttons {
		flex: 1 1 100%;
	}
	.dropdown-item {
		padding: 0 5px 0 5px;
	}
	.inner-dropdown-element:hover:not(.not-clickable) {
		background: var(--dropdown-container-background-color-hover);
	}
	
	.dd-pagination {
		width: 15em;
	}
	button:hover{
		box-shadow: 0 0px 8px 0 rgba(0,0,0,0.24);
	}
	#job-filter-form .buttons .dd-right{
	    margin-left: auto;
	}
	.dd-blue:hover {
		box-shadow: 0 0px 8px 0 rgba(0, 0, 0, 0.24);	
	}
	.dd-main:hover {
		box-shadow: 0 0px 8px 0 rgba(0, 0, 0, 0.24);	
	}
	.dd-gray:hover {
		box-shadow: 0 0px 8px 0 rgba(0, 0, 0, 0.24);	
	}
	.sc_main {
		box-shadow: 0 0px 4px 0 rgba(0, 0, 0, 0.24);
	}
	.job-containers .job-titel .left, .job-containers .job-titel .right {
	    max-width: 45%;
	}
	.job-containers {
    	min-height: 6em;
	}
	.job-titel {
		flex-direction: row;
	}
	.right {
		text-align: right;
	}
}
/*Just for test remove in prod*/
.tbk__subtitle {
    display: inline-block;
    border-bottom: 2px solid var(--invenio-main-color);
    margin-top: 0;
    font-size: 20px;
    font-size: 20px;
    line-height: 26px;
    font-weight: 400;
    font-style: normal;
}
.tbk__title {
    font-size: 30px;
    text-transform: uppercase;
    
}
.highlighted {
	background: lightgray;
}
.sc_main button:focus {
	box-shadow: 0 0px 4px 0 rgba(0, 0, 0, 0.24);
}
.sc_main label.dropdown-arrow {
	margin-bottom: 0px;
}



