/*
 * Hero slider (cosselie-core, module hero). Ύψος από τις αναλογίες της πρώτης εικόνας (--csl-hero-r / --csl-hero-rm).
 * Swipe με το native scroll του browser (scroll-snap)· οι κουκκίδες είναι και χρονόμετρο: η μπάρα της
 * ενεργής γεμίζει στον χρόνο της διαφάνειας και τότε έρχεται η επόμενη.
 */
.csl-hero { position: relative; margin: 0; color: #fff; isolation: isolate; container-type: inline-size; }
/* Μεγέθη σε cqi (πλάτος του slider): ίδια αναλογία και στην προεπισκόπηση του admin. */
.csl-hero--full { width: 100vw; max-width: none; margin-inline: calc(50% - 50vw); }
.csl-hero__stage { position: relative; }
.csl-hero__track {
	display: flex;
	overflow-x: auto;
	overflow-y: hidden;
	aspect-ratio: var(--csl-hero-r, 16 / 5);
	/* Desktop: όχι ψηλότερο από 12:5 (2,4:1) ούτε από την οθόνη μείον header, αντίστροφη μέτρηση και μπάρα εμπιστοσύνης
	   (--csl-hero-reserve), ώστε όλα να φαίνονται χωρίς scroll. Ψηλότερες εικόνες (π.χ. 16:9) κόβονται πάνω-κάτω
	   γύρω από το σημείο εστίασης. Ιδανική εικόνα: 1920×800. */
	width: 100%; /* αλλιώς το max-height στενεύει και το πλάτος (aspect-ratio) */
	max-height: max(320px, min(41.667cqi, calc(100svh - var(--csl-hero-reserve, 250px))));
	scroll-snap-type: x mandatory;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
	background: #f2efe9;
}
.csl-hero__track::-webkit-scrollbar { display: none; }
@media (max-width: 767px) {
	.csl-hero__track { aspect-ratio: var(--csl-hero-rm, 4 / 5); max-height: none; }
}
.csl-hero__slide { position: relative; flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; }
.csl-hero__link { position: absolute; inset: 0; display: block; color: inherit; text-decoration: none; }
.csl-hero__link:hover { color: inherit; }
.csl-hero__link:focus-visible { outline: 3px solid #e2ff00; outline-offset: -3px; }
.csl-hero__pic { display: contents; }
.csl-hero .csl-hero__img,
.csl-hero__video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; margin: 0; object-fit: cover; object-position: center; }
.csl-hero__video { z-index: 1; }

/* Κείμενο πάνω στην εικόνα (προαιρετικό) */
.csl-hero__text {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: flex-start;
	gap: 10px;
	padding: clamp(20px, 4vw, 64px) clamp(20px, 5vw, 80px) clamp(64px, 6vw, 88px);
	padding: clamp(20px, 4cqi, 64px) clamp(20px, 5cqi, 80px) clamp(64px, 6cqi, 88px);
	text-align: left;
}
.csl-hero__text--center { align-items: center; text-align: center; }
.csl-hero__text--light { color: #fff; background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 60%); }
.csl-hero__text--dark { color: #000; }
.csl-hero__h { display: block; max-width: 15ch; font-size: clamp(30px, 4.4vw, 68px); font-size: clamp(30px, 4.4cqi, 68px); font-weight: 800; line-height: 1; letter-spacing: -0.03em; text-wrap: balance; }
.csl-hero__p { display: block; max-width: 38ch; font-size: clamp(16px, 1.4vw, 20px); font-size: clamp(16px, 1.4cqi, 20px); font-weight: 500; line-height: 1.4; }
.csl-hero__cta {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	margin-top: 8px;
	padding: 0 24px;
	border-radius: var(--csl-radius, 10px);
	border: 2px solid #fff;
	background: #fff;
	color: #000;
	font-size: 16px;
	font-weight: 700;
	transition: background-color 0.2s ease, color 0.2s ease;
}
.csl-hero__text--dark .csl-hero__cta { border-color: #000; background: #000; color: #fff; }
/* Hover (όπως τα κουμπιά της αρχικής): το κουμπί «αδειάζει» και μένει το περίγραμμα· και με το πληκτρολόγιο. */
.csl-hero__cta:hover,
.csl-hero__link:focus-visible .csl-hero__cta { background: transparent; color: #fff; }
.csl-hero__text--dark .csl-hero__cta:hover,
.csl-hero__link:focus-visible .csl-hero__text--dark .csl-hero__cta { background: transparent; color: #000; }
@media (prefers-reduced-motion: reduce) { .csl-hero__cta { transition: none; } }
/* Αντίστροφη μέτρηση μέσα στο κείμενο (επιλογή «Μέσα στο κείμενο») */
.csl-hero__incount { display: inline-flex; align-items: baseline; gap: 8px; font-size: clamp(14px, 1.2cqi, 17px); font-weight: 600; font-variant-numeric: tabular-nums; }
.csl-hero__incount b { padding: 3px 9px; border-radius: 999px; background: #e2ff00; color: #000; font-weight: 800; }
.csl-hero__incount[hidden] { display: none; }

/* Χρονόμετρο / κουκκίδες + παύση */
.csl-hero__ui {
	position: absolute;
	right: clamp(12px, 2vw, 24px);
	right: clamp(12px, 2cqi, 24px);
	bottom: clamp(12px, 2vw, 22px);
	bottom: clamp(12px, 2cqi, 22px);
	z-index: 3;
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 4px 6px 4px 4px;
	border-radius: var(--csl-radius-s, 6px);
	background: rgba(0, 0, 0, 0.55);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}
.csl-hero__dots { display: flex; align-items: center; }
.csl-hero__dot,
.csl-hero__play {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 28px;
	height: 28px;
	margin: 0;
	padding: 0 4px;
	border: 0;
	border-radius: 4px;
	background: transparent;
	color: #fff;
	cursor: pointer;
}
.csl-hero__dot { width: 32px; transition: width 0.3s ease; }
.csl-hero__dot[aria-current="true"] { width: 52px; }
.csl-hero__dot i { position: relative; display: block; width: 100%; height: 3px; overflow: hidden; border-radius: 2px; background: rgba(255, 255, 255, 0.35); }
.csl-hero__dot b { position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left center; }
.csl-hero__dot.is-past b { transform: scaleX(1); }
.csl-hero__dot[aria-current="true"] b { animation: csl-hero-fill var(--d, var(--csl-hero-d, 7s)) linear forwards; }
.csl-hero.is-paused .csl-hero__dot[aria-current="true"] b { animation-play-state: paused; }
.csl-hero.is-static .csl-hero__dot[aria-current="true"] b { animation: none; transform: scaleX(1); }
.csl-hero__dot:hover i { background: rgba(255, 255, 255, 0.6); }
.csl-hero__dot:focus-visible,
.csl-hero__play:focus-visible,
.csl-hero__arrow:focus-visible { outline: 2px solid #e2ff00; outline-offset: 1px; }
@keyframes csl-hero-fill { to { transform: scaleX(1); } }
.csl-hero__play svg { fill: currentColor; }
.csl-hero__i-play { display: none; }
.csl-hero.is-user-paused .csl-hero__i-play,
.csl-hero.is-static .csl-hero__i-play { display: inline; }
.csl-hero.is-user-paused .csl-hero__i-pause,
.csl-hero.is-static .csl-hero__i-pause { display: none; }

/* Βελάκια: μόνο με ποντίκι, όταν είσαι πάνω στο slider */
.csl-hero__arrow {
	position: absolute;
	top: 50%;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: -22px 0 0;
	padding: 0;
	border: 0;
	border-radius: var(--csl-radius-s, 6px);
	background: rgba(255, 255, 255, 0.92);
	color: #000;
	cursor: pointer;
	opacity: 0;
	transition: opacity 0.2s ease;
}
.csl-hero__arrow--prev { left: clamp(12px, 2vw, 24px); }
.csl-hero__arrow--next { right: clamp(12px, 2vw, 24px); }
.csl-hero:hover .csl-hero__arrow,
.csl-hero__arrow:focus-visible { opacity: 1; }
@media (hover: none), (max-width: 767px) {
	.csl-hero__arrow { display: none; }
}

/* Αντίστροφη μέτρηση: μόνο όταν η διαφάνεια που φαίνεται λήγει πραγματικά */
.csl-hero__count {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: center;
	gap: 4px 12px;
	padding: 10px 16px;
	background: #000;
	color: #fff;
	font-size: 14px;
	line-height: 1.2;
}
.csl-hero__count[hidden] { display: none; }
.csl-hero__clock { display: inline-flex; align-items: baseline; gap: 2px; font-variant-numeric: tabular-nums; }
.csl-hero__clock b { min-width: 1.4em; color: #e2ff00; font-size: 18px; font-weight: 800; text-align: right; }
.csl-hero__clock small { margin-right: 8px; color: rgba(255, 255, 255, 0.7); font-size: 12px; }
.csl-hero__clock small:last-child { margin-right: 0; }

/* Κινητό (πλάτος του slider, ώστε να ισχύει και στην προεπισκόπηση): μεγάλος τίτλος, πιο σκούρο κάτω μέρος, όπως το hero της αρχικής */
@container (max-width: 767px) {
	.csl-hero__track { max-height: none; }
	.csl-hero__text { gap: 8px; padding: 20px 20px 60px; }
	.csl-hero__text--light { background: linear-gradient(to top, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.28) 42%, rgba(0, 0, 0, 0) 64%); }
	.csl-hero__h { max-width: 13ch; font-size: clamp(32px, 9.5cqi, 44px); line-height: 0.98; }
	.csl-hero__p { font-size: 15px; }
	.csl-hero__cta { min-height: 46px; margin-top: 6px; }
}
@media (max-width: 767px) {
	.csl-hero__track { max-height: 78svh; }
}

.csl-hero.is-single .csl-hero__track { overflow: hidden; }
.csl-hero .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
	.csl-hero__track { scroll-behavior: auto; }
	.csl-hero__dot, .csl-hero__arrow { transition: none; }
}
