/*
Theme Name: Chandigarh Daily
Theme URI: https://chandigarhdaily.com/
Description: Clean, high-performance child theme for Chandigarh Daily (built on Instorm).
Author: Chandigarh Daily
Author URI: https://chandigarhdaily.com/
Template: instorm
Version: 0.1.0-beta.8
Text Domain: chandigarhdaily
*/

/* ------------------------------------------------------------------------- *
 *  1. Top Reading Progress Bar
/* ------------------------------------------------------------------------- */
#cd-reading-progress-bar {
	position: fixed;
	top: 0;
	left: 0;
	height: 3.5px;
	background: linear-gradient(90deg, #e11d48, #f97316);
	z-index: 99999;
	transition: width 0.08s linear;
}

/* ------------------------------------------------------------------------- *
 *  2. SEO Breadcrumbs
/* ------------------------------------------------------------------------- */
.cd-breadcrumbs {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	font-size: 12.5px;
	color: #64748b;
	margin: 0 0 16px 0 !important;
	padding: 0 !important;
	line-height: 1.4;
	box-sizing: border-box;
}
.cd-breadcrumbs a {
	color: #475569;
	text-decoration: none;
	font-weight: 500;
	transition: color 0.15s ease;
}
.cd-breadcrumbs a:hover {
	color: #e11d48;
}
.cd-crumb-sep {
	color: #cbd5e1;
	font-size: 11px;
}
.cd-crumb-current {
	color: #94a3b8;
	font-weight: 400;
}

/* ------------------------------------------------------------------------- *
 *  3. Headline & Meta Bar
/* ------------------------------------------------------------------------- */
.cd-single-article .entry-header {
	margin-top: 30px !important;
	margin-bottom: 0 !important;
}
.cd-single-article .cd-entry-title {
	font-size: 32px !important;
	line-height: 1.32 !important;
	font-weight: 800 !important;
	color: #0f172a !important;
	letter-spacing: -0.025em !important;
	margin: 0 0 14px 0 !important;
	padding: 0 !important;
}
@media only screen and (max-width: 768px) {
	.cd-single-article .cd-entry-title {
		font-size: 24px !important;
		line-height: 1.35 !important;
	}
}

.cd-entry-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	font-size: 13px;
	color: #64748b;
	margin: 0 0 16px 0 !important;
	padding: 0 0 14px 0 !important;
	border-bottom: 1px solid #f1f5f9;
}

/* Category Capsule Badge - High Contrast Override */
.entry-header .entry-meta .entry-category a,
.cd-category-capsule a {
	display: inline-block !important;
	background: #dc2626 !important;
	color: #ffffff !important;
	font-weight: 700 !important;
	font-size: 11.5px !important;
	text-transform: uppercase !important;
	letter-spacing: 0.05em !important;
	padding: 4px 10px !important;
	border-radius: 4px !important;
	text-decoration: none !important;
	-webkit-text-fill-color: #ffffff !important;
	background-clip: border-box !important;
	-webkit-background-clip: border-box !important;
	background-image: none !important;
	transition: background-color 0.15s ease, opacity 0.15s ease !important;
}
.entry-header .entry-meta .entry-category a:hover,
.cd-category-capsule a:hover {
	background: #b91c1c !important;
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
	opacity: 1 !important;
}

.cd-entry-meta i {
	margin-right: 4px;
	color: #94a3b8;
}
.cd-entry-meta .entry-author a {
	color: #334155;
	font-weight: 600;
	text-decoration: none;
}
.cd-entry-meta .entry-reading-time {
	color: #059669;
	font-weight: 600;
	background: #ecfdf5;
	padding: 2px 8px;
	border-radius: 4px;
}
.cd-entry-meta .entry-reading-time i {
	color: #059669;
}

/* ------------------------------------------------------------------------- *
 *  4. Social Sharing Bar
/* ------------------------------------------------------------------------- */
.cd-social-share {
	width: 100% !important;
	max-width: 100% !important;
	display: flex !important;
	align-items: center !important;
	flex-wrap: wrap !important;
	gap: 10px !important;
	padding: 0 !important;
	margin: 0 !important;
	box-sizing: border-box !important;
	clear: both !important;
}
.cd-social-share:before,
.cd-social-share:after {
	display: none !important;
	content: none !important;
}
.cd-social-share-top {
	border-bottom: 1px solid #f1f5f9;
	padding-bottom: 14px !important;
	margin-bottom: 24px !important;
}
.cd-social-share-bottom {
	border-top: 1px solid #f1f5f9;
	border-bottom: 1px solid #f1f5f9;
	padding: 16px 0 !important;
	margin: 28px 0 20px 0 !important;
}
.cd-share-label {
	font-size: 12px;
	font-weight: 700;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0 !important;
	padding: 0 !important;
}
.cd-share-label i {
	color: #e11d48;
}
.cd-share-buttons {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 !important;
	padding: 0 !important;
}
.cd-share-btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 6px !important;
	height: 32px !important;
	padding: 0 12px !important;
	border-radius: 6px !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	color: #ffffff !important;
	text-decoration: none !important;
	border: none !important;
	cursor: pointer !important;
	transition: opacity 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease !important;
	line-height: 1 !important;
	box-sizing: border-box !important;
}
.cd-share-btn:hover {
	opacity: 0.92 !important;
	transform: translateY(-1px) !important;
	box-shadow: 0 3px 8px rgba(0,0,0,0.12) !important;
}
.cd-share-whatsapp {
	background-color: #25d366 !important;
}
.cd-share-twitter {
	background-color: #0f1419 !important;
}
.cd-share-facebook {
	background-color: #1877f2 !important;
}
.cd-share-linkedin {
	background-color: #0a66c2 !important;
}
.cd-share-copy {
	background-color: #475569 !important;
}
.cd-share-copy.cd-copied {
	background-color: #059669 !important;
}

/* ------------------------------------------------------------------------- *
 *  5. Featured Image Polish & Spacing
/* ------------------------------------------------------------------------- */
.cd-entry-media {
	margin-top: 20px !important;
	margin-bottom: 28px !important;
}
.cd-entry-media img {
	border-radius: 8px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
	width: 100%;
	max-width: 100%;
	height: auto;
	display: block;
}

/* ------------------------------------------------------------------------- *
 *  6. Editorial Typography & Article Content
/* ------------------------------------------------------------------------- */
.cd-single-article .entry {
	font-size: 16.5px !important;
	line-height: 1.82 !important;
	color: #1e293b !important;
	max-width: 680px;
	margin-left: auto;
	margin-right: auto;
}
.cd-single-article .entry > p:first-of-type {
	font-size: 18px !important;
	line-height: 1.78 !important;
	color: #0f172a !important;
	font-weight: 450 !important;
	margin-bottom: 1.4em !important;
}
.cd-single-article .entry p {
	margin-bottom: 1.45em !important;
}

/* ------------------------------------------------------------------------- *
 *  7. Upgraded Source Attribution Box (RSS)
/* ------------------------------------------------------------------------- */
.cd-source-attribution {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	flex-wrap: wrap !important;
	gap: 12px !important;
	background: #f8fafc !important;
	border: 1px solid #e2e8f0 !important;
	border-left: 4px solid #3b82f6 !important;
	border-radius: 6px !important;
	padding: 12px 18px !important;
	margin: 28px 0 16px 0 !important;
	box-sizing: border-box !important;
}
.cd-source-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.cd-source-tag {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #3b82f6;
}
.cd-source-tag i {
	margin-right: 3px;
}
.cd-source-text {
	font-size: 13.5px;
	color: #334155;
}
.cd-source-text strong {
	color: #0f172a;
}
.cd-source-link {
	display: inline-flex !important;
	align-items: center !important;
	gap: 6px !important;
	background: #2563eb !important;
	color: #ffffff !important;
	font-size: 12.5px !important;
	font-weight: 600 !important;
	padding: 7px 14px !important;
	border-radius: 5px !important;
	text-decoration: none !important;
	transition: background-color 0.15s ease !important;
}
.cd-source-link:hover {
	background: #1d4ed8 !important;
}

/* ------------------------------------------------------------------------- *
 *  8. Related Posts Cards & Thumbnail Fallback
/* ------------------------------------------------------------------------- */
.related-posts .post-thumbnail {
	background: #f1f5f9;
	border-radius: 6px;
	overflow: hidden;
	position: relative;
	min-height: 120px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.related-posts .post-thumbnail:after {
	content: '\f03e';
	font-family: 'Font Awesome 5 Free';
	font-weight: 900;
	color: #cbd5e1;
	font-size: 24px;
	position: absolute;
	z-index: 1;
}
.related-posts .post-thumbnail img {
	position: relative;
	z-index: 2;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.25s ease;
}
.related-posts li:hover .post-thumbnail img {
	transform: scale(1.05);
}
.related-posts .related-title {
	font-size: 13.5px;
	line-height: 1.45;
	font-weight: 600;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin-top: 8px;
}
.related-posts .related-title a {
	color: #1e293b;
	text-decoration: none;
	transition: color 0.15s ease;
}
.related-posts .related-title a:hover {
	color: #e11d48;
}

/* ------------------------------------------------------------------------- *
 *  9. Clean Sticky Nav Card & Sidebar Widgets
/* ------------------------------------------------------------------------- */
.sidebar .widget {
	border-radius: 8px;
}
.sidebar .widget-title,
.sidebar h3.group {
	font-size: 16px;
	font-weight: 700;
	color: #0f172a;
}
.sidebar ul li {
	padding: 8px 0;
	border-bottom: 1px solid #f1f5f9;
}
.sidebar ul li:last-child {
	border-bottom: none;
}
.post-nav li a {
	border-radius: 6px;
}
