/* TKK Hero Banner — LCP-yhteensopiva karuselli
   Ei opacity-animaatioita. Siirtymät käyttävät transform:translateX().
   ------------------------------------------------------------------ */

/* Ulompi kontaineri */
.tkk-banner {
	position: relative;
	overflow: hidden;
	background: #555555;
	border-radius: 15px;
	min-height: 300px;
	font-family: Roboto, sans-serif;
	contain: layout;
}

@media (min-width: 600px) {
	.tkk-banner {
		min-height: 400px;
	}
}

/* Track — kaikki slidet peräkkäin */
.tkk-banner__track {
	display: flex;
	width: 100%;
	cursor: grab;
	/* Ei transition tässä — JS lisää sen dynaamisesti */
}

.tkk-banner__track:active {
	cursor: grabbing;
}

/* Yksittäinen slide */
.tkk-banner__slide {
	flex: 0 0 100%;
	width: 100%;
	min-height: 300px;
	display: flex;
	align-items: stretch;
	position: relative; /* tarvitaan ::before-overlaylle */
	overflow: hidden;
}

@media (min-width: 600px) {
	.tkk-banner__slide {
		min-height: 400px;
	}
}


/* Sisäinen wrapper — rajoittaa leveyden ja centeröi */
.tkk-banner__inner {
	display: flex;
	align-items: center;
	width: 100%;
	max-width: 960px;
	margin: 0 auto;
	padding: 30px 20px;
	gap: 20px;
	/* Mobiilissa: kuva ylös, teksti alle */
	flex-direction: column-reverse;
}

@media (min-width: 600px) {
	.tkk-banner__inner {
		flex-direction: row;
		padding: 30px 50px;
	}
}

.tkk-banner__content,
.tkk-banner__image {
	position: relative;
	z-index: 1;
}

/* Tekstisarake (vasen, 30%) */
.tkk-banner__content {
	flex: 0 0 auto;
	width: 100%;
	text-align: center;
}

@media (min-width: 600px) {
	.tkk-banner__content {
		flex: 0 0 var(--tkk-text-width, 30%);
		max-width: var(--tkk-text-width, 300px);
		text-align: left;
	}
}

.tkk-banner__heading {
	color: #ffffff;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 12px;
	font-family: Roboto, sans-serif;
}

@media (min-width: 600px) {
	.tkk-banner__heading {
		font-size: 30px;
		margin-bottom: 16px;
	}
}

@media (min-width: 960px) {
	.tkk-banner__heading {
		font-size: 36px;
	}
}

.tkk-banner__desc {
	color: #ffffff;
	font-size: 16px;
	line-height: 1.5;
	margin: 0 0 20px;
	font-family: Roboto, sans-serif;
}

@media (min-width: 600px) {
	.tkk-banner__desc {
		font-size: 18px;
	}
}

@media (min-width: 960px) {
	.tkk-banner__desc {
		font-size: 23px;
	}
}

.tkk-banner__btn {
	display: inline-block;
	background: #005fb3;
	color: #ffffff;
	text-decoration: none;
	padding: 0.85em 1.5em;
	border-radius: 5px;
	font-size: 15px;
	font-weight: 700;
	font-family: Roboto, sans-serif;
	letter-spacing: 1px;
	text-transform: none;
	transition: background 0.2s;
	white-space: nowrap;
}

.tkk-banner__btn:hover,
.tkk-banner__btn:focus {
	background: #004a8f;
	color: #ffffff;
	text-decoration: none;
}

/* Kuvasarake (oikea, 70%) */
.tkk-banner__image {
	flex: 0 0 auto;
	width: 100%;
	display: flex;
	justify-content: center;
}

@media (min-width: 600px) {
	.tkk-banner__image {
		flex: 0 0 var(--tkk-img-width, 70%);
		justify-content: flex-end;
	}
}

.tkk-banner__image img {
	display: block;
	max-width: 100%;
	height: auto;
	border-radius: 20px;
	object-fit: contain;
	max-height: 280px;
}

@media (min-width: 600px) {
	.tkk-banner__image img {
		max-height: 340px;
	}
}

/* ---------------------------------------------------------------------------
   Vain kuva -dia
   --------------------------------------------------------------------------- */

.tkk-banner__slide--image-only {
	background: #000;
	display: block;
	position: relative;
}

.tkk-banner__image-link {
	display: block;
	width: 100%;
	height: 100%;
}

.tkk-banner__slide--image-only img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 0;
	max-height: none;
}

/* ---------------------------------------------------------------------------
   Navigointinuolet
   --------------------------------------------------------------------------- */

.tkk-banner__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	background: rgba(0, 0, 0, 0.45);
	color: #fff;
	border: none;
	cursor: pointer;
	width: 44px;
	height: 60px;
	font-size: 32px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	padding: 0;
	transition: background 0.2s;
}

.tkk-banner__nav:hover {
	background: rgba(0, 0, 0, 0.7);
}

.tkk-banner__nav--prev {
	left: 8px;
}

.tkk-banner__nav--next {
	right: 8px;
}

/* ---------------------------------------------------------------------------
   Pisteet (dots)
   --------------------------------------------------------------------------- */

.tkk-banner__dots {
	position: absolute;
	bottom: 12px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 8px;
	z-index: 10;
}

.tkk-banner__dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.7);
	background: transparent;
	cursor: pointer;
	padding: 0;
	transition: background 0.2s, border-color 0.2s;
}

.tkk-banner__dot--active,
.tkk-banner__dot:hover {
	background: #ffffff;
	border-color: #ffffff;
}

/* ===========================================================================
   TKK Products — tuotekaruselli (korvaa Smart Slider 27)
   Näyttää 4 korttia kerralla desktopilla, 2 tabletilla, 1-2 mobiilissa.
   =========================================================================== */

.tkk-products {
	position: relative;
	overflow: hidden;
}

/* Estä mahdolliset globaalit a-elementtien border/outline -tyylit */
.tkk-products__card-link,
.tkk-products__card-link:hover,
.tkk-products__card-link:focus,
.tkk-products__btn,
.tkk-products__btn:hover,
.tkk-products__btn:focus {
	text-decoration: none;
	border-bottom: none;
	outline-offset: 2px;
}

.tkk-products__card-link:focus-visible,
.tkk-products__btn:focus-visible {
	outline: 2px solid #005DB3;
}

.tkk-products__track {
	display: flex;
	gap: 16px;
	align-items: stretch;
	transition: transform 0.35s ease-out;
	cursor: grab;
	user-select: none;
}

.tkk-products__track.is-dragging {
	transition: none;
	cursor: grabbing;
}

/* Kortti — kiinteä leveys marquee-tilassa */
.tkk-products__card {
	flex: 0 0 200px;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 8px;
	overflow: hidden;
}

@media (min-width: 600px) {
	.tkk-products__card {
		flex: 0 0 220px;
	}
}

@media (min-width: 960px) {
	.tkk-products__card {
		flex: 0 0 200px;
	}
}

.tkk-products__card-link {
	display: flex;
	flex-direction: column;
	flex: 1;
	text-decoration: none;
	color: inherit;
}

.tkk-products__card-link:hover .tkk-products__title {
	color: #005DB3;
}

.tkk-products__img-wrap {
	height: 200px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f9f9f9;
	padding: 8px;
}

.tkk-products__img-wrap img {
	max-width: 100%;
	max-height: 184px;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
}

.tkk-products__info {
	padding: 12px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.tkk-products__author {
	font-size: 12px;
	color: #666;
	margin: 0 0 4px;
	font-family: Roboto, sans-serif;
}

.tkk-products__title {
	font-size: 14px;
	font-weight: 600;
	color: #222;
	margin: 0 0 8px;
	line-height: 1.3;
	font-family: Roboto, sans-serif;
	flex: 1;
}

.tkk-products__price {
	font-size: 16px;
	font-weight: 700;
	color: #005DB3;
	margin: 0;
	font-family: Roboto, sans-serif;
}

.tkk-products__price .woocommerce-Price-amount {
	color: #005DB3;
}

.tkk-products__btn {
	display: block;
	background: #005DB3;
	color: #fff;
	text-align: center;
	text-decoration: none;
	padding: 10px;
	font-size: 14px;
	font-weight: 600;
	font-family: Roboto, sans-serif;
	transition: background 0.2s;
}

.tkk-products__btn:hover {
	background: #004a8f;
	color: #fff;
}

/* Navigointinuolet */
.tkk-products__nav {
	position: absolute;
	top: 40%;
	transform: translateY(-50%);
	z-index: 10;
	background: rgba(0, 0, 0, 0.5);
	color: #fff;
	border: none;
	cursor: pointer;
	width: 36px;
	height: 52px;
	font-size: 28px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	padding: 0;
	transition: background 0.2s;
}

.tkk-products__nav:hover {
	background: rgba(0, 0, 0, 0.75);
}

.tkk-products__nav--prev {
	left: 0;
}

.tkk-products__nav--next {
	right: 0;
}
