/*
 * EVUL members blocks: sector list, member grids, stamp.
 * Ported from hello-elementor-child/members/members.css and style.css (legacy class names kept).
 * Colours/fonts come from theme custom properties with the legacy values as fallbacks.
 */

/* Sector list [evul_emtak_list] */
.emtak_name_list_items {
	width: 100%;
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.emtak_name {
	list-style-type: none;
	display: block;
	margin: 0;
}

.emtak_name:not(:last-child)::after {
	content: none;
}

.emtak_name a {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	padding: 0.4rem 0.85rem;
	border: 1px solid var(--color-line, #b7b7b7);
	border-radius: var(--evul-radius-pill, 4px);
	background: #fff;
	font-family: var(--evul-font-family, "Montserrat", sans-serif);
	font-size: 16px;
	font-weight: 400;
	text-decoration: none;
}

.emtak_list-text {
	color: var(--evul-color-primary-dark, #0a4d89);
	transition: color 0.3s;
	font-weight: 500;
}

.emtak_name a:hover,
.emtak_name a:focus-visible {
	background: var(--evul-color-primary, #0070bc);
	border-color: var(--evul-color-primary, #0070bc);
}

.emtak_name a.is-current {
	background: var(--evul-color-primary, #0070bc);
	border-color: var(--evul-color-primary, #0070bc);
}

.emtak_name a:hover .emtak_list-text,
.emtak_name a:focus-visible .emtak_list-text,
.emtak_name a.is-current .emtak_list-text {
	color: #fff;
}

/* Section headings */
.evul_header {
	max-width: 1360px;
	position: relative;
	margin: 0 auto 1.5rem;
	padding: 0 10px 1.1rem;
	border-bottom: 1px solid var(--color-line, rgba(0, 0, 0, 0.25));
}

.evul_header::after {
	content: "";
	position: absolute;
	bottom: -2px;
	left: 10px;
	width: 3.5rem;
	height: 3px;
	background: var(--color-red-hero, #e0002b);
}

.header-flex {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 1rem;
}

.evul_header_kicker {
	display: block;
	margin-bottom: 0.2rem;
	color: var(--color-blue-deep, #0a4d89);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	line-height: 1.5;
	text-transform: uppercase;
}

.evul_header h1,
.evul_header .evul_header_title {
	font-family: var(--evul-font-family, "Montserrat", sans-serif);
	font-size: clamp(1.65rem, 2.3vw, 2.25rem);
	font-weight: 600;
	line-height: 1.18;
	margin: 0;
	color: var(--color-heading, #000);
}

.watch_all,
.back_button {
	color: var(--evul-color-primary-dark, #0a4d89) !important;
	font-family: var(--evul-font-family, "Montserrat", sans-serif);
	font-weight: 600;
	font-size: 1rem !important;
	display: flex;
	align-items: center;
	gap: 5px;
	text-decoration: none;
}

.watch_all:hover,
.back_button:hover {
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.back_button:hover {
	cursor: pointer;
}

.watch_all .evul_arrow,
.back_button .evul_arrow {
	filter: invert(19%) sepia(96%) saturate(1308%) hue-rotate(188deg) brightness(96%) contrast(94%);
	width: 1rem;
	height: 11px;
}

.back_button .evul_arrow {
	transform: rotate(180deg);
}

/* Member grid */
.evul_emtak {
	max-width: 1400px;
	margin-left: auto;
	margin-right: auto;
}

.grid-container {
	max-width: 1400px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

.evul_box {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	position: relative;
	width: calc(33.33% - 26.67px);
	height: 148.4px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
	margin: 0 10px 20px;
	box-sizing: border-box;
}

.evul_box::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image: url("../img/evul_block_white.svg");
	background-position: 50% top;
	background-repeat: no-repeat;
	background-size: cover;
	opacity: 0.5;
	background-color: #fff;
	z-index: 0;
	transition: background 0.3s, border 0.3s, border-radius 0.3s, box-shadow 0.3s;
}

.evul_box:hover::before {
	background-image: url("../img/evul_block_hover.svg");
}

.evul_box:focus-within::before {
	background-image: url("../img/evul_block_hover.svg");
}

.evul_box_main {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: block;
	color: #000;
	text-decoration: none;
}

.evul_box_main:focus-visible {
	outline: 3px solid var(--evul-color-primary-dark, #0a4d89);
	outline-offset: 2px;
}

.evul_box_text {
	padding: 10px 10px 0;
	position: relative;
	z-index: 1;
	max-width: 69%;
}

.evul_box_title {
	margin: 0 0 0.5rem;
	line-height: 26px;
}

.evul_box_title {
	color: #000;
	font-family: var(--evul-font-family, "Montserrat", sans-serif);
	font-size: clamp(16.5px, 1.5vw, 23px);
	font-weight: 600;
	text-decoration: none;
	word-break: break-word;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

.evul_box:hover .evul_box_title,
.evul_box:focus-within .evul_box_title {
	color: var(--evul-color-primary-dark, #0a4d89);
}

.evul_box_text p {
	font-size: clamp(14px, 1.5vw, 16px);
	font-weight: 400;
	font-family: var(--evul-font-family, "Montserrat", sans-serif);
	line-height: 24px;
	margin: 0;
	text-overflow: ellipsis;
	overflow: hidden;
	white-space: nowrap;
}

.evul_box_stamp {
	position: absolute;
	top: 50%;
	right: 10px;
	transform: translateY(-50%);
	padding: 10px;
	z-index: 2;
	max-width: calc(100% - 20px);
	box-sizing: border-box;
	pointer-events: none;
}

.evul_box_stamp svg a {
	pointer-events: auto;
}

.evul_stamp_svg {
	display: block;
	width: 120px;
	height: 120px;
}

/* The artwork uses currentColor; set it on <use> so theme link colours (the stamp is a link) don't tint it. */
.evul_stamp_svg use {
	color: var(--evul-stamp-color, #000);
}

@media (max-width: 1200px) {
	.evul_box_text {
		max-width: 59%;
	}
}

@media (max-width: 1016px) {
	.evul_box {
		width: calc((100% - 100px) / 2);
		height: 200px;
	}

	.evul_box_text {
		max-width: 62%;
	}

	.evul_box_text p {
		text-overflow: unset;
		white-space: unset;
	}
}

@media (max-width: 800px) {
	.evul_box {
		width: 100%;
	}

	.evul_box_title {
		-webkit-line-clamp: 3;
	}
}

@media (max-width: 768px) {
	.evul_header {
		padding: 0 10px 1rem;
	}

	.header-flex {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.65rem;
	}

	.evul_header h1,
	.evul_header .evul_header_title {
		font-size: 1.65rem;
	}

	.watch_all {
		font-size: 1rem !important;
	}

	.watch_all .evul_arrow {
		width: 0.8rem;
		height: 8px;
	}
}

.evul-notice {
	font-family: var(--evul-font-family, "Montserrat", sans-serif);
	max-width: 1360px;
	margin: 1rem auto;
	padding: 0 20px;
}
