/* Qode8 Charts — slider and chart container */

.q8c-slider {
	--q8c-height: 420px;
	--q8c-accent: #01729a;
	--q8c-title: #014e69;
	--q8c-text: #555;
	--q8c-arrow: #01729a;
	--q8c-dot: #c9d6dc;
	position: relative;
	font-family: "Changa", sans-serif;
	direction: rtl;
	text-align: right;
	outline: none;
}

.q8c-slider *,
.q8c-slider *::before,
.q8c-slider *::after {
	box-sizing: border-box;
}

.q8c-viewport {
	overflow: hidden;
	position: relative;
}

/* Slides are stacked in one grid cell; only the active slide and the one
   leaving are visible, so the last-to-first step is as smooth as any other. */
.q8c-track {
	display: grid;
}

.q8c-slide {
	grid-area: 1 / 1;
	min-width: 0;
	padding: 4px 56px 8px;
	visibility: hidden;
}

.q8c-slide.is-active,
.q8c-slide.is-leaving {
	visibility: visible;
}

.q8c-slide.is-moving {
	transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
	will-change: transform;
}

/* Countdown ring (autoplay only): fills up until the next slide. */
.q8c-timer {
	position: absolute;
	top: 6px;
	left: 10px;
	width: 26px;
	height: 26px;
	z-index: 3;
	pointer-events: none;
	transition: opacity 0.25s;
}

.q8c-slider[dir="ltr"] .q8c-timer {
	left: auto;
	right: 10px;
}

.q8c-timer svg {
	display: block;
	width: 100%;
	height: 100%;
	transform: rotate(-90deg);
}

.q8c-timer circle {
	fill: none;
	stroke-width: 3;
}

.q8c-timer-bg {
	stroke: var(--q8c-dot);
}

.q8c-timer-arc {
	stroke: var(--q8c-accent);
	stroke-linecap: round;
	stroke-dasharray: 100 100;
	stroke-dashoffset: 100;
}

.q8c-timer.is-paused {
	opacity: 0.45;
}

.q8c-single .q8c-timer {
	display: none;
}

.q8c-slide-head {
	text-align: center;
	margin-bottom: 12px;
}

.q8c-slider .q8c-title {
	margin: 0 0 4px;
	font-family: inherit;
	font-size: 1.3rem;
	font-weight: 600;
	line-height: 1.4;
	color: var(--q8c-title);
}

.q8c-slider .q8c-desc {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.6;
	color: var(--q8c-text);
}

.q8c-canvas {
	position: relative;
	height: var(--q8c-height);
	width: 100%;
}

.q8c-draw {
	position: absolute;
	inset: 0;
}

/* Library tooltips: right to left, site font. */
.q8c-draw .apexcharts-tooltip,
.q8c-draw .q8c-apex-tip {
	direction: rtl;
	text-align: right;
	font-family: "Changa", sans-serif;
}
.q8c-apex-tip { padding: 6px 10px; }
.q8c-draw .apexcharts-tooltip-title { font-family: "Changa", sans-serif !important; }
.q8c-google svg text { font-family: "Changa", sans-serif; }

.q8c-slider .q8c-source {
	margin: 8px 0 0;
	font-size: 0.8rem;
	color: #777;
}

.q8c-badge {
	display: inline-block;
	margin-inline-start: 8px;
	padding: 1px 8px;
	border-radius: 10px;
	background: #fff3cd;
	color: #7a5a00;
	font-size: 0.75rem;
	font-weight: 500;
	vertical-align: middle;
	direction: ltr;
}

.q8c-arrow {
	position: absolute;
	top: calc(50% - 22px);
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--q8c-arrow);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: background-color 0.2s;
	z-index: 2;
}

.q8c-arrow:hover,
.q8c-arrow:focus-visible {
	background: rgba(1, 114, 154, 0.1);
}

.q8c-arrow svg {
	width: 26px;
	height: 26px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* RTL: "previous" sits on the right, "next" on the left. */
.q8c-prev { right: 0; }
.q8c-next { left: 0; }
.q8c-slider[dir="ltr"] .q8c-prev { right: auto; left: 0; transform: scaleX(-1); }
.q8c-slider[dir="ltr"] .q8c-next { left: auto; right: 0; transform: scaleX(-1); }

.q8c-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 14px;
	flex-wrap: wrap;
}

.q8c-dot {
	width: 10px;
	height: 10px;
	border: 0;
	padding: 0;
	border-radius: 5px;
	background: var(--q8c-dot);
	cursor: pointer;
	transition: width 0.25s, background-color 0.25s;
}

.q8c-dot.is-active {
	width: 26px;
	background: var(--q8c-accent);
}

.q8c-single .q8c-arrow,
.q8c-single .q8c-dots {
	display: none;
}

.q8c-msg {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	color: #888;
	font-size: 0.9rem;
	text-align: center;
	padding: 8px;
}

.q8c-msg--error {
	color: #b32d2e;
}

.q8c-slider-empty {
	padding: 24px;
	text-align: center;
	color: #777;
	border: 1px dashed #ccc;
	border-radius: 8px;
	font-family: "Changa", sans-serif;
}

@media (max-width: 767px) {
	.q8c-slider {
		--q8c-height: 320px;
	}
	.q8c-slide {
		padding: 4px 4px 8px;
	}
	.q8c-arrow {
		display: none;
	}
	.q8c-slider .q8c-title {
		font-size: 1.1rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.q8c-slide.is-moving,
	.q8c-dot {
		transition: none;
	}
}
