/* =========================================================
   Dotyrich — Transactions Slider widget
   Scope: .dr-tslide-wrap, .dr-tslide
   ========================================================= */

.dr-tslide-wrap {
	background: var(--dr-bg);
	overflow: hidden;
}

.dr-tslide {
	position: relative;
	background: linear-gradient(180deg, #2c5f66 0%, #234e54 50%, #2c5f66 100%);
	padding: 96px 32px;
	color: #ffffff;
}

.dr-tslide::before {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 80px;
	background: linear-gradient(180deg, rgba(63, 123, 131, 0.06) 0%, transparent 100%);
	pointer-events: none;
}

.dr-tslide__inner {
	max-width: 1440px;
	margin: 0 auto;
	position: relative;
}

/* === Header === */
.dr-tslide__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 24px;
	margin-bottom: 56px;
}

.dr-tslide__title {
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	font-weight: 700;
	color: #ffffff;
	margin: 0;
	letter-spacing: -0.02em;
	line-height: 1.15;
}

.dr-tslide__title.is-serif {
	font-family: 'Source Serif Pro', 'Playfair Display', Georgia, 'Times New Roman', serif !important;
	font-weight: 600;
	letter-spacing: -0.005em;
}

.dr-tslide__all-btn {
	display: inline-flex;
	align-items: center;
	padding: 14px 30px;
	background: transparent;
	color: #ffffff !important;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	text-decoration: none !important;
	border: 1.5px solid rgba(255, 255, 255, 0.7);
	border-radius: 999px;
	transition: var(--dr-transition);
	white-space: nowrap;
}

.dr-tslide__all-btn:hover {
	background: var(--dr-accent);
	border-color: var(--dr-accent);
	color: #ffffff !important;
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(63, 123, 131, 0.4);
}

/* === Viewport / Track === */
.dr-tslide__viewport {
	overflow: hidden;
	margin: 0 -12px;
	padding: 8px 12px;
}

.dr-tslide__track {
	display: flex;
	transition: transform 0.6s var(--dr-ease);
	will-change: transform;
}

.dr-tslide__slide {
	flex-shrink: 0;
	box-sizing: border-box;
	padding: 0 12px;
	display: flex;
}

.dr-tslide__slide > .dr-tcard { width: 100%; }

/* === Controls === */
.dr-tslide__controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 28px;
	margin-top: 56px;
}

/* === Modern prev/next nav buttons === */
.dr-tslide__nav {
	width: 56px;
	height: 56px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #ffffff !important;
	background-color: #ffffff !important;
	border: none !important;
	color: #2c5f66;
	cursor: pointer;
	transition: var(--dr-transition);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
	position: relative;
	overflow: hidden;
	flex-shrink: 0;
}

.dr-tslide__nav svg {
	width: 18px;
	height: 18px;
	position: relative;
	z-index: 2;
	transition: transform 0.4s var(--dr-ease);
}

.dr-tslide__nav::before {
	content: '';
	position: absolute;
	inset: 0;
	background: var(--dr-accent);
	transform: scale(0);
	border-radius: 50%;
	transition: transform 0.4s var(--dr-ease);
	z-index: 1;
}

.dr-tslide__nav:hover {
	color: #ffffff;
	box-shadow: 0 12px 32px rgba(63, 123, 131, 0.5);
	transform: translateY(-2px);
}

.dr-tslide__nav:hover::before { transform: scale(1); }

.dr-tslide__nav--prev:hover svg { transform: translateX(-3px); }
.dr-tslide__nav--next:hover svg { transform: translateX(3px); }

.dr-tslide__nav:disabled {
	opacity: 0.35;
	cursor: not-allowed;
	background: rgba(255, 255, 255, 0.5) !important;
	box-shadow: none;
}

.dr-tslide__nav:disabled:hover {
	transform: none;
	color: #2c5f66;
	box-shadow: none;
}

.dr-tslide__nav:disabled:hover::before { transform: scale(0); }

/* === Fraction counter (replaces dots when many pages) === */
.dr-tslide__counter {
	display: none; /* shown via JS on small viewports or when pageCount > 8 */
	align-items: baseline;
	gap: 8px;
	font-family: var(--dr-font);
	color: #ffffff;
	font-weight: 600;
	min-width: 80px;
	justify-content: center;
}

.dr-tslide__counter-current {
	font-size: 1.75rem;
	color: var(--dr-accent);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1;
	font-family: 'Source Serif Pro', 'Playfair Display', Georgia, serif;
}

.dr-tslide__counter-sep {
	color: rgba(255, 255, 255, 0.3);
	font-size: 1.25rem;
	font-weight: 300;
}

.dr-tslide__counter-total {
	font-size: 0.9375rem;
	color: rgba(255, 255, 255, 0.65);
	letter-spacing: 0.04em;
}

/* === Dots === */
.dr-tslide__dots {
	display: inline-flex;
	gap: 10px;
	align-items: center;
	flex-wrap: wrap;
	justify-content: center;
	max-width: 360px;
}

.dr-tslide__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.3);
	border: none;
	cursor: pointer;
	transition: var(--dr-transition);
	padding: 0;
}

.dr-tslide__dot:hover { background: rgba(255, 255, 255, 0.55); }

.dr-tslide__dot.is-active {
	background: var(--dr-accent);
	width: 32px;
	border-radius: 4px;
}

/* === Responsive === */
@media (max-width: 1024px) {
	.dr-tslide { padding: 64px 24px; }
	.dr-tslide__header { margin-bottom: 40px; }
}

@media (max-width: 640px) {
	.dr-tslide { padding: 56px 20px; }
	.dr-tslide__header { flex-direction: column; align-items: flex-start; }
	.dr-tslide__all-btn { width: auto; }
	.dr-tslide__controls { margin-top: 36px; gap: 20px; }
	.dr-tslide__nav { width: 52px; height: 52px; }
	.dr-tslide__nav svg { width: 16px; height: 16px; }
	.dr-tslide__dots { display: none !important; } /* JS also handles this, belt + suspenders */
	.dr-tslide__counter { display: inline-flex; }
	.dr-tslide__counter-current { font-size: 1.625rem; }
}
