/**
 * Theme Name:     Chimpare Hello Elementor Child
 * Author:         Elementor Team
 * Template:       hello-elementor
 * Text Domain:	   Chimpare Hello Elementor Child
 * Description:    Hello Elementor is a lightweight and minimalist WordPress theme that was built specifically to work seamlessly with the Elementor site builder plugin. The theme is free, open-source, and designed for users who want a flexible, easy-to-use, and customizable website. The theme, which is optimized for performance, provides a solid foundation for users to build their own unique designs using the Elementor drag-and-drop site builder. Its simplicity and flexibility make it a great choice for both beginners and experienced Web Creators.
 */

/* =====================================================================
   Chimpare – Blog detail page (Hello Elementor child theme)
   Paste BELOW your child theme header comment in style.css.
   The @import line must stay first, right under the header comment.
   ===================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ---------- Font: Inter ---------- */
:root {
	--cp-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}
body, button, input, select, textarea,
h1, h2, h3, h4, h5, h6 {
	font-family: var(--cp-font);
}
body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* ---------- Variables ---------- */
body.single-post {
	--cp-text: #14181f;
	--cp-muted: #5b6573;
	--cp-border: #e3e7ed;
	--cp-primary: #1abc9c;
	--cp-secondary: #3c62db;
	--cp-soft: #f4f7fb;
	--cp-wrap: 1240px;  /* page container */
	--cp-read: 900px;   /* article column (set to 1240px for full width) */
	color: var(--cp-text);
	background: #fff;
}
.bg-hero {
    
    background: linear-gradient(348deg, #1abc9c, #0c335a) !important;
}
#site-header{display:none}
/* ---------- 1. Container ---------- */
.single-post main {
	max-width: var(--cp-wrap) !important;
	width: 100%;
	margin-inline: auto !important;
	padding: 48px 24px 80px !important;
	box-sizing: border-box;
}

/* ---------- 2. Title ---------- */
.single-post .page-header,
.single-post .wp-block-post-title {
	max-width: var(--cp-read);
	margin: 0 auto 36px !important;
	padding: 0 !important;
}
.single-post .page-header .entry-title,
.single-post .wp-block-post-title {
	font-size: clamp(30px, 4.4vw, 46px);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--cp-text);
	margin: 0;
}
.single-post .page-header::after {
	content: "";
	display: block;
	width: 72px;
	height: 4px;
	margin-top: 22px;
	border-radius: 4px;
	background: linear-gradient(90deg, var(--cp-primary), var(--cp-secondary));
}

/* ---------- 3. Article body ---------- */
.single-post .page-content {
	max-width: var(--cp-read);
	margin-inline: auto;
}
.single-post :is(.page-content, .wp-block-post-content) {
	font-size: 19px;
	line-height: 1.8;
	color: var(--cp-text);
}
.single-post :is(.page-content, .wp-block-post-content) p { margin: 0 0 1.3em; }
.single-post :is(.page-content, .wp-block-post-content) strong { color: var(--cp-text); font-weight: 600; }

/* Links (overrides Hello Elementor's pink) */
.single-post :is(.page-content, .wp-block-post-content) a {
	color: var(--cp-secondary);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: color .2s;
}
.single-post :is(.page-content, .wp-block-post-content) a:hover { color: var(--cp-primary); }

/* Headings */
.single-post :is(.page-content, .wp-block-post-content) h2 {
	font-size: clamp(26px, 3vw, 34px);
	font-weight: 700;
	line-height: 1.25;
	margin: 1.6em 0 .6em;
	padding-left: 16px;
	border-left: 5px solid var(--cp-primary);
	scroll-margin-top: 100px;
}
.single-post :is(.page-content, .wp-block-post-content) h3 {
	font-size: clamp(21px, 2.4vw, 26px);
	font-weight: 600;
	line-height: 1.3;
	margin: 1.8em 0 .5em;
	scroll-margin-top: 100px;
}

/* Section dividers (--- lines) */
.single-post :is(.page-content, .wp-block-post-content) hr {
	border: 0;
	height: 1px;
	background: var(--cp-border);
	margin: 2.4em 0 0;
}

/* Lists */
.single-post :is(.page-content, .wp-block-post-content) :is(ul, ol) { padding-left: 1.4em; margin: 0 0 1.4em; }
.single-post :is(.page-content, .wp-block-post-content) li { margin-bottom: .5em; }
.single-post :is(.page-content, .wp-block-post-content) li::marker { color: var(--cp-primary); font-weight: 700; }

/* ---------- 4. Table of Contents card (first H2 + list) ---------- */
.single-post :is(.page-content, .wp-block-post-content) > h2:first-child {
	margin: 0;
	padding: 22px 28px 12px;
	font-size: 22px;
	background: var(--cp-soft);
	border: 1px solid var(--cp-border);
	border-bottom: 0;
	border-left: 5px solid var(--cp-primary);
	border-radius: 12px 12px 0 0;
}
.single-post :is(.page-content, .wp-block-post-content) > h2:first-child + ol {
	margin: 0 0 2em;
	padding: 8px 28px 22px 56px;
	background: var(--cp-soft);
	border: 1px solid var(--cp-border);
	border-top: 0;
	border-left: 5px solid var(--cp-primary);
	border-radius: 0 0 12px 12px;
	font-size: 16px;
	line-height: 1.5;
	column-count: 2;
	column-gap: 40px;
}
.single-post :is(.page-content, .wp-block-post-content) > h2:first-child + ol li { break-inside: avoid; margin-bottom: .7em; }
.single-post :is(.page-content, .wp-block-post-content) > h2:first-child + ol a { color: var(--cp-text); text-decoration: none; }
.single-post :is(.page-content, .wp-block-post-content) > h2:first-child + ol a:hover { color: var(--cp-secondary); }

/* ---------- 5. Problem / Solution boxes ---------- */
.single-post :is(.page-content, .wp-block-post-content) blockquote {
	margin: 2em 0;
	padding: 22px 28px;
	background: rgba(60, 98, 219, .06);
	border: 1px solid rgba(60, 98, 219, .22);
	border-left: 5px solid var(--cp-secondary);
	border-radius: 12px;
	font-size: 18px;
	font-style: normal;
}
.single-post :is(.page-content, .wp-block-post-content) blockquote p { margin: 0 0 .6em; }
.single-post :is(.page-content, .wp-block-post-content) blockquote p:last-child { margin-bottom: 0; }
.single-post :is(.page-content, .wp-block-post-content) blockquote strong { color: var(--cp-secondary); }

/* ---------- 6. Images ---------- */
.single-post :is(.page-content, .wp-block-post-content) img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
	box-shadow: 0 8px 30px rgba(20, 24, 31, .12);
}
.single-post :is(.page-content, .wp-block-post-content) :is(figure, p > img) { margin-block: 2em; }
.single-post :is(.page-content, .wp-block-post-content) figcaption {
	font-size: 14px;
	color: var(--cp-muted);
	text-align: center;
	margin-top: 10px;
}

/* ---------- 7. Comparison table ---------- */
.single-post :is(.page-content, .wp-block-post-content) table {
	width: 100%;
	margin: 1.8em 0;
	font-size: 16px;
	line-height: 1.5;
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid var(--cp-border);
	border-radius: 12px;
	overflow: hidden;
}
.single-post :is(.page-content, .wp-block-post-content) :is(th, td) {
	padding: 14px 16px;
	border: 0;
	border-top: 1px solid var(--cp-border);
	vertical-align: top;
	text-align: left;
}
.single-post :is(.page-content, .wp-block-post-content) thead th {
	background: var(--cp-secondary);
	border-top: 0;
	color: #fff;
	font-weight: 600;
}
.single-post :is(.page-content, .wp-block-post-content) tbody tr:nth-child(odd) :is(td, th) { background: #fff; }
.single-post :is(.page-content, .wp-block-post-content) tbody tr:nth-child(even) :is(td, th) { background: var(--cp-soft); }
.single-post :is(.page-content, .wp-block-post-content) tbody tr:hover :is(td, th) { background: rgba(26, 188, 156, .09); }
.single-post :is(.page-content, .wp-block-post-content) td:first-child { font-weight: 600; }

/* ---------- 8. Code ---------- */
.single-post :is(.page-content, .wp-block-post-content) code {
	background: var(--cp-soft);
	padding: 2px 6px;
	border-radius: 4px;
	font-size: .9em;
}
.single-post :is(.page-content, .wp-block-post-content) pre {
	background: #14181f;
	color: #e8ecf3;
	padding: 20px;
	border-radius: 10px;
	overflow-x: auto;
}
.single-post :is(.page-content, .wp-block-post-content) pre code { background: none; padding: 0; color: inherit; }

/* ---------- 9. Tags ---------- */
.single-post .post-tags {
	max-width: var(--cp-read);
	margin: 40px auto 0;
	padding-top: 24px;
	border-top: 1px solid var(--cp-border);
	font-size: 15px;
	color: var(--cp-muted);
}
.single-post .post-tags a {
	display: inline-block;
	margin: 4px 6px 4px 0;
	padding: 4px 14px;
	border-radius: 999px;
	background: rgba(60, 98, 219, .08);
	color: var(--cp-secondary);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: background .2s, color .2s;
}
.single-post .post-tags a:hover { background: var(--cp-secondary); color: #fff; }

/* ---------- 10. Comments hidden (delete this block to show comments) ---------- */
.single-post #comments,
.single-post .comments-area,
.single-post .comment-respond,
.single-post #respond,
.single-post .wp-block-comments,
.single-post .wp-block-post-comments-form {
	display: none !important;
}

/* ---------- 11. Reading progress bar (Chrome/Edge/Safari) ---------- */
@supports (animation-timeline: scroll()) {
	body.single-post::before {
		content: "";
		position: fixed;
		top: 0; left: 0;
		width: 100%; height: 4px;
		background: linear-gradient(90deg, var(--cp-primary), var(--cp-secondary));
		transform-origin: 0 50%;
		transform: scaleX(0);
		animation: cp-progress linear forwards;
		animation-timeline: scroll(root);
		z-index: 9999;
	}
	@keyframes cp-progress { to { transform: scaleX(1); } }
}

html { scroll-behavior: smooth; }

/* ---------- 12. Responsive ---------- */
@media (max-width: 900px) {
	.single-post :is(.page-content, .wp-block-post-content) > h2:first-child + ol { column-count: 1; }
	.single-post :is(.page-content, .wp-block-post-content) table { display: block; overflow-x: auto; }
}
@media (max-width: 600px) {
	.single-post main { padding: 32px 16px 56px !important; }
	.single-post :is(.page-content, .wp-block-post-content) { font-size: 17px; }
	.single-post :is(.page-content, .wp-block-post-content) h2 { padding-left: 12px; }
	.single-post :is(.page-content, .wp-block-post-content) > h2:first-child { padding: 18px 20px 10px; }
	.single-post :is(.page-content, .wp-block-post-content) > h2:first-child + ol { padding: 6px 20px 18px 44px; }
	.single-post :is(.page-content, .wp-block-post-content) blockquote { padding: 18px 20px; }
}