/* Ecovenir SEO & Single Post Editorial Experience — Responsive Across All Screens */

/* Top Reading Progress Bar */
.eco-read-progress {
	position: fixed;
	top: 0;
	inset-inline: 0;
	height: 4px;
	z-index: 99999;
	background: rgba(23, 23, 26, 0.06);
	pointer-events: none;
}

.eco-read-progress__bar {
	width: 0%;
	height: 100%;
	background: linear-gradient(90deg, #e86a00 0%, #ff9a1f 60%, #ffb300 100%);
	transition: width 80ms linear;
}

/* Editorial Layout Grid (Main Reading Column + Sticky TOC & Quick WhatsApp Sidebar on Desktop) */
.eco-editorial-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(1.75rem, 3.5vw, 3rem);
	align-items: start;
}

@media (min-width: 1080px) {
	.eco-editorial-grid.has-sidebar {
		grid-template-columns: minmax(0, 820px) minmax(260px, 310px);
		justify-content: space-between;
	}
}

.eco-editorial-main {
	min-width: 0;
	width: 100%;
}

/* Sticky Sidebar (Desktop) & Clean Collapsible TOC (Mobile/Tablet) */
.eco-editorial-sidebar {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 1.15rem;
}

@media (min-width: 1080px) {
	.eco-editorial-sidebar {
		position: sticky;
		top: 6.25rem;
	}
}

.eco-toc-box {
	background: #f8fafc;
	border: 1px solid #e6e2dd;
	border-radius: 16px;
	padding: 18px 20px;
}

.eco-toc-box__title {
	margin: 0 0 10px;
	font-family: var(--wp--preset--font-family--display, inherit);
	font-size: 0.94rem;
	font-weight: 800;
	color: #17171a;
	display: flex;
	align-items: center;
	gap: 8px;
}

.eco-toc-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.eco-toc-list a {
	display: block;
	padding: 6px 10px;
	border-radius: 9px;
	font-size: 0.86rem;
	line-height: 1.5;
	color: #475569 !important;
	text-decoration: none !important;
	font-weight: 600;
	border-right: 2px solid transparent;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.eco-toc-list a:hover,
.eco-toc-list a.is-active {
	background: #fff7ed;
	color: #c2410c !important;
	border-right-color: #e86a00;
}

.eco-side-cta {
	background: linear-gradient(145deg, #17171a 0%, #27272a 70%, #431407 100%);
	color: #ffffff;
	border-radius: 16px;
	padding: 20px;
	box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}

.eco-side-cta__eyebrow {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 800;
	color: #ffb300;
	margin-bottom: 6px;
}

.eco-side-cta h4 {
	margin: 0 0 8px !important;
	font-size: 1.05rem !important;
	line-height: 1.45 !important;
	color: #ffffff !important;
}

.eco-side-cta p {
	margin: 0 0 14px !important;
	font-size: 0.86rem !important;
	line-height: 1.7 !important;
	color: #cbd5e1;
}

.eco-side-cta .eco-seo-btn {
	width: 100%;
	padding: 11px 14px;
	font-size: 0.88rem;
}

.eco-side-cta__sublink {
	display: block;
	text-align: center;
	margin-top: 10px;
	font-size: 0.82rem;
	color: #fde68a !important;
	text-decoration: none !important;
	font-weight: 700;
}

.eco-side-cta__sublink:hover {
	text-decoration: underline !important;
}

@media (max-width: 1079px) {
	.eco-editorial-sidebar {
		order: -1;
	}
	.eco-side-cta {
		display: none;
	}
}

/* Core Article Typography & Readability */
.eco-seo-article {
	font-size: clamp(1.03rem, 1.12vw, 1.15rem);
	line-height: 2;
	color: #1e293b;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.eco-seo-article h2 {
	margin: 2.3rem 0 1rem !important;
	font-size: clamp(1.32rem, 2.2vw, 1.72rem) !important;
	font-weight: 800;
	color: #17171a;
	line-height: 1.42;
	padding-right: 14px;
	border-right: 4px solid #e86a00;
	scroll-margin-top: 6.5rem;
}

.eco-seo-article h3 {
	margin: 1.65rem 0 0.75rem !important;
	font-size: clamp(1.12rem, 1.6vw, 1.35rem) !important;
	font-weight: 800;
	color: #0f172a;
}

.eco-seo-article p {
	margin: 0 0 1.25rem;
}

.eco-seo-article ul,
.eco-seo-article ol {
	margin: 0.7rem 0 1.45rem;
	padding-right: 1.4rem;
}

.eco-seo-article li {
	margin-bottom: 0.65rem;
}

.eco-seo-article a {
	color: #c2410c;
	text-decoration: underline;
	text-underline-offset: 4px;
	font-weight: 700;
}

.eco-seo-article a:hover {
	color: #e86a00;
}

/* In-Article Editorial Figures */
.eco-seo-figure {
	margin: 2rem 0 !important;
	background: #f8fafc;
	border: 1px solid #e6e2dd;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.eco-seo-figure img {
	display: block;
	width: 100% !important;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: 0 !important;
}

.eco-seo-figure figcaption {
	margin: 0 !important;
	padding: 12px 18px !important;
	font-size: 0.85rem !important;
	color: #475569 !important;
	background: #f8fafc;
	border-top: 1px solid #e6e2dd;
	line-height: 1.65;
}

/* Responsive Tables */
.eco-seo-article table {
	display: block;
	width: 100%;
	overflow-x: auto;
	border-collapse: collapse;
	margin: 1.6rem 0;
	font-size: 0.94rem;
}

/* Key Takeaways Box */
.eco-seo-takeaways {
	background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 100%);
	border: 1px solid #fed7aa;
	border-right: 5px solid #e86a00;
	border-radius: 16px;
	padding: clamp(16px, 2.5vw, 24px);
	margin: 0 0 2rem;
}

.eco-seo-takeaways__head {
	font-weight: 800;
	font-size: 1.08rem;
	color: #9a3412;
	margin-bottom: 10px;
}

.eco-seo-takeaways ul {
	margin: 0;
	padding-right: 1.2rem;
}

.eco-seo-takeaways li {
	color: #431407;
	margin-bottom: 7px;
}

/* Mid-Article Product Showcase Card */
.eco-seo-prodcard {
	background: #ffffff;
	border: 1px solid #e6e2dd;
	border-top: 4px solid #e86a00;
	border-radius: 18px;
	padding: clamp(18px, 3vw, 26px);
	margin: 2.25rem 0;
	box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.eco-seo-prodcard__badge {
	display: inline-block;
	background: #fff7ed;
	color: #c2410c;
	border: 1px solid #fdba74;
	font-size: 0.82rem;
	font-weight: 700;
	padding: 4px 12px;
	border-radius: 999px;
	margin-bottom: 10px;
}

.eco-seo-prodcard__title {
	margin: 0 0 8px !important;
	font-size: clamp(1.18rem, 1.8vw, 1.38rem) !important;
	font-weight: 800;
	color: #0f172a;
}

.eco-seo-prodcard__desc {
	margin: 0 0 14px;
	color: #475569;
	font-size: 0.98rem;
}

.eco-seo-prodcard__list {
	list-style: none;
	padding: 0 !important;
	margin: 0 0 18px !important;
	display: grid;
	gap: 8px;
}

.eco-seo-prodcard__list li {
	margin: 0;
	color: #1e293b;
	font-weight: 600;
	font-size: 0.95rem;
}

.eco-seo-prodcard__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* Buttons */
.eco-seo-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 11px 22px;
	border-radius: 12px;
	font-weight: 800;
	font-size: 0.95rem;
	text-decoration: none !important;
	transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
	cursor: pointer;
}

.eco-seo-btn:hover {
	transform: translateY(-2px);
}

.eco-seo-btn--whatsapp {
	background: #25d366;
	color: #ffffff !important;
	box-shadow: 0 8px 20px rgba(37, 211, 102, 0.28);
}

.eco-seo-btn--whatsapp:hover {
	background: #1ebe5b;
	color: #ffffff !important;
}

.eco-seo-btn--primary {
	background: #17171a;
	color: #ffffff !important;
}

.eco-seo-btn--primary:hover {
	background: #e86a00;
	color: #ffffff !important;
}

.eco-seo-btn--ghost {
	background: rgba(255, 255, 255, 0.12);
	color: #ffffff !important;
	border: 1px solid rgba(255, 255, 255, 0.35);
}

.eco-seo-btn--ghost:hover {
	background: rgba(255, 255, 255, 0.22);
	color: #ffffff !important;
}

.eco-seo-btn--lg {
	padding: 13px 26px;
	font-size: 1.02rem;
}

/* Related Internal Links */
.eco-seo-related {
	background: #f8fafc;
	border: 1px solid #e6e2dd;
	border-radius: 14px;
	padding: 18px 22px;
	margin: 2rem 0;
}

.eco-seo-related h3 {
	margin: 0 0 10px !important;
	font-size: 1.08rem !important;
	font-weight: 800;
	color: #0f172a;
}

.eco-seo-related ul {
	margin: 0;
}

/* FAQ Accordion */
.eco-seo-faqs {
	margin: 2.4rem 0;
}

.eco-seo-faq-item {
	background: #ffffff;
	border: 1px solid #e6e2dd;
	border-radius: 12px;
	margin-bottom: 10px;
	overflow: hidden;
}

.eco-seo-faq-item summary {
	padding: 15px 18px;
	font-weight: 700;
	color: #0f172a;
	cursor: pointer;
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.eco-seo-faq-item summary::after {
	content: '+';
	font-size: 1.3rem;
	font-weight: 800;
	color: #e86a00;
	flex-shrink: 0;
}

.eco-seo-faq-item[open] summary::after {
	content: '−';
}

.eco-seo-faq-item__body {
	padding: 0 18px 16px;
	color: #475569;
	border-top: 1px solid #f1f5f9;
}

.eco-seo-faq-item__body p {
	margin: 12px 0 0;
}

/* End-of-Article WhatsApp Conversion Banner */
.eco-seo-wacta {
	background: linear-gradient(135deg, #17171a 0%, #27272a 60%, #431407 100%);
	color: #ffffff;
	border-radius: 20px;
	padding: clamp(22px, 3.5vw, 32px);
	margin: 2.5rem 0 1rem;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.eco-seo-wacta__content {
	flex: 1 1 300px;
}

.eco-seo-wacta h3 {
	margin: 0 0 8px !important;
	color: #ffffff !important;
	font-size: clamp(1.2rem, 2vw, 1.45rem) !important;
	font-weight: 800;
}

.eco-seo-wacta p {
	margin: 0;
	color: #e2e8f0;
	font-size: 0.96rem;
}

.eco-seo-wacta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

@media (max-width: 640px) {
	.ecovenir-article-content-shell {
		width: calc(100% - 1.5rem) !important;
	}
	.eco-seo-btn {
		width: 100%;
	}
}
