/*
Theme Name:   Webadis Child
Theme URI:    https://webadis.com/
Description:  Webadis Child Theme for Astra – Qurno-inspired Blog Design
Author:       Webadis
Author URI:   https://webadis.com/
Template:     astra
Version:      1.1.0
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  webadis-child
*/

/* ============================================================
   SEO BREADCRUMB
   ============================================================ */
.wa-breadcrumb {
	margin-bottom: 14px;
}

.wa-breadcrumb-list {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.wa-breadcrumb-list li {
	display: inline-flex;
	align-items: center;
	font-size: 13px;
	color: rgba(255,255,255,0.65);
}

.wa-breadcrumb-list li a {
	color: rgba(255,255,255,0.75) !important;
	text-decoration: none !important;
	transition: color 0.2s;
}

.wa-breadcrumb-list li a:hover {
	color: #fff !important;
}

/* Separator via CSS — keeps <ol> valid (no bare <span> children) */
.wa-bc-item:not(:last-child)::after {
	content: '›';
	font-size: 13px;
	color: rgba(255,255,255,0.45);
	margin: 0 4px;
	line-height: 1;
}

/* ============================================================
   CLS PREVENTION — reserve space for images before they load
   ============================================================ */

/* Featured post image — fixed aspect ratio prevents layout shift */
.single-post .wa-featured-img {
	contain: layout;
}

/* Content images always respect their natural dimensions */
.single-post .entry-content img {
	height: auto;
	max-width: 100%;
}

/* Font-display swap so text renders immediately (CLS / FCP fix) */
@font-face {
	font-family: 'Inter';
	font-display: swap;
}

/* ============================================================
   WEBADIS NAVBAR — exact webadis.com design
   ============================================================ */

/* Sticky nav */
.wa-site-nav {
	position: sticky;
	top: 0;
	z-index: 99999;
	background: #ffffff;
	box-shadow: 0 2px 12px rgba(8,14,65,0.09);
	width: 100%;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.wa-nav-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
	height: 72px;
	gap: 16px;
}

/* Logo */
.wa-nav-logo {
	flex-shrink: 0;
	line-height: 0;
	text-decoration: none !important;
}
.wa-nav-logo img {
	height: 44px;
	width: auto;
	display: block;
	object-fit: contain;
}

/* Nav menu wrapper */
.wa-nav-menu {
	display: flex;
	align-items: center;
	gap: 4px;
	flex: 1;
	justify-content: flex-start;   /* nav links hug the logo on the left */
}

/* Push phone CTA to the far right */
.wa-nav-cta {
	margin-left: auto;
}

/* Nav list (WordPress menu output) */
.wa-nav-list {
	display: flex;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 0;
}

.wa-nav-list > li {
	position: relative;
	margin: 0;
}

.wa-nav-list > li > a {
	display: block;
	padding: 10px 14px;
	font-size: 15px;
	font-weight: 500;
	color: #080e41 !important;
	text-decoration: none !important;
	white-space: nowrap;
	transition: color 0.2s ease;
	line-height: 1.4;
}

.wa-nav-list > li > a:hover,
.wa-nav-list > li.current-menu-item > a,
.wa-nav-list > li.current_page_item > a,
.wa-nav-list > li.current-menu-ancestor > a {
	color: #0d6efd !important;
}

/* Dropdown caret */
.wa-nav-list > li.menu-item-has-children > a::after {
	content: '\25BE';
	margin-left: 4px;
	font-size: 11px;
	opacity: 0.7;
	vertical-align: middle;
}

/* Dropdown menu */
.wa-nav-list .sub-menu {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	min-width: 210px;
	background: #ffffff;
	border-radius: 8px;
	box-shadow: 0 8px 32px rgba(8,14,65,0.13);
	list-style: none;
	margin: 0;
	padding: 8px 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
	z-index: 100000;
}

.wa-nav-list > li:hover > .sub-menu,
.wa-nav-list > li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.wa-nav-list .sub-menu li {
	margin: 0;
}

.wa-nav-list .sub-menu a {
	display: block;
	padding: 10px 20px;
	font-size: 14px;
	font-weight: 400;
	color: #080e41 !important;
	text-decoration: none !important;
	white-space: nowrap;
	transition: all 0.18s ease;
}

.wa-nav-list .sub-menu a:hover {
	background: #f0f4ff;
	color: #0d6efd !important;
	padding-left: 26px;
}

/* Phone CTA button */
.wa-nav-cta {
	display: inline-block;
	padding: 9px 20px;
	background: #080e41;
	color: #ffffff !important;
	text-decoration: none !important;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	border: 1px solid rgba(255,255,255,0.25);
	white-space: nowrap;
	transition: background 0.2s ease, transform 0.2s ease;
	flex-shrink: 0;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.wa-nav-cta:hover {
	background: #0d6efd !important;
	transform: translateY(-1px);
}

/* Hamburger button */
.wa-hamburger {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 36px;
	height: 36px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 4px;
	-webkit-appearance: none;
	appearance: none;
	flex-shrink: 0;
}

.wa-hamburger span {
	display: block;
	width: 22px;
	height: 2px;
	background: #080e41;
	border-radius: 2px;
	transition: all 0.3s ease;
	transform-origin: center;
}

/* Hamburger → X animation */
.wa-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg);  }
.wa-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.wa-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile ───────────────────────── */
@media (max-width: 991px) {
	.wa-hamburger {
		display: flex;
	}

	.wa-nav-menu {
		display: none;
		position: absolute;
		top: 72px;
		left: 0;
		right: 0;
		background: #ffffff;
		flex-direction: column;
		align-items: flex-start;
		padding: 12px 20px 20px;
		box-shadow: 0 10px 24px rgba(8,14,65,0.12);
		gap: 0;
		z-index: 99998;
	}

	.wa-nav-menu.open {
		display: flex;
	}

	.wa-nav-list {
		flex-direction: column;
		width: 100%;
		gap: 0;
	}

	.wa-nav-list > li > a {
		padding: 11px 6px;
		border-bottom: 1px solid #f0f0f5;
		display: block;
		width: 100%;
	}

	.wa-nav-list .sub-menu {
		position: static;
		opacity: 1 !important;
		visibility: visible !important;
		transform: none !important;
		box-shadow: none;
		border-radius: 0;
		padding: 0 0 4px 16px;
		border-left: 3px solid #0d6efd;
		display: none;
	}

	.wa-nav-list > li.open > .sub-menu {
		display: block;
	}

	.wa-nav-list .sub-menu a {
		padding: 8px 12px;
		font-size: 13px;
	}

	.wa-nav-list .sub-menu a:hover {
		padding-left: 18px;
	}

	.wa-nav-cta {
		margin: 12px 0 0 0;
		width: 100%;
		text-align: center;
		display: block;
	}
}

/* ============================================================
   WEBADIS FOOTER — exact webadis.com design
   ============================================================ */
.wa-footer {
	background-color: #080e41;
	color: #ffffff;
	padding-top: 5vw;
	padding-bottom: 1vw;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.wa-footer-inner {
	width: 80%;
	margin: 0 auto;
}

.wa-footer-grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1.6fr 1fr;
	gap: 40px;
	padding-bottom: 40px;
	border-bottom: 1px solid rgba(255,255,255,0.12);
}

/* Logo in footer */
.wa-footer-logo {
	display: block;
	margin-bottom: 18px;
	line-height: 0;
}
.wa-footer-logo img {
	height: 40px;
	width: auto;
	object-fit: contain;
	filter: brightness(0) invert(1);
}

/* About text */
.wa-footer-about p {
	font-size: 14px;
	line-height: 1.85;
	color: rgba(255,255,255,0.72);
	margin: 0 0 20px;
}

/* Social icons */
.wa-footer-social {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.wa-footer-social a {
	display: inline-block;
	transition: transform 0.2s ease, opacity 0.2s ease;
	line-height: 0;
}

.wa-footer-social a:hover {
	transform: translateY(-4px);
	opacity: 0.85;
}

.wa-footer-social img {
	width: 32px;
	height: 32px;
	object-fit: contain;
	display: block;
	filter: brightness(0) invert(1);
}

/* Column headings */
.wa-footer-col h4 {
	font-size: 16px;
	font-weight: 700;
	color: #ffffff;
	margin: 0 0 16px;
	padding-bottom: 10px;
	border-bottom: 2px solid #0d6efd;
}

/* Quick links column */
.wa-footer-links ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.wa-footer-links ul li {
	margin-bottom: 10px;
}

.wa-footer-links ul li a {
	color: rgba(255,255,255,0.72) !important;
	text-decoration: none !important;
	font-size: 14px;
	transition: color 0.2s ease, padding-left 0.2s ease;
}

.wa-footer-links ul li a:hover {
	color: #0d6efd !important;
	padding-left: 6px;
}

/* Contact column */
.wa-footer-contact-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 14px;
}

.wa-footer-contact-item img {
	width: 18px;
	height: 18px;
	object-fit: contain;
	flex-shrink: 0;
	margin-top: 3px;
	filter: brightness(0) invert(1);
}

.wa-footer-contact-item span {
	font-size: 14px;
	color: rgba(255,255,255,0.72);
	line-height: 1.65;
}

.wa-footer-contact-item a {
	color: rgba(255,255,255,0.72) !important;
	text-decoration: none !important;
	transition: color 0.2s;
}

.wa-footer-contact-item a:hover {
	color: #0d6efd !important;
}

.wa-footer-gstin {
	font-size: 13px;
	color: rgba(255,255,255,0.5);
	margin: 14px 0 0;
}

/* Google Partner badge column */
.wa-footer-badge a {
	display: inline-block;
	text-decoration: none !important;
	transition: transform 0.2s ease;
}

.wa-footer-badge a:hover {
	transform: translateY(-3px);
}

.wa-footer-badge img {
	max-width: 160px;
	height: auto;
	display: block;
	border-radius: 6px;
	border: 1px solid rgba(255,255,255,0.15);
	padding: 8px;
	background: rgba(255,255,255,0.05);
}

/* Copyright bar */
.wa-footer-copyright {
	text-align: center;
	padding-top: 20px;
}

.wa-footer-copyright p {
	font-size: 14px;
	color: rgba(255,255,255,0.55);
	margin: 0;
}

/* Footer responsive */
@media (max-width: 991px) {
	.wa-footer-inner { width: 90%; }
	.wa-footer-grid  { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 600px) {
	.wa-footer-inner { width: 95%; }
	.wa-footer-grid  { grid-template-columns: 1fr; gap: 28px; }
	.wa-footer       { padding-top: 40px; padding-bottom: 10px; }
}

/* ============================================================
   CSS VARIABLES  — change these to match your brand
   ============================================================ */
:root {
	--wa-bg:           #ffffff;
	--wa-bg-alt:       #f7f7f9;
	--wa-text:         #18181b;
	--wa-muted:        #71717a;
	--wa-primary:      #7c3aed;
	--wa-primary-lt:   #ede9fe;
	--wa-primary-dk:   #5b21b6;
	--wa-accent:       #f59e0b;
	--wa-border:       #e4e4e7;
	--wa-border-lt:    #f0f0f3;
	--wa-radius-sm:    6px;
	--wa-radius:       10px;
	--wa-radius-lg:    16px;
	--wa-shadow:       0 4px 20px rgba(0,0,0,0.07);
	--wa-shadow-lg:    0 12px 40px rgba(0,0,0,0.10);
	--wa-font:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--wa-transition:   all 0.2s ease;
	--wa-container:    1060px;
	--wa-content-w:    700px;
	--wa-toc-w:        230px;
}

/* ============================================================
   READING PROGRESS BAR
   ============================================================ */
#wa-progress-bar {
	position: fixed;
	top: 0;
	left: 0;
	width: 0%;
	height: 3px;
	background: linear-gradient(90deg, var(--wa-primary), #a78bfa);
	z-index: 99999;
	transition: width 0.08s linear;
}

/* ============================================================
   POST WRAP  — outer container for all blog-post content
   ============================================================ */
.single-post .wa-post-wrap {
	max-width: var(--wa-container);
	margin: 0 auto;
	padding: 0 24px;
}

/* ============================================================
   HIDE DEFAULT ASTRA SINGLE-POST ELEMENTS
   ============================================================ */
.single-post .entry-header,
.single-post .ast-single-post-order,
.single-post .post-thumb,
.single-post .ast-author-bio,
.single-post .ast-related-posts-title,
.single-post .related-posts,
/* Astra's page-title / hero area that duplicates the H1 */
.single-post .ast-hero-container,
.single-post .ast-above-post-section,
.single-post #ast-banner-container,
.single-post .ast-breadcrumbs-wrapper,
.single-post .ast-page-header,
.single-post .site-banner,
.single-post .page-header {
	display: none !important;
}

/* White page background */
body.single-post {
	background-color: #ffffff !important;
}

/* ── Remove ALL blank space below footer (global, not just single-post) ──
   Astra sets display:flex on #page and flex:1 on #content so the content
   area stretches to fill the viewport — leaving empty space under our footer.
   Switching #page to display:block collapses it to natural content height. */
#page.site,
#page.hfeed {
	display:    block !important;
	min-height: 0     !important;
	height:     auto  !important;
}

#content.site-content {
	flex:           none !important;
	min-height:     0    !important;
	padding-bottom: 0    !important;
}

#primary,
.ast-container,
.site-content,
.ast-article-single {
	padding-bottom: 0 !important;
	margin-bottom:  0 !important;
	min-height:     0 !important;
}

/* Contain the post-header so nothing leaks out */
.single-post .wa-post-header {
	isolation: isolate;
	overflow: hidden;
}

/* ============================================================
   POST HEADER  — category · title · meta · share · image
   ============================================================ */
.single-post .wa-post-header {
	padding: 56px 0 0;
	border-bottom: 1px solid rgba(124,58,237,.12);
	background: linear-gradient(158deg, #fdfcff 0%, #f0ebff 35%, #eef3ff 70%, #f8f7ff 100%);
	position: relative;
	overflow: hidden;
}

.single-post .wa-header-text,
.single-post .wa-featured-img {
	position: relative;
	z-index: 1;
}

/* Narrowed text block (title, meta) */
.single-post .wa-header-text {
	max-width: var(--wa-content-w);
	margin: 0 auto;
	padding-bottom: 32px;
}

/* Category badge */
.single-post .wa-cats {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 18px;
}

.single-post .wa-cat-badge {
	display: inline-block;
	padding: 4px 14px;
	border-radius: 50px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	background: var(--wa-primary-lt);
	color: var(--wa-primary);
	text-decoration: none !important;
	transition: var(--wa-transition);
}

.single-post .wa-cat-badge:hover {
	background: var(--wa-primary);
	color: #fff;
}

/* Post title */
.single-post .wa-post-title {
	font-family: var(--wa-font);
	font-size: clamp(26px, 3.8vw, 44px);
	font-weight: 800;
	line-height: 1.18;
	letter-spacing: -0.025em;
	margin: 0 0 28px;
	background: linear-gradient(135deg, #18181b 0%, #3730a3 60%, #7c3aed 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

/* Meta row */
.single-post .wa-meta-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 24px;
}

.single-post .wa-meta-avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid var(--wa-border);
	flex-shrink: 0;
}

.single-post .wa-meta-author {
	font-size: 14px;
	font-weight: 700;
	color: var(--wa-text);
	text-decoration: none !important;
}

.single-post .wa-meta-author:hover {
	color: var(--wa-primary);
}

.single-post .wa-meta-dot {
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: var(--wa-border);
	flex-shrink: 0;
}

.single-post .wa-meta-date,
.single-post .wa-meta-read {
	font-size: 13px;
	color: var(--wa-muted);
}

/* ──────────────────────────────────────
   Share row  (horizontal icon buttons)
────────────────────────────────────── */
.single-post .wa-share-row {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 18px 0;
	border-top: 1px solid var(--wa-border);
	border-bottom: 1px solid var(--wa-border);
	margin-bottom: 32px;
}

.single-post .wa-share-lbl {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wa-muted);
	margin-right: 4px;
}

.single-post .wa-share-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 1px solid var(--wa-border);
	background: var(--wa-bg);
	color: var(--wa-muted) !important;
	text-decoration: none !important;
	transition: var(--wa-transition);
	cursor: pointer;
	/* Reset browser/Astra button defaults */
	-webkit-appearance: none;
	appearance: none;
	padding: 0 !important;
	margin: 0;
	line-height: 0;
	box-sizing: border-box;
}

/* Make SVGs inside share icons always visible and centred */
.single-post .wa-share-icon svg {
	display: block;
	flex-shrink: 0;
	width: 15px;
	height: 15px;
	fill: none;
	stroke: currentColor;
	pointer-events: none;
}

/* Share icons that use fill (facebook, reddit, pinterest) */
.single-post .wa-share-icon svg[fill="currentColor"] {
	fill: currentColor;
	stroke: none;
}

.single-post .wa-share-icon:hover,
.single-post .wa-share-icon:focus {
	border-color: var(--wa-primary);
	background: var(--wa-primary-lt);
	color: var(--wa-primary) !important;
	transform: translateY(-2px);
}

.single-post .wa-share-icon.copied {
	border-color: #22c55e;
	color: #22c55e !important;
}

/* ──────────────────────────────────────
   Featured image
────────────────────────────────────── */
.single-post .wa-featured-img {
	margin: 0;
	line-height: 0;
	overflow: hidden;
	border-radius: var(--wa-radius-lg) var(--wa-radius-lg) 0 0;
	aspect-ratio: 1200 / 680; /* matches your 1200×680 header images */
}

.single-post .wa-featured-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ============================================================
   ARTICLE BODY  — sticky ToC on left, content on right
   ============================================================ */
.single-post .wa-article-body {
	display: grid;
	grid-template-columns: var(--wa-toc-w) 1fr;
	gap: 56px;
	padding: 52px 0 64px;
	align-items: start;
}

/* ──────────────────────────────────────
   Table of Contents
────────────────────────────────────── */
.single-post .wa-toc-sidebar {
	position: sticky;
	top: 96px;
}

.single-post .wa-toc-inner {
	background: var(--wa-bg-alt);
	border: 1px solid var(--wa-border);
	border-radius: var(--wa-radius);
	padding: 20px;
}

.single-post .wa-toc-heading {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wa-muted);
	margin: 0 0 14px;
}

.single-post .wa-toc-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.single-post .wa-toc-item {
	margin: 0;
}

.single-post .wa-toc-item a {
	display: block;
	font-size: 13px;
	line-height: 1.4;
	padding: 6px 8px 6px 10px;
	border-left: 2px solid var(--wa-border);
	color: var(--wa-muted) !important;
	text-decoration: none !important;
	border-radius: 0 var(--wa-radius-sm) var(--wa-radius-sm) 0;
	transition: var(--wa-transition);
}

.single-post .wa-toc-item a:hover {
	border-left-color: var(--wa-primary);
	color: var(--wa-primary) !important;
	background: var(--wa-primary-lt);
}

.single-post .wa-toc-item.active a {
	border-left-color: var(--wa-primary);
	color: var(--wa-primary) !important;
	font-weight: 600;
	background: var(--wa-primary-lt);
}

.single-post .wa-toc-item.is-h3 a {
	padding-left: 22px;
	font-size: 12px;
}

/* ──────────────────────────────────────
   Content main
────────────────────────────────────── */
.single-post .wa-content-main {
	min-width: 0;
}

/* ============================================================
   ARTICLE TYPOGRAPHY
   ============================================================ */
.single-post .entry-content {
	font-family: var(--wa-font);
}

.single-post .entry-content p {
	font-size: 17px;
	line-height: 1.85;
	color: var(--wa-text);
	margin: 0 0 1.5em;
}

/* Slightly larger first letter — no drop cap, no color */
.single-post .entry-content > p:first-of-type::first-letter {
	font-size: 1.35em;
	font-weight: 700;
	color: var(--wa-text);
}

.single-post .entry-content h2 {
	font-size: 26px;
	font-weight: 800;
	letter-spacing: -0.015em;
	color: var(--wa-text);
	margin: 2.2em 0 0.6em;
	scroll-margin-top: 96px;
}

.single-post .entry-content h3 {
	font-size: 20px;
	font-weight: 700;
	color: var(--wa-text);
	margin: 1.8em 0 0.5em;
	scroll-margin-top: 96px;
}

.single-post .entry-content h4 {
	font-size: 17px;
	font-weight: 700;
	color: var(--wa-text);
	margin: 1.5em 0 0.4em;
	scroll-margin-top: 96px;
}

/* Blockquote */
.single-post .entry-content blockquote {
	position: relative;
	margin: 2.2em 0;
	padding: 24px 28px 24px 48px;
	border-left: none;
	background: var(--wa-bg-alt);
	border-radius: var(--wa-radius);
	overflow: visible;
}

.single-post .entry-content blockquote::before {
	content: '"';
	position: absolute;
	left: 14px;
	top: 12px;
	font-size: 52px;
	line-height: 1;
	color: var(--wa-primary);
	opacity: 0.35;
	font-family: Georgia, serif;
	font-weight: 900;
}

.single-post .entry-content blockquote p {
	font-size: 17px !important;
	font-style: italic;
	color: var(--wa-text) !important;
	line-height: 1.7 !important;
	margin-bottom: 0 !important;
}

.single-post .entry-content blockquote cite {
	display: block;
	margin-top: 10px;
	font-size: 13px;
	font-style: normal;
	font-weight: 600;
	color: var(--wa-muted);
}

/* Lists */
.single-post .entry-content ul,
.single-post .entry-content ol {
	padding-left: 1.5em;
	margin: 0 0 1.5em;
}

.single-post .entry-content li {
	font-size: 17px;
	line-height: 1.8;
	color: var(--wa-text);
	margin-bottom: 0.35em;
}

.single-post .entry-content ul > li::marker {
	color: var(--wa-primary);
}

/* Images */
.single-post .entry-content img {
	max-width: 100%;
	height: auto;
	border-radius: var(--wa-radius);
	display: block;
}

/* Links */
.single-post .entry-content a {
	color: var(--wa-primary);
	text-decoration: underline;
	text-decoration-color: rgba(124,58,237,0.3);
	text-underline-offset: 3px;
	transition: var(--wa-transition);
}

.single-post .entry-content a:hover {
	color: var(--wa-primary-dk);
	text-decoration-color: var(--wa-primary-dk);
}

/* Code */
.single-post .entry-content code {
	background: var(--wa-primary-lt);
	color: var(--wa-primary-dk);
	padding: 2px 7px;
	border-radius: 4px;
	font-size: 0.87em;
	font-family: 'Courier New', monospace;
}

.single-post .entry-content pre {
	background: #18181b;
	color: #e4e4e7;
	border-radius: var(--wa-radius);
	padding: 22px 24px;
	overflow-x: auto;
	margin: 1.8em 0;
}

.single-post .entry-content pre code {
	background: none;
	color: inherit;
	padding: 0;
	font-size: 14px;
}

/* Tables */
.single-post .entry-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.8em 0;
	font-size: 15px;
	box-shadow: 0 0 0 1px var(--wa-border);
	border-radius: var(--wa-radius);
	overflow: hidden;
}

.single-post .entry-content th {
	background: var(--wa-text);
	color: #fff;
	padding: 11px 16px;
	text-align: left;
	font-weight: 700;
	font-size: 13px;
}

.single-post .entry-content td {
	padding: 11px 16px;
	border-bottom: 1px solid var(--wa-border-lt);
	color: var(--wa-text);
}

.single-post .entry-content tr:last-child td {
	border-bottom: none;
}

.single-post .entry-content tr:nth-child(even) td {
	background: var(--wa-bg-alt);
}

/* Horizontal rule */
.single-post .entry-content hr {
	border: none;
	border-top: 1px solid var(--wa-border);
	margin: 2.5em 0;
}

/* ============================================================
   TAGS
   ============================================================ */
.single-post .wa-tags {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin: 44px 0 0;
	padding: 28px 0 0;
	border-top: 1px solid var(--wa-border);
}

.single-post .wa-tags-lbl {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wa-muted);
	margin-right: 4px;
}

.single-post .wa-tag {
	display: inline-block;
	padding: 5px 14px;
	border-radius: 50px;
	border: 1px solid var(--wa-border);
	font-size: 13px;
	font-weight: 500;
	color: var(--wa-muted) !important;
	text-decoration: none !important;
	transition: var(--wa-transition);
}

.single-post .wa-tag:hover {
	border-color: var(--wa-primary);
	color: var(--wa-primary) !important;
	background: var(--wa-primary-lt);
}

/* ============================================================
   AUTHOR CARD
   ============================================================ */
.single-post .wa-author-card {
	display: flex;
	gap: 20px;
	align-items: flex-start;
	margin: 44px 0 0;
	padding: 28px;
	border: 1px solid var(--wa-border);
	border-radius: var(--wa-radius-lg);
	background: var(--wa-bg-alt);
}

.single-post .wa-author-avatar {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	border: 3px solid #fff;
	box-shadow: 0 0 0 2px var(--wa-border);
}

.single-post .wa-author-info {
	flex: 1;
	min-width: 0;
}

.single-post .wa-author-role {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wa-primary);
	margin: 0 0 4px;
}

.single-post .wa-author-name {
	font-size: 17px;
	font-weight: 800;
	color: var(--wa-text) !important;
	text-decoration: none !important;
	display: block;
	margin-bottom: 8px;
}

.single-post .wa-author-name:hover {
	color: var(--wa-primary) !important;
}

.single-post .wa-author-bio {
	font-size: 14px;
	line-height: 1.7;
	color: var(--wa-muted);
	margin: 0 0 14px;
}

.single-post .wa-author-links {
	display: flex;
	gap: 8px;
}

.single-post .wa-author-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 1px solid var(--wa-border);
	background: #fff;
	color: var(--wa-muted) !important;
	text-decoration: none !important;
	transition: var(--wa-transition);
}

.single-post .wa-author-link:hover {
	background: var(--wa-primary);
	border-color: var(--wa-primary);
	color: #fff !important;
}

/* ============================================================
   RELATED POSTS
   ============================================================ */
.single-post .wa-related {
	padding: 52px 0 64px;
	border-top: 1px solid var(--wa-border);
}

.single-post .wa-section-title {
	font-size: 20px;
	font-weight: 800;
	color: var(--wa-text);
	margin: 0 0 28px;
	letter-spacing: -0.01em;
}

.single-post .wa-related-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.single-post .wa-related-card {
	display: block;
	border: 1px solid var(--wa-border);
	border-radius: var(--wa-radius-lg);
	overflow: hidden;
	text-decoration: none !important;
	background: var(--wa-bg);
	transition: var(--wa-transition);
}

.single-post .wa-related-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--wa-shadow-lg);
	border-color: transparent;
}

.single-post .wa-related-thumb {
	width: 100%;
	aspect-ratio: 16/9;
	object-fit: cover;
	display: block;
}

.single-post .wa-related-placeholder {
	width: 100%;
	aspect-ratio: 16/9;
	background: linear-gradient(135deg, var(--wa-primary-lt) 0%, #ddd6fe 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
}

.single-post .wa-related-body {
	padding: 16px 18px 20px;
}

.single-post .wa-related-cat {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wa-primary);
	margin: 0 0 7px;
}

.single-post .wa-related-title {
	font-size: 15px;
	font-weight: 700;
	color: var(--wa-text) !important;
	line-height: 1.45;
	margin: 0 0 8px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.single-post .wa-related-date {
	font-size: 12px;
	color: var(--wa-muted);
}

/* ============================================================
   MOBILE TOC  — collapsible box
   ============================================================ */
.single-post .wa-mobile-toc {
	display: none;
	background: var(--wa-bg-alt);
	border: 1px solid var(--wa-border);
	border-radius: var(--wa-radius);
	margin-bottom: 32px;
	overflow: hidden;
}

.single-post .wa-mobile-toc-toggle {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 18px;
	background: none;
	border: none;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wa-muted);
	cursor: pointer;
}

.single-post .wa-mobile-toc-toggle svg {
	transition: var(--wa-transition);
}

.single-post .wa-mobile-toc.open .wa-mobile-toc-toggle svg {
	transform: rotate(180deg);
}

.single-post .wa-mobile-toc-body {
	display: none;
	padding: 0 18px 14px;
}

.single-post .wa-mobile-toc.open .wa-mobile-toc-body {
	display: block;
}

.single-post .wa-mobile-toc .wa-toc-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.single-post .wa-mobile-toc .wa-toc-item a {
	display: block;
	font-size: 13px;
	padding: 6px 8px 6px 10px;
	border-left: 2px solid var(--wa-border);
	color: var(--wa-muted) !important;
	text-decoration: none !important;
	transition: var(--wa-transition);
}

.single-post .wa-mobile-toc .wa-toc-item a:hover {
	border-left-color: var(--wa-primary);
	color: var(--wa-primary) !important;
}

.single-post .wa-mobile-toc .wa-toc-item.is-h3 a {
	padding-left: 22px;
	font-size: 12px;
}

/* ============================================================
   MODERN EFFECTS
   ============================================================ */

/* ── Keyframes ─────────────────────────── */
@keyframes waFadeUp {
	from { opacity: 0; transform: translateY(22px); }
	to   { opacity: 1; transform: translateY(0);    }
}

@keyframes waImgReveal {
	from { opacity: 0; transform: scale(1.04); }
	to   { opacity: 1; transform: scale(1);    }
}

/* ── Header entrance (on page load) ────── */
.single-post .wa-cats       { animation: waFadeUp  .50s ease .05s both; }
.single-post .wa-post-title { animation: waFadeUp  .55s ease .15s both; }
.single-post .wa-meta-row   { animation: waFadeUp  .50s ease .25s both; }
.single-post .wa-share-row  { animation: waFadeUp  .50s ease .30s both; }
.single-post .wa-featured-img { animation: waFadeUp .60s ease .40s both; }

/* ── Featured image — subtle zoom-out on load ── */
.single-post .wa-featured-img img {
	animation: waImgReveal .9s cubic-bezier(.22,.61,.36,1) .45s both;
}

/* ── Scroll-reveal (generic, for cards / author / tags) ── */
.wa-reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity .65s cubic-bezier(.22,.61,.36,1),
	            transform .65s cubic-bezier(.22,.61,.36,1);
}
.wa-reveal.wa-visible {
	opacity: 1;
	transform: translateY(0);
}

/* ── Content text animations (JS adds these classes) ── */

/* Paragraphs / lists / blockquotes / figures — fade up */
.wa-text-anim {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity .55s cubic-bezier(.22,.61,.36,1),
	            transform .55s cubic-bezier(.22,.61,.36,1);
}
.wa-text-anim.wa-in-view {
	opacity: 1;
	transform: translateY(0);
}

/* H2 / H3 headings — slide in from left */
.wa-heading-anim {
	opacity: 0;
	transform: translateX(-18px);
	transition: opacity .5s cubic-bezier(.22,.61,.36,1),
	            transform .5s cubic-bezier(.22,.61,.36,1);
}
.wa-heading-anim.wa-in-view {
	opacity: 1;
	transform: translateX(0);
}

/* Inline images — fade up + slight scale */
.wa-img-anim {
	opacity: 0;
	transform: translateY(20px) scale(.98);
	transition: opacity .6s cubic-bezier(.22,.61,.36,1),
	            transform .6s cubic-bezier(.22,.61,.36,1);
}
.wa-img-anim.wa-in-view {
	opacity: 1;
	transform: translateY(0) scale(1);
}

/* Progress bar glow */
#wa-progress-bar {
	box-shadow: 0 0 10px rgba(124,58,237,.45);
}

/* Featured image lift-shadow */
.single-post .wa-featured-img {
	box-shadow: 0 20px 60px rgba(80,40,180,.13);
}

/* Category badge shimmer on hover */
.single-post .wa-cat-badge {
	position: relative;
	overflow: hidden;
}
.single-post .wa-cat-badge::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.5) 50%, transparent 100%);
	transform: translateX(-100%);
	transition: transform .45s ease;
}
.single-post .wa-cat-badge:hover::after {
	transform: translateX(100%);
}

/* Author card — soft purple gradient */
.single-post .wa-author-card {
	background: linear-gradient(135deg, #faf9ff 0%, #f3efff 100%);
	border-color: rgba(124,58,237,.15);
}

/* Related-post card image zoom on hover */
.single-post .wa-related-card {
	overflow: hidden;
}
.single-post .wa-related-thumb {
	transition: transform .5s cubic-bezier(.22,.61,.36,1);
}
.single-post .wa-related-card:hover .wa-related-thumb {
	transform: scale(1.06);
}

/* Share icon subtle pulse */
@keyframes waPulse {
	0%   { transform: scale(1);    }
	50%  { transform: scale(1.18); }
	100% { transform: scale(1.05); }
}
.single-post .wa-share-icon:hover {
	animation: waPulse .25s ease forwards;
}

/* Heading accent underline bar inside article */
.single-post .entry-content h2::after {
	content: '';
	display: block;
	width: 40px;
	height: 3px;
	border-radius: 3px;
	background: linear-gradient(90deg, var(--wa-primary), #a78bfa);
	margin-top: 8px;
}

/* Back-to-top button */
#wa-back-top {
	position: fixed;
	bottom: 36px;
	right: 28px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--wa-primary), #6d28d9);
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 24px rgba(124,58,237,.35);
	opacity: 0;
	transform: translateY(12px);
	transition: opacity .3s ease, transform .3s ease;
	z-index: 9998;
	/* Reset browser/Astra button defaults */
	-webkit-appearance: none;
	appearance: none;
	padding: 0 !important;
	line-height: 0;
	box-sizing: border-box;
}
#wa-back-top svg {
	display: block;
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	fill: none;
	stroke: #ffffff !important;
	stroke-width: 2.5;
	stroke-linecap: round;
	stroke-linejoin: round;
	pointer-events: none;
}
#wa-back-top.visible {
	opacity: 1;
	transform: translateY(0);
}
#wa-back-top:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 32px rgba(124,58,237,.45);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
	.single-post .wa-article-body {
		grid-template-columns: 1fr;
	}

	.single-post .wa-toc-sidebar {
		display: none;
	}

	.single-post .wa-mobile-toc {
		display: block;
	}

	.single-post .wa-related-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.single-post .wa-featured-img {
		aspect-ratio: 1200 / 680;
		border-radius: var(--wa-radius) var(--wa-radius) 0 0;
	}
}

@media (max-width: 560px) {
	.single-post .wa-post-wrap {
		padding: 0 16px;
	}

	.single-post .wa-post-header {
		padding-top: 32px;
	}

	.single-post .wa-related-grid {
		grid-template-columns: 1fr;
	}

	.single-post .wa-author-card {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.single-post .wa-author-links {
		justify-content: center;
	}
}
