/* TeluguNewsTime – top headlines slider.
   Replaces the static hero block with an Eenadu-style rotating banner.
   Every size here is explicit so the slide never depends on theme rules. */

.tnt-slider {
	position: relative;
	margin: 0 0 28px;
	border-radius: 12px;
	overflow: hidden;
	background: #0d1117;
	box-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 6px 20px rgba(16, 24, 40, .10);
}

.tnt-slider__viewport { overflow: hidden; }

.tnt-slider__track {
	display: flex;
	margin: 0;
	padding: 0;
	list-style: none;
	transition: transform .55s cubic-bezier(.22, .61, .36, 1);
	will-change: transform;
}

.tnt-slider__slide {
	position: relative;
	flex: 0 0 100%;
	min-width: 100%;
	margin: 0;
}

.tnt-slider__link {
	display: block;
	position: relative;
	color: #fff;
	text-decoration: none;
	/* 16:9 keeps every slide the same height whatever the source image is. */
	aspect-ratio: 16 / 9;
	background: #0d1117;
}
.tnt-slider__link:hover,
.tnt-slider__link:focus { color: #fff; }

.tnt-slider__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	margin: 0;
	border: 0;
	max-width: none;
}

/* Dark wash so white headline text stays readable on any photo. */
.tnt-slider__shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top,
		rgba(6, 9, 13, .92) 0%,
		rgba(6, 9, 13, .78) 22%,
		rgba(6, 9, 13, .30) 52%,
		rgba(6, 9, 13, .05) 75%,
		rgba(6, 9, 13, 0) 100%);
	pointer-events: none;
}

.tnt-slider__caption {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	padding: 22px 26px 24px;
	z-index: 2;
}

.tnt-slider__cat {
	display: inline-block;
	background: #e30613;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	padding: 6px 11px;
	border-radius: 4px;
	margin-bottom: 10px;
	letter-spacing: .2px;
}

.tnt-slider__title {
	margin: 0;
	font-size: 29px;
	line-height: 1.38;
	font-weight: 800;
	color: #fff;
	text-shadow: 0 1px 10px rgba(0, 0, 0, .55);
	/* Never let a long Telugu headline swallow the whole slide. */
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.tnt-slider__time {
	display: block;
	margin-top: 9px;
	font-size: 13px;
	color: rgba(255, 255, 255, .82);
}

/* ---- Arrows ---- */
.tnt-slider__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: rgba(13, 17, 23, .55);
	color: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .2s, opacity .2s;
	opacity: 0;
}
.tnt-slider:hover .tnt-slider__nav,
.tnt-slider:focus-within .tnt-slider__nav { opacity: 1; }
.tnt-slider__nav:hover { background: #e30613; }
.tnt-slider__nav:focus-visible { opacity: 1; outline: 3px solid #fff; outline-offset: 2px; }
.tnt-slider__nav--prev { left: 14px; }
.tnt-slider__nav--next { right: 14px; }

/* ---- Dots ---- */
.tnt-slider__dots {
	position: absolute;
	right: 24px;
	bottom: 22px;
	display: flex;
	gap: 7px;
	z-index: 3;
	margin: 0;
	padding: 0;
	list-style: none;
}
.tnt-slider__dot {
	width: 9px;
	height: 9px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .45);
	cursor: pointer;
	transition: background .2s, width .2s;
}
.tnt-slider__dot[aria-current="true"] {
	background: #e30613;
	width: 24px;
	border-radius: 5px;
}
.tnt-slider__dot:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ---- Tablet / phone ---- */
@media (max-width: 991px) {
	.tnt-slider__title { font-size: 23px; }
	.tnt-slider__caption { padding: 18px 20px 20px; }
}
@media (max-width: 767px) {
	.tnt-slider { border-radius: 10px; margin-bottom: 20px; }
	.tnt-slider__link { aspect-ratio: 4 / 3; }
	.tnt-slider__title { font-size: 17.5px; line-height: 1.42; -webkit-line-clamp: 3; }
	.tnt-slider__caption { padding: 14px 15px 17px; }
	.tnt-slider__cat { font-size: 11px; padding: 5px 9px; margin-bottom: 8px; }
	.tnt-slider__time { font-size: 12px; margin-top: 7px; }
	/* Arrows are too cramped on a phone – swipe and dots cover it. */
	.tnt-slider__nav { display: none; }
	.tnt-slider__dots { right: 14px; bottom: 13px; }
}

/* Someone who asked for less motion gets a plain, still first slide. */
@media (prefers-reduced-motion: reduce) {
	.tnt-slider__track { transition: none; }
}
