/* =========================================================
   EUROGIGS OPPORTUNITIES
   FRONTEND DESIGN
   ========================================================= */

:root {
	--eg-bg: #1A1E27;
	--eg-border: #999B9F;
	--eg-text: #CBCBCB;
	--eg-muted: #999B9F;
	--eg-success: #3ECF8E;
}


/* =========================================================
   BASE
   ========================================================= */

.ego-public-opportunities {
	max-width: 1400px;
	margin: 0 auto;
	padding: 70px 30px 100px;
	color: var(--eg-text);
	box-sizing: border-box;
}

.ego-public-opportunities *,
.ego-public-opportunities *::before,
.ego-public-opportunities *::after {
	box-sizing: border-box;
}


/* =========================================================
   HEADER
   ========================================================= */

.ego-opportunities-header {
	margin-bottom: 48px;
}

.ego-opportunities-header-text {
	max-width: 850px;
}

.ego-opportunities-header h1 {
	margin: 0 0 18px;
	color: var(--eg-text);
	font-size: clamp(36px, 5vw, 64px);
	font-weight: 600;
	line-height: 1.05;
	letter-spacing: -0.035em;
}

.ego-opportunities-header p {
	max-width: 650px;
	margin: 0;
	color: var(--eg-muted);
	font-size: 17px;
	line-height: 1.7;
}


/* =========================================================
   FILTERS
   ========================================================= */

.ego-opportunity-filters {
	display: grid;
	grid-template-columns: minmax(260px, 1.6fr) minmax(180px, 1fr) minmax(180px, 1fr) auto;
	gap: 16px;
	align-items: end;

	margin-bottom: 42px;
	padding: 24px;

	background: rgba(255, 255, 255, 0.02);
	border: 1px solid rgba(153, 155, 159, 0.35);
	border-radius: 22px;
}

.ego-filter-field {
	min-width: 0;
}

.ego-filter-field label {
	display: block;
	margin: 0 0 9px;
	color: var(--eg-text);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}


/* =========================================================
   INPUTS + SELECTS
   ========================================================= */

.ego-filter-field input,
.ego-filter-field select {
	display: block;
	width: 100%;
	height: 52px;
	min-height: 52px;

	padding: 0 16px;

	border: 1px solid rgba(153, 155, 159, 0.55);
	border-radius: 12px;

	background: #1A1E27;
	color: var(--eg-text);

	font-family: inherit;
	font-size: 14px;
	line-height: 52px;

	outline: none;

	appearance: none;
	-webkit-appearance: none;

	transition:
		border-color 0.25s ease,
		background 0.25s ease,
		box-shadow 0.25s ease;
}

.ego-filter-field input::placeholder {
	color: #777B82;
}

.ego-filter-field select {
	padding-right: 42px;
	line-height: normal;

	background-image:
		linear-gradient(45deg, transparent 50%, #999B9F 50%),
		linear-gradient(135deg, #999B9F 50%, transparent 50%);
	background-position:
		calc(100% - 19px) 22px,
		calc(100% - 13px) 22px;
	background-size:
		6px 6px,
		6px 6px;
	background-repeat: no-repeat;
}

.ego-filter-field input:focus,
.ego-filter-field select:focus {
	border-color: var(--eg-text);
	background: #1D222D;
	box-shadow: 0 0 0 3px rgba(203, 203, 203, 0.06);
}


/* =========================================================
   FILTER BUTTONS
   ========================================================= */

.ego-filter-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	height: 52px;
}

.ego-filter-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	height: 52px;
	padding: 0 24px;

	border: 1px solid var(--eg-text);
	border-radius: 12px;

	background: var(--eg-text);
	color: var(--eg-bg);

	font-family: inherit;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;

	cursor: pointer;

	transition:
		background 0.25s ease,
		color 0.25s ease,
		border-color 0.25s ease,
		transform 0.25s ease;
}

.ego-filter-button:hover {
	background: transparent;
	color: var(--eg-text);
	transform: translateY(-1px);
}

.ego-clear-filters {
	color: var(--eg-muted);
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.ego-clear-filters:hover {
	color: var(--eg-text);
}


/* =========================================================
   RESULTS COUNT
   ========================================================= */

.ego-results-count {
	margin-bottom: 18px;

	color: var(--eg-muted);

	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}


/* =========================================================
   OPPORTUNITY LIST
   ========================================================= */

.ego-opportunity-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}


/* =========================================================
   OPPORTUNITY CARD
   ========================================================= */

.ego-opportunity-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;

	padding: 30px 32px;

	background: #1A1E27;

	border: 1px solid rgba(153, 155, 159, 0.45);
	border-radius: 22px;

	transition:
		border-color 0.3s ease,
		transform 0.3s ease,
		background 0.3s ease;
}

.ego-opportunity-card:hover {
	border-color: rgba(203, 203, 203, 0.8);
	background: #1D222D;
	transform: translateY(-3px);
}


/* =========================================================
   MAIN CONTENT
   ========================================================= */

.ego-opportunity-main {
	flex: 1;
	min-width: 0;
}

.ego-opportunity-top {
	margin-bottom: 10px;
}

.ego-opportunity-role {
	display: inline-block;

	color: var(--eg-success);

	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.ego-opportunity-title {
	margin: 0 0 17px;

	font-size: clamp(24px, 3vw, 34px);
	font-weight: 500;
	line-height: 1.15;
	letter-spacing: -0.025em;
}

.ego-opportunity-title a {
	color: var(--eg-text);
	text-decoration: none;
	transition: color 0.25s ease;
}

.ego-opportunity-title a:hover {
	color: #FFFFFF;
}


/* =========================================================
   EXPERTISE TAGS
   ========================================================= */

.ego-opportunity-expertise {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 20px;
}

.ego-expertise-tag {
	display: inline-flex;
	align-items: center;

	padding: 7px 11px;

	border: 1px solid rgba(153, 155, 159, 0.4);
	border-radius: 999px;

	color: var(--eg-muted);

	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
}


/* =========================================================
   META
   ========================================================= */

.ego-opportunity-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 22px;

	color: var(--eg-muted);

	font-size: 13px;
	line-height: 1.5;
}

.ego-opportunity-meta span {
	position: relative;
}

.ego-opportunity-meta span + span::before {
	content: "•";

	position: absolute;
	left: -14px;

	color: #666A72;
}


/* =========================================================
   RIGHT SIDE
   ========================================================= */

.ego-opportunity-side {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: space-between;
	gap: 28px;

	min-width: 190px;
	text-align: right;
}

.ego-opportunity-deadline {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.ego-opportunity-deadline span {
	color: var(--eg-muted);

	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ego-opportunity-deadline strong {
	color: var(--eg-text);

	font-size: 14px;
	font-weight: 600;
}


/* =========================================================
   VIEW OPPORTUNITY BUTTON
   ========================================================= */

.ego-opportunity-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	min-height: 46px;
	padding: 0 19px;

	border: 1px solid rgba(203, 203, 203, 0.6);
	border-radius: 12px;

	color: var(--eg-text);

	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-decoration: none;
	text-transform: uppercase;

	transition:
		background 0.25s ease,
		color 0.25s ease,
		border-color 0.25s ease,
		transform 0.25s ease;
}

.ego-opportunity-button:hover {
	background: var(--eg-text);
	border-color: var(--eg-text);
	color: var(--eg-bg);
	transform: translateY(-1px);
}


/* =========================================================
   NO RESULTS
   ========================================================= */

.ego-no-opportunities {
	padding: 60px 30px;

	border: 1px solid rgba(153, 155, 159, 0.4);
	border-radius: 22px;

	text-align: center;
}

.ego-no-opportunities h2 {
	margin: 0 0 10px;

	color: var(--eg-text);

	font-size: 28px;
	font-weight: 500;
}

.ego-no-opportunities p {
	margin: 0;

	color: var(--eg-muted);
	font-size: 14px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 1000px) {

	.ego-opportunity-filters {
		grid-template-columns: 1fr 1fr;
	}

	.ego-search-field {
		grid-column: 1 / -1;
	}

	.ego-filter-actions {
		grid-column: 1 / -1;
		justify-content: flex-start;
	}

	.ego-opportunity-card {
		align-items: flex-start;
	}

	.ego-opportunity-side {
		min-width: 160px;
	}

}


@media (max-width: 700px) {

	.ego-public-opportunities {
		padding: 45px 18px 70px;
	}

	.ego-opportunities-header {
		margin-bottom: 32px;
	}

	.ego-opportunities-header h1 {
		font-size: 38px;
	}

	.ego-opportunities-header p {
		font-size: 15px;
	}

	.ego-opportunity-filters {
		grid-template-columns: 1fr;
		gap: 15px;

		padding: 18px;
		border-radius: 18px;
	}

	.ego-search-field,
	.ego-filter-actions {
		grid-column: auto;
	}

	.ego-filter-actions {
		height: auto;
		padding-top: 4px;
	}

	.ego-filter-button {
		flex: 1;
	}

	.ego-opportunity-card {
		flex-direction: column;
		gap: 28px;

		padding: 24px;
		border-radius: 18px;
	}

	.ego-opportunity-side {
		width: 100%;
		min-width: 0;

		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: 20px;

		text-align: left;
	}

	.ego-opportunity-deadline {
		align-items: flex-start;
	}

	.ego-opportunity-button {
		flex-shrink: 0;
	}

}


@media (max-width: 480px) {

	.ego-public-opportunities {
		padding-left: 14px;
		padding-right: 14px;
	}

	.ego-opportunities-header h1 {
		font-size: 32px;
	}

	.ego-opportunity-card {
		padding: 20px;
	}

	.ego-opportunity-title {
		font-size: 25px;
	}

	.ego-opportunity-side {
		flex-direction: column;
		align-items: stretch;
	}

	.ego-opportunity-button {
		width: 100%;
	}

}