/* 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;
}
/* Add global hide for top header search elements */
@media (max-width: 991px) {
    .rntc-header-search,
    .header-search-icon,
    .search-icon,
    .top-search,
    .search-toggle,
    header a[href*="search"],
    header svg.fa-magnifying-glass,
    .rntc-date-bar a:has(svg),
    .rntc-date-bar .search {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
}

/* Aggressive admin bar hiding for frontend/reporters */
body:not(.logged-in-as-admin) #wpadminbar {
    display: none !important;
}
body:not(.logged-in-as-admin) html,
html.rntc-hide-adminbar {
    margin-top: 0 !important;
}
.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;
	}
}

/* --- Reporter Dashboard & Forms --- */

.rntc-reporter-form-wrapper {
	max-width: 600px;
	margin: 0 auto;
	background: #fff;
	padding: 30px;
	border-radius: 8px;
	box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.rntc-form-group {
	margin-bottom: 20px;
}
.rntc-form-group label {
	display: block;
	font-weight: 600;
	margin-bottom: 8px;
}
.rntc-form-group input[type="text"],
.rntc-form-group input[type="email"],
.rntc-form-group input[type="password"],
.rntc-form-group select,
.rntc-form-group textarea {
	width: 100%;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
}
.rntc-btn {
	display: inline-block;
	padding: 10px 20px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	text-decoration: none;
	font-weight: 600;
}
.rntc-btn-primary {
	background: #D71920;
	color: #fff;
}
.rntc-btn-secondary {
	background: #333;
	color: #fff;
}
.rntc-dashboard-wrapper {
	display: flex;
	gap: 30px;
	background: #fff;
	padding: 20px;
	border-radius: 8px;
	box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.rntc-dash-sidebar {
	width: 250px;
	border-right: 1px solid #eee;
	padding-right: 20px;
}
.rntc-dash-user {
	text-align: center;
	margin-bottom: 30px;
}
.rntc-dash-user img {
	width: 100px;
	height: 100px;
	border-radius: 50%;
	object-fit: cover;
	margin-bottom: 10px;
}
.rntc-dash-nav {
	list-style: none;
	padding: 0;
	margin: 0;
}
.rntc-dash-nav li {
	margin-bottom: 10px;
}
.rntc-nav-btn {
	display: block;
	padding: 10px 15px;
	background: #f9f9f9;
	color: #333;
	text-decoration: none;
	border-radius: 4px;
}
.rntc-nav-btn.active, .rntc-nav-btn:hover {
	background: #D71920;
	color: #fff;
}
.rntc-dash-content {
	flex: 1;
}
.rntc-wallet-cards {
	display: flex;
	gap: 20px;
	margin-bottom: 30px;
}
.rntc-card {
	flex: 1;
	background: #f9f9f9;
	padding: 20px;
	border-radius: 8px;
	text-align: center;
	border: 1px solid #eee;
}
.rntc-card h4 {
	margin: 0 0 10px 0;
	font-size: 14px;
	color: #666;
}
.rntc-card p {
	margin: 0;
	font-size: 24px;
	font-weight: 700;
	color: #333;
}
.rntc-card-highlight {
	background: #fff3f3;
	border-color: #ffdada;
}
.rntc-card-highlight p {
	color: #D71920;
}
.rntc-table {
	width: 100%;
	border-collapse: collapse;
}
.rntc-table th, .rntc-table td {
	padding: 12px 15px;
	text-align: left;
	border-bottom: 1px solid #eee;
}
.rntc-table th {
	background: #f9f9f9;
	font-weight: 600;
}
.rntc-alert {
	padding: 15px;
	border-radius: 4px;
	margin-bottom: 20px;
}
.rntc-alert-success {
	background: #e6f7e9;
	color: #28a745;
	border: 1px solid #c3e6cb;
}
.rntc-alert-danger {
	background: #fcebeb;
	color: #dc3545;
	border: 1px solid #f5c6cb;
}
.rntc-alert-warning {
	background: #fff3cd;
	color: #856404;
	border: 1px solid #ffeeba;
}
@media (max-width: 768px) {
	.rntc-dashboard-wrapper {
		flex-direction: column;
	}
	.rntc-dash-sidebar {
		width: 100%;
		border-right: none;
		border-bottom: 1px solid #eee;
		padding-right: 0;
		padding-bottom: 20px;
	}
	.rntc-wallet-cards {
		flex-direction: column;
	}
}

/* Compact Mobile Sticky Header */
@media (max-width: 991px) {
    /* Primary Header Container */
    header,
    .rntc-header-container,
    .top-header-wrap {
        position: sticky !important;
        top: 0 !important;
        z-index: 9999 !important;
        background: #ffffff !important;
        transition: all 0.25s ease-in-out !important;
    }

    /* Initial state adjustments */
    .rntc-logo-wrap img,
    .site-logo img {
        transition: max-height 0.25s ease-in-out !important;
    }

    /* Compact state when scrolling */
    header.is-scrolled,
    .rntc-header-container.is-scrolled,
    .top-header-wrap.is-scrolled {
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
        padding-top: 4px !important;
        padding-bottom: 4px !important;
    }

    header.is-scrolled .rntc-logo-wrap,
    .top-header-wrap.is-scrolled .rntc-logo-wrap,
    header.is-scrolled .site-logo,
    .top-header-wrap.is-scrolled .site-logo {
        padding: 4px 0 !important;
    }

    header.is-scrolled .rntc-logo-wrap img,
    header.is-scrolled .site-logo img,
    .top-header-wrap.is-scrolled .rntc-logo-wrap img,
    .top-header-wrap.is-scrolled .site-logo img {
        max-height: 32px !important;
        width: auto !important;
    }

    /* Collapse Date bar and any redundant spacing on scroll */
    header.is-scrolled .rntc-date-bar,
    header.is-scrolled .rntc-assamese-date,
    header.is-scrolled .top-date-wrap,
    .top-header-wrap.is-scrolled .rntc-date-bar,
    .top-header-wrap.is-scrolled .rntc-assamese-date,
    .top-header-wrap.is-scrolled .top-date-wrap {
        display: none !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }
}
