/* ==========================================================================
   Başarı Hikayeleri — Success Stories
   ========================================================================== */

.ek-success-stories-page .bg-primary {
	background: linear-gradient(135deg, #754ffe 0%, #5b3fd4 100%) !important;
}

.ek-success-stories {
	padding-top: 2.5rem;
}

.ek-success-stories__list {
	display: flex;
	flex-direction: column;
}

/* ── Story Card ── */
.ek-story-card {
	display: flex;
	align-items: flex-start;
	gap: 1.75rem;
	padding: 2rem 0;
	border-bottom: 1px solid var(--ek-border, #eae7f5);
}

.ek-story-card:first-child {
	padding-top: 0.5rem;
}

.ek-story-card:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

/* Avatar */
.ek-story-card__avatar {
	flex-shrink: 0;
	width: 110px;
	height: 110px;
	border-radius: 50%;
	border: 5px solid #c8c4d8;
	background: var(--ek-avatar-color, #754ffe);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	transition: border-color 0.25s ease, transform 0.25s ease;
}

.ek-story-card:hover .ek-story-card__avatar {
	border-color: var(--ek-avatar-color, #754ffe);
	transform: scale(1.03);
}

.ek-story-card__initials {
	font-size: 2rem;
	font-weight: 700;
	color: #fff;
	letter-spacing: 0.02em;
	user-select: none;
}

/* Body */
.ek-story-card__body {
	flex: 1;
	min-width: 0;
}

.ek-story-card__name {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--ek-primary, #754ffe);
	margin: 0 0 0.25rem;
	line-height: 1.3;
}

.ek-story-card__course {
	font-size: 0.8125rem;
	font-weight: 600;
	color: #8b87a0;
	margin: 0 0 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.ek-story-card__excerpt {
	font-size: 0.9375rem;
	line-height: 1.7;
	color: var(--ek-text, #18113c);
	margin: 0 0 1rem;
}

.ek-story-card__more {
	border-radius: 0.4rem !important;
	font-weight: 600;
	font-size: 0.8125rem;
	padding: 0.35rem 1.1rem !important;
	border-color: var(--ek-primary, #754ffe) !important;
	color: var(--ek-primary, #754ffe) !important;
	background: #fff !important;
	transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.ek-story-card__more:hover,
.ek-story-card__more:focus-visible {
	background: var(--ek-primary, #754ffe) !important;
	color: #fff !important;
	box-shadow: 0 4px 14px rgba(117, 79, 254, 0.28);
}

/* ── Modal ── */
.ek-story-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
}

.ek-story-modal[hidden] {
	display: none;
}

.ek-story-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(24, 17, 60, 0.55);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}

.ek-story-modal__dialog {
	position: relative;
	background: #fff;
	border-radius: 1rem;
	padding: 2.5rem 2rem 2rem;
	max-width: 560px;
	width: 100%;
	max-height: 85vh;
	overflow-y: auto;
	box-shadow: 0 24px 64px rgba(24, 17, 60, 0.18);
	animation: ek-modal-in 0.25s ease;
}

@keyframes ek-modal-in {
	from {
		opacity: 0;
		transform: translateY(16px) scale(0.97);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.ek-story-modal__close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	width: 36px;
	height: 36px;
	border: none;
	background: var(--ek-primary-soft, rgba(117, 79, 254, 0.1));
	border-radius: 50%;
	font-size: 1.4rem;
	line-height: 1;
	color: var(--ek-text, #18113c);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.2s ease;
}

.ek-story-modal__close:hover {
	background: rgba(117, 79, 254, 0.2);
}

.ek-story-modal__avatar {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	border: 4px solid #c8c4d8;
	background: var(--ek-avatar-color, #754ffe);
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1rem;
	font-size: 1.5rem;
	font-weight: 700;
	color: #fff;
}

.ek-story-modal__name {
	font-size: 1.35rem;
	font-weight: 700;
	color: var(--ek-primary, #754ffe);
	text-align: center;
	margin: 0 0 0.25rem;
}

.ek-story-modal__course {
	font-size: 0.8125rem;
	font-weight: 600;
	color: #8b87a0;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin: 0 0 1.25rem;
}

.ek-story-modal__content {
	font-size: 0.9375rem;
	line-height: 1.75;
	color: var(--ek-text, #18113c);
}

body.ek-modal-open {
	overflow: hidden;
}

/* ── Responsive ── */
@media (max-width: 575.98px) {
	.ek-story-card {
		flex-direction: column;
		align-items: center;
		text-align: center;
		gap: 1rem;
		padding: 1.5rem 0;
	}

	.ek-story-card__avatar {
		width: 90px;
		height: 90px;
	}

	.ek-story-card__initials {
		font-size: 1.6rem;
	}

	.ek-story-modal__dialog {
		padding: 2rem 1.25rem 1.5rem;
	}
}
