/* CIT News — front-end styles */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+Bengali&display=swap');

/* ---------- Breaking News Ticker ---------- */
.cit-ticker-wrap {
	display: flex;
	align-items: center;
	background: #000000;
	overflow: hidden;
	font-family: 'Noto Serif Bengali', sans-serif;
}

.cit-ticker-title {
	background: #d30000;
	color: #fff;
	padding: 5px 12px;
	font-weight: bold;
	white-space: nowrap;
	font-family: 'Noto Serif Bengali', sans-serif;
}

.cit-ticker {
	overflow: hidden;
	flex: 1;
	padding-left: 10px;
}

.cit-ticker-items {
	display: inline-block;
	white-space: nowrap;
	animation: cit-scroll-left linear infinite;
}

.cit-ticker-item {
	display: inline-block;
	margin-right: 40px;
	color: #fff;
	font-size: 16px;
	font-family: 'Noto Serif Bengali', sans-serif;
}

.cit-ticker-logo {
	height: 16px;
	width: 16px;
	margin-right: 6px;
	border-radius: 50%;
	vertical-align: middle;
}

.cit-ticker-dot {
	display: inline-block;
	height: 12px;
	width: 12px;
	background: red;
	border-radius: 50%;
	margin-right: 6px;
	vertical-align: middle;
}

@keyframes cit-scroll-left {
	0% { transform: translateX(100%); }
	100% { transform: translateX(-100%); }
}

.cit-ticker-static .cit-ticker {
	overflow-x: auto;
}

.cit-ticker-static .cit-ticker-items {
	white-space: normal;
}

.cit-ticker-static .cit-ticker-item {
	display: inline-block;
}

/* ---------- Subheading ---------- */
.cit-subheading {
	font-size: 80%;
	font-weight: bold;
	margin-bottom: 3px;
}

/* ---------- News Badges ---------- */
.cit-news-badges {
	display: inline-flex;
	gap: 6px;
	margin-bottom: 4px;
}

.cit-badge {
	display: inline-block;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	padding: 2px 8px;
	border-radius: 3px;
}

/* "Live" badge: pulsing red dot + red text, no background — matches the
   classic broadcast "LIVE" indicator instead of a solid pill. */
.cit-badge-live {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: none;
	color: #e60000;
	padding: 0;
	font-size: 12px;
	font-weight: 700;
}

.cit-live-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #e60000;
	animation: cit-live-pulse 1.4s ease-in-out infinite;
}

@keyframes cit-live-pulse {
	0% { opacity: 1; transform: scale(1); }
	50% { opacity: 0.4; transform: scale(0.8); }
	100% { opacity: 1; transform: scale(1); }
}

/* ---------- Reading Time + Font Size Controls ---------- */
.cit-reading-time-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 16px;
}

.cit-reading-time {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 13px;
	color: #666;
}

.cit-reading-time .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
}

.cit-reading-time-inline {
	font-size: 13px;
	color: #666;
}

.cit-font-size-controls {
	display: inline-flex;
	gap: 6px;
}

.cit-font-btn {
	font-family: 'Noto Serif Bengali', sans-serif;
	background: #eef0f2;
	color: #333;
	border: 1px solid #dcdfe3;
	border-radius: 4px;
	padding: 3px 10px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.6;
	cursor: pointer;
}

.cit-font-btn:hover {
	background: #e2e5e9;
}

.cit-font-btn:active {
	background: #d6dade;
}

.cit-article-content {
	transition: font-size 0.15s ease;
}

/* ---------- View Counter ---------- */
.cit-view-count {
	font-size: 13px;
	color: #666;
}

.cit-popular-posts {
	list-style: none;
	margin: 0;
	padding: 0;
}

.cit-popular-post {
	display: flex;
	gap: 10px;
	align-items: center;
	padding: 8px 0;
	border-bottom: 1px solid #eee;
}

.cit-popular-post-thumb img {
	width: 64px;
	height: 64px;
	object-fit: cover;
	border-radius: 4px;
	display: block;
}

.cit-popular-post-body {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.cit-popular-post-title {
	font-weight: 600;
	text-decoration: none;
	color: inherit;
}

.cit-popular-post-views {
	font-size: 12px;
	color: #888;
}

/* ---------- Related Posts ---------- */
.cit-related-posts {
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid #eee;
}

.cit-related-posts-title {
	margin: 0 0 14px;
	font-size: 18px;
}

.cit-related-posts-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 16px;
}

.cit-related-post {
	text-decoration: none;
	color: inherit;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.cit-related-post-thumb img {
	width: 100%;
	height: 110px;
	object-fit: cover;
	border-radius: 6px;
	display: block;
}

.cit-related-post-title {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
}

/* ---------- Social Share ---------- */
.cit-share-buttons {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 20px 0;
}

.cit-share-label {
	font-weight: 600;
	margin-right: 4px;
}

.cit-share-btn {
	display: inline-block;
	padding: 6px 14px;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	color: #fff;
	border: none;
	cursor: pointer;
}

.cit-share-facebook { background: #1877f2; }
.cit-share-x { background: #000; }
.cit-share-whatsapp { background: #25d366; }
.cit-share-copy { background: #555; }

.cit-share-copy.cit-copied { background: #2e7d32; }
