/**
 * Name List (Badges) - Elementor widget style.
 * Founder/member list layout used on the About page.
 */

.sm-namelist {
	--sm-nl-avatar: 40px;
	--sm-nl-navy: #06254d;
	--sm-nl-blue: #123b6d;
	--sm-nl-muted: #64748b;
	--sm-nl-gold: #d5a84b;
	--sm-nl-line: #dce7f4;
	--sm-nl-soft: #f5f9ff;
	position: relative;
	width: 100%;
}

.sm-namelist,
.sm-namelist * {
	box-sizing: border-box;
}

/* Header */
.sm-namelist__header {
	display: grid;
	grid-template-columns: minmax(170px, 250px) minmax(0, 680px);
	align-items: center;
	justify-content: center;
	gap: clamp(28px, 5vw, 64px);
	margin: 0 auto clamp(30px, 4vw, 46px);
}

.sm-namelist__header--no-badge,
.sm-namelist__header--no-intro {
	grid-template-columns: minmax(0, 760px);
}

.sm-namelist__header--no-badge .sm-namelist__intro,
.sm-namelist__header--no-intro .sm-namelist__badge {
	justify-self: center;
}

.sm-namelist__header--no-badge .sm-namelist__intro {
	max-width: 760px;
}

.sm-namelist__badge {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-height: 92px;
	color: var(--sm-nl-gold);
	flex: 0 0 auto;
}

.sm-namelist__badge::after {
	content: "";
	position: absolute;
	top: 6px;
	right: -32px;
	width: 1px;
	height: calc(100% - 12px);
	background: linear-gradient(to bottom, transparent, #d5deea 15%, #d5deea 85%, transparent);
}

.sm-namelist__laurel {
	display: block;
	width: 28px;
	height: 66px;
	color: #9aa8bb;
	opacity: .9;
}

.sm-namelist__badge-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	line-height: 1;
	min-width: 78px;
}

.sm-namelist__count {
	color: var(--sm-nl-gold);
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(54px, 5vw, 76px);
	font-weight: 400;
	line-height: .9;
	letter-spacing: 0;
}

.sm-namelist__count-label {
	margin-top: 12px;
	color: var(--sm-nl-navy);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .4px;
	line-height: 1.2;
	text-transform: uppercase;
	white-space: nowrap;
}

.sm-namelist__intro {
	position: relative;
	max-width: 680px;
	text-align: center;
	padding-top: 34px;
}

.sm-namelist__intro::before {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	width: min(180px, 52vw);
	height: 20px;
	transform: translateX(-50%);
	background:
		linear-gradient(var(--sm-nl-gold), var(--sm-nl-gold)) left 50% / calc(50% - 22px) 1px no-repeat,
		linear-gradient(var(--sm-nl-gold), var(--sm-nl-gold)) right 50% / calc(50% - 22px) 1px no-repeat;
	opacity: .82;
}

.sm-namelist__intro::after {
	content: "\2665";
	position: absolute;
	top: -2px;
	left: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 22px;
	transform: translateX(-50%);
	color: var(--sm-nl-gold);
	font-size: 20px;
	line-height: 1;
}

.sm-namelist__title {
	margin: 0 0 12px;
	color: var(--sm-nl-navy);
	font-size: clamp(34px, 4vw, 52px);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: 0;
}

.sm-namelist__desc {
	max-width: 580px;
	margin: 0 auto;
	color: var(--sm-nl-muted);
	font-size: 15px;
	line-height: 1.7;
}

/* Grid */
.sm-namelist__grid {
	--sm-nl-min: 265px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--sm-nl-min)), 1fr));
	gap: 14px 20px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.sm-namelist__card {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	text-align: left;
	min-height: 58px;
	gap: 12px;
	padding: 10px 18px;
	background-color: #fff;
	border: 1px solid var(--sm-nl-line);
	border-radius: 10px;
	box-shadow: 0 8px 22px rgba(6, 37, 77, .07);
	overflow: hidden;
	transition: background-color .22s ease, border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}

.sm-namelist__card::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: linear-gradient(120deg, rgba(255, 255, 255, .92), rgba(244, 248, 253, .62));
	pointer-events: none;
	z-index: 0;
}

.sm-namelist__card:hover {
	background-color: #f8fbff;
	border-color: #cbd9eb;
	box-shadow: 0 14px 30px rgba(6, 37, 77, .12);
	transform: translateY(-2px);
}

.sm-namelist__card > * {
	position: relative;
	z-index: 1;
}

/* İşaret bölgesi: index + ikon + ayraç tek blokta, sabit yapı.
   Sabit genişlikli öğeler sayesinde isim her kartta AYNI x'te başlar. */
.sm-namelist__lead {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.sm-namelist__index {
	flex: 0 0 auto;
	width: 2.4ch;
	text-align: right;
	color: var(--sm-nl-blue);
	font-size: .9em;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	opacity: .55;
}

.sm-namelist__icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	color: var(--sm-nl-blue);
	font-size: 16px;
	line-height: 1;
	background: #f1f6ff;
	border: 1px solid #e4edf9;
	border-radius: 50%;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}

.sm-namelist__icon svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
}

.sm-namelist__divider {
	flex: 0 0 auto;
	width: 1px;
	align-self: center;
	min-height: 28px;
	background-color: rgba(213, 168, 75, .58);
}

.sm-namelist__avatar {
	flex: 0 0 auto;
	width: var(--sm-nl-avatar);
	height: var(--sm-nl-avatar);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	background-color: var(--sm-nl-blue);
	border-radius: 50%;
	font-size: calc(var(--sm-nl-avatar) * .38);
	font-weight: 800;
	letter-spacing: .5px;
	line-height: 1;
	text-transform: uppercase;
}

.sm-namelist__card--colorful .sm-namelist__avatar {
	background-color: hsl(var(--sm-nl-hue, 210), 62%, 42%);
}

.sm-namelist__name {
	flex: 1 1 auto;
	min-width: 0;
	color: var(--sm-nl-navy);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.32;
	text-align: left;
	word-break: normal;
	overflow-wrap: anywhere;
}

/* Toggle */
.sm-namelist--collapsible.is-collapsed .sm-namelist__card--extra {
	display: none;
}

.sm-namelist__more {
	display: flex;
	justify-content: center;
	margin-top: 18px;
}

.sm-namelist__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	gap: 10px;
	padding: 9px 24px;
	color: var(--sm-nl-navy);
	background: #fff;
	border: 1px solid #b9c9dd;
	border-radius: 999px;
	box-shadow: 0 7px 18px rgba(6, 37, 77, .08);
	cursor: pointer;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .35px;
	line-height: 1;
	text-transform: uppercase;
	transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease, transform .2s ease;
}

.sm-namelist__toggle:hover,
.sm-namelist__toggle:focus {
	color: #fff;
	background-color: var(--sm-nl-navy);
	border-color: var(--sm-nl-navy);
	box-shadow: 0 10px 24px rgba(6, 37, 77, .16);
	transform: translateY(-1px);
}

.sm-namelist__chevron {
	flex: 0 0 auto;
	transition: transform .25s ease;
}

.sm-namelist:not(.is-collapsed) .sm-namelist__chevron {
	transform: rotate(180deg);
}

@media (min-width: 1180px) {
	.sm-namelist__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.sm-namelist__header {
		grid-template-columns: 1fr;
		gap: 22px;
		margin-bottom: 28px;
	}

	.sm-namelist__badge::after {
		display: none;
	}

	.sm-namelist__intro {
		padding-top: 30px;
	}

	.sm-namelist__title {
		font-size: clamp(30px, 9vw, 42px);
	}

	.sm-namelist__grid {
		gap: 12px;
	}
}

@media (max-width: 480px) {
	.sm-namelist__card {
		min-height: 56px;
		padding: 10px 14px;
	}

	.sm-namelist__name {
		font-size: 14px;
	}

	.sm-namelist__toggle {
		width: 100%;
		max-width: 310px;
	}
}
