/* Breaking News Frontend Styles */

.rntc-breaking-news {
	width: 100%;
	display: flex;
	align-items: center;
	overflow: hidden;
	position: relative;
	box-sizing: border-box;
	z-index: 10;
}

.rntc-bn-inner {
	display: flex;
	width: 100%;
	height: 100%;
	align-items: center;
}

.rntc-bn-label {
	display: flex;
	align-items: center;
	padding: 0 15px;
	height: 100%;
	font-weight: 700;
	white-space: nowrap;
	z-index: 2;
	position: relative;
	box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

.rntc-bn-live-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	display: inline-block;
	margin-right: 8px;
	animation: rntc-pulse 1.5s infinite;
}

@keyframes rntc-pulse {
	0% { opacity: 1; transform: scale(1); }
	50% { opacity: 0.5; transform: scale(1.2); }
	100% { opacity: 1; transform: scale(1); }
}

.rntc-bn-ticker {
	flex-grow: 1;
	overflow: hidden;
	height: 100%;
	position: relative;
	white-space: nowrap;
}

.rntc-bn-track {
	display: inline-flex;
	height: 100%;
	align-items: center;
	white-space: nowrap;
	width: max-content !important;
	will-change: transform;
}

.rntc-bn-content {
	display: inline-flex;
	align-items: center;
	white-space: nowrap;
}

@keyframes rntc-dynamic-scroll {
	0% { transform: translateX(0); }
	100% { transform: translateX(-50%); }
}

.rntc-bn-track.is-animating {
	animation-name: rntc-dynamic-scroll;
	animation-timing-function: linear;
	animation-iteration-count: infinite;
	will-change: transform;
}

.rntc-bn-item {
	display: inline-flex;
	align-items: center;
	padding: 0 15px;
	white-space: nowrap;
}

.rntc-bn-item a {
	text-decoration: none;
	transition: color 0.3s ease;
}

.rntc-bn-sep {
	margin-left: 30px;
	font-size: 0.8em;
	opacity: 0.7;
}

.rntc-bn-date,
.rntc-bn-cat {
	font-size: 0.85em;
	opacity: 0.7;
	margin-right: 10px;
}

.rntc-bn-cat {
	text-transform: uppercase;
	font-weight: bold;
}

.rntc-bn-controls {
	padding: 0 15px;
	z-index: 2;
	background: inherit;
	display: flex;
	align-items: center;
	height: 100%;
	box-shadow: -2px 0 5px rgba(0,0,0,0.05);
}

.rntc-bn-play-pause {
	background: transparent;
	border: none;
	cursor: pointer;
	font-size: 14px;
	color: inherit;
	padding: 5px;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0.7;
	transition: opacity 0.3s ease;
}

.rntc-bn-play-pause:hover {
	opacity: 1;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
	.rntc-bn-track.is-animating {
		animation: none !important;
		overflow-x: auto;
	}
	.rntc-bn-live-dot {
		animation: none !important;
	}
	.rntc-bn-controls {
		display: none !important;
	}
}

/* Post Box Grid Styles */

.rntc-post-box-section {
	margin-top: 30px;
	margin-bottom: 30px;
}

.rntc-pb-grid-container {
	display: flex;
	flex-direction: column;
	gap: 30px;
}

.rntc-pb-top-grid {
	display: flex;
	gap: 20px;
}

.rntc-pb-col-large {
	flex: 1;
	width: 50%;
}

.rntc-pb-col-small-grid {
	flex: 1;
	width: 50%;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.rntc-post-item {
	display: flex;
	flex-direction: column;
	background: #fff;
	overflow: hidden;
}

.rntc-post-img {
	position: relative;
	width: 100%;
}

.rntc-post-img img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
}

.rntc-post-large .rntc-post-img img {
	aspect-ratio: 16 / 9;
}

.rntc-post-small .rntc-post-img img {
	aspect-ratio: 4 / 3;
}

.rntc-post-cat-badge {
	position: absolute;
	top: 15px;
	left: 15px;
	background: #D71920;
	color: #fff;
	padding: 4px 10px;
	font-size: 12px;
	font-weight: bold;
	text-transform: uppercase;
}

.rntc-post-cat-badge a {
	color: #fff;
	text-decoration: none;
}

.rntc-post-cat-text {
	color: #D71920;
	font-size: 13px;
	font-weight: bold;
	text-transform: uppercase;
	margin-bottom: 5px;
}

.rntc-post-cat-text a {
	color: inherit;
	text-decoration: none;
}

.rntc-post-content {
	padding: 15px 0;
}

.rntc-post-title {
	margin: 0 0 10px 0;
	line-height: 1.3;
}

.rntc-post-title a {
	text-decoration: none;
	transition: color 0.3s ease;
}

.rntc-post-meta {
	font-size: 13px;
	color: #888;
	margin-bottom: 10px;
}

.rntc-post-meta span {
	margin-right: 15px;
}

.rntc-post-meta a {
	color: inherit;
	text-decoration: none;
}

.rntc-post-excerpt {
	font-size: 15px;
	line-height: 1.6;
	color: #555;
}

/* Bottom Grid (Ad & Categories) */
.rntc-pb-bottom-grid {
	display: flex;
	gap: 20px;
	align-items: stretch;
}

.rntc-pb-ad-col {
	flex: 1;
	width: 50%;
}

.rntc-pb-ad-wrapper img {
	width: 100%;
	height: auto;
	display: block;
}

.rntc-pb-cat-col {
	flex: 1;
	width: 50%;
	display: flex;
	align-items: center;
}

.rntc-pb-cat-boxes-wrapper {
	width: 100%;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 15px;
}

.rntc-pb-cat-box {
	background: #f6f6f6;
	padding: 20px;
	text-align: center;
	border: 1px solid #eaeaea;
	transition: all 0.3s ease;
}

.rntc-pb-cat-box:hover {
	background: #D71920;
	border-color: #D71920;
}

.rntc-pb-cat-box a {
	text-decoration: none;
	display: block;
}

.rntc-pb-cat-box .rntc-cat-name {
	display: block;
	font-size: 16px;
	font-weight: bold;
	color: #111;
	margin-bottom: 5px;
	transition: color 0.3s ease;
}

.rntc-pb-cat-box:hover .rntc-cat-name {
	color: #fff;
}

.rntc-pb-cat-box .rntc-cat-count {
	display: block;
	font-size: 13px;
	color: #888;
	transition: color 0.3s ease;
}

.rntc-pb-cat-box:hover .rntc-cat-count {
	color: #ffd7d7;
}

/* Responsive */
@media (max-width: 991px) {
	.rntc-pb-top-grid, .rntc-pb-bottom-grid {
		flex-direction: column;
	}
	.rntc-pb-col-large, .rntc-pb-col-small-grid, .rntc-pb-ad-col, .rntc-pb-cat-col {
		width: 100%;
	}
}

@media (max-width: 767px) {
	.rntc-pb-col-small-grid {
		grid-template-columns: 1fr;
	}
	.rntc-pb-cat-boxes-wrapper {
		grid-template-columns: 1fr;
	}
}
