/**
 * Kautz Success Stories - Frontend Stylesheet
 * 
 * BEM Standard CSS with CSS custom variables for dynamic styling & responsive layouts.
 */

:root {
	--kss-primary-gold: #d4af37;
	--kss-overlay-bg: #0b0f19;
	--kss-overlay-opacity: 0.65;
	--kss-text-color: #ffffff;
	--kss-anim-speed: 600ms;
}

.kss-container {
	position: relative;
	width: 100%;
	min-height: 520px;
	border-radius: 16px;
	overflow: hidden;
	background-color: #111827;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	user-select: none;
	-webkit-user-select: none;
	touch-action: pan-y;
}

.kss-slider-wrapper {
	position: relative;
	width: 100%;
	height: 100%;
	flex-grow: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* ==========================================
 * SLIDE COMPONENT
 * ========================================== */
.kss-slide {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: scale(1.03);
	transition: opacity var(--kss-anim-speed, 600ms) cubic-bezier(0.4, 0, 0.2, 1),
	            transform var(--kss-anim-speed, 600ms) cubic-bezier(0.4, 0, 0.2, 1),
	            visibility var(--kss-anim-speed, 600ms);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1;
}

.kss-slide.active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: scale(1);
	z-index: 2;
}

.kss-slide-bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	z-index: 1;
}

.kss-overlay {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	background-color: var(--kss-overlay-bg);
	opacity: var(--kss-overlay-opacity);
	z-index: 2;
	transition: background-color 0.3s ease, opacity 0.3s ease;
}

/* ==========================================
 * CONTENT COMPONENT
 * ========================================== */
.kss-content {
	position: relative;
	z-index: 3;
	max-width: 900px;
	width: 90%;
	margin: 0 auto;
	padding: 40px 20px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
}

.kss-logo {
	margin-bottom: 28px;
	display: flex;
	justify-content: center;
	align-items: center;
}

.kss-logo img {
	max-width: 180px;
	max-height: 70px;
	width: auto;
	height: auto;
	object-fit: contain;
	filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
	transition: transform 0.3s ease;
}

.kss-logo img:hover {
	transform: scale(1.05);
}

.kss-story {
	margin: 0 0 24px 0;
	padding: 0;
	font-family: inherit;
	font-size: 1.35rem;
	font-style: italic;
	font-weight: 300;
	line-height: 1.7;
	color: var(--kss-text-color);
	max-width: 820px;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
	letter-spacing: 0.2px;
}

.kss-author {
	font-family: inherit;
	font-size: 0.9rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 2.5px;
	color: var(--kss-primary-gold);
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* ==========================================
 * TIMELINE & FOOTER NAVIGATION
 * ========================================== */
.kss-timeline-bar {
	position: relative;
	z-index: 4;
	width: 100%;
}

.kss-timeline {
	width: 100%;
	height: 4px;
	background-color: rgba(255, 255, 255, 0.2);
	position: relative;
	overflow: hidden;
}

.kss-progress {
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 0%;
	background-color: var(--kss-primary-gold);
	transition: width 0.1s linear;
}

.kss-navigation-footer {
	position: relative;
	z-index: 4;
	width: 100%;
	padding: 16px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	box-sizing: border-box;
	background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 100%);
}

.kss-nav-btn {
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.25);
	color: #ffffff;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	outline: none;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	transition: all 0.3s ease;
}

.kss-nav-btn:hover {
	background: rgba(255, 255, 255, 0.3);
	border-color: var(--kss-primary-gold);
	color: var(--kss-primary-gold);
	transform: translateY(-2px);
}

.kss-nav-btn:focus-visible {
	box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.5);
}

.kss-dots {
	display: flex;
	align-items: center;
	gap: 10px;
}

.kss-dot {
	background: transparent;
	border: none;
	padding: 6px;
	cursor: pointer;
	outline: none;
}

.kss-dot-inner {
	display: block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.35);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.kss-dot.active .kss-dot-inner {
	background-color: var(--kss-primary-gold);
	width: 28px;
	border-radius: 6px;
	box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.kss-dot:hover .kss-dot-inner {
	background-color: rgba(255, 255, 255, 0.8);
}

/* ==========================================
 * RESPONSIVE BREAKPOINTS
 * ========================================== */
@media (max-width: 768px) {
	.kss-container {
		min-height: 440px;
	}

	.kss-content {
		padding: 30px 15px;
	}

	.kss-story {
		font-size: 1.15rem;
		line-height: 1.6;
		margin-bottom: 18px;
	}

	.kss-author {
		font-size: 0.8rem;
		letter-spacing: 1.8px;
	}

	.kss-logo {
		margin-bottom: 20px;
	}

	.kss-logo img {
		max-width: 140px;
		max-height: 55px;
	}

	.kss-navigation-footer {
		padding: 12px 16px;
	}

	.kss-nav-btn {
		width: 34px;
		height: 34px;
	}
}

@media (max-width: 480px) {
	.kss-container {
		min-height: 400px;
	}

	.kss-story {
		font-size: 1rem;
	}

	.kss-author {
		font-size: 0.75rem;
		letter-spacing: 1.2px;
	}
}
