/* WebAI Full Width Blog */
.webai-blog-page,
.webai-single-post,
.webai-blog-page *,
.webai-single-post * {
	box-sizing: border-box;
}

.webai-blog-page,
.webai-single-post {
	--webai-blog-accent: #625df5;
	--webai-blog-accent-dark: #4f49e8;
	--webai-blog-text: #111827;
	--webai-blog-muted: #667085;
	--webai-blog-border: #e6e8ee;
	--webai-blog-soft: #f6f7fb;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	color: var(--webai-blog-text);
	background: #fff;
}

.webai-blog-container,
.webai-single-container {
	width: min(1180px, calc(100% - 40px));
	margin-right: auto;
	margin-left: auto;
}

/* Blog archive */
.webai-blog-archive-hero {
	padding: 86px 0 78px;
	background:
		radial-gradient(circle at 15% 15%, rgba(98, 93, 245, .17), transparent 34%),
		linear-gradient(135deg, #f7f7ff 0%, #fff 72%);
	border-bottom: 1px solid var(--webai-blog-border);
}

.webai-blog-archive-hero .webai-blog-container {
	max-width: 980px;
	text-align: center;
}

.webai-blog-eyebrow {
	display: inline-flex;
	margin-bottom: 18px;
	border: 1px solid #dddafe;
	border-radius: 999px;
	background: rgba(255, 255, 255, .82);
	color: var(--webai-blog-accent);
	font-size: 12px;
	font-weight: 900;
	letter-spacing: 1px;
	padding: 9px 13px;
	text-transform: uppercase;
}

.webai-blog-archive-hero h1 {
	margin: 0;
	color: var(--webai-blog-text);
	font-size: clamp(42px, 6vw, 72px);
	font-weight: 800;
	line-height: 1.07;
	letter-spacing: -2px;
}

.webai-blog-archive-hero p {
	max-width: 780px;
	margin: 24px auto 0;
	color: #475467;
	font-size: clamp(18px, 2vw, 22px);
	line-height: 1.7;
}

.webai-blog-main {
	padding: 58px 0 88px;
}

.webai-blog-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 38px;
}

.webai-blog-categories {
	display: flex;
	flex: 1;
	flex-wrap: wrap;
	gap: 9px;
}

.webai-blog-categories a {
	display: inline-flex;
	min-height: 40px;
	align-items: center;
	border: 1px solid #dfe2e8;
	border-radius: 999px;
	background: #fff;
	color: #475467;
	font-size: 13px;
	font-weight: 800;
	padding: 8px 14px;
	text-decoration: none;
	transition: .2s ease;
}

.webai-blog-categories a:hover,
.webai-blog-categories a.is-active {
	border-color: var(--webai-blog-accent);
	background: var(--webai-blog-accent);
	color: #fff;
}

.webai-blog-search {
	display: flex;
	flex: 0 0 340px;
	overflow: hidden;
	border: 1px solid #dfe2e8;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 6px 20px rgba(15, 23, 42, .045);
}

.webai-blog-search input {
	min-width: 0;
	flex: 1;
	border: 0;
	outline: 0;
	background: transparent;
	font: inherit;
	padding: 12px 14px;
}

.webai-blog-search button {
	border: 0;
	background: var(--webai-blog-accent);
	color: #fff;
	cursor: pointer;
	font: inherit;
	font-weight: 800;
	padding: 11px 16px;
}

.webai-blog-results-summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	margin: -15px 0 30px;
	padding: 14px 17px;
	border-radius: 12px;
	background: var(--webai-blog-soft);
}

.webai-blog-results-summary a {
	color: var(--webai-blog-accent);
	font-weight: 800;
}

.webai-featured-post {
	display: grid;
	grid-template-columns: minmax(0, 1.18fr) minmax(350px, .82fr);
	min-height: 470px;
	overflow: hidden;
	margin-bottom: 64px;
	border: 1px solid var(--webai-blog-border);
	border-radius: 26px;
	background: #fff;
	box-shadow: 0 20px 54px rgba(15, 23, 42, .10);
}

.webai-featured-post-image {
	display: block;
	min-height: 470px;
	overflow: hidden;
	background: #eef0f4;
}

.webai-featured-post-image img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 470px;
	object-fit: cover;
	transition: transform .45s ease;
}

.webai-featured-post:hover .webai-featured-post-image img {
	transform: scale(1.035);
}

.webai-featured-post-content {
	display: flex;
	min-width: 0;
	flex-direction: column;
	justify-content: center;
	padding: 48px;
}

.webai-post-category {
	display: inline-flex;
	align-self: flex-start;
	margin-bottom: 13px;
	border-radius: 999px;
	background: #f0efff;
	color: var(--webai-blog-accent);
	font-size: 12px;
	font-weight: 900;
	padding: 8px 11px;
	text-decoration: none;
}

.webai-post-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 9px 18px;
	margin-bottom: 13px;
	color: #7b8494;
	font-size: 13px;
	font-weight: 700;
}

.webai-featured-post h2 {
	margin: 0 0 17px;
	font-size: clamp(29px, 3.6vw, 43px);
	line-height: 1.16;
}

.webai-featured-post h2 a,
.webai-post-card h3 a,
.webai-related-card h3 a {
	color: var(--webai-blog-text);
	text-decoration: none;
}

.webai-featured-post h2 a:hover,
.webai-post-card h3 a:hover,
.webai-related-card h3 a:hover {
	color: var(--webai-blog-accent);
}

.webai-featured-post p {
	margin: 0 0 25px;
	color: var(--webai-blog-muted);
	line-height: 1.75;
}

.webai-blog-primary-link,
.webai-post-read-link {
	display: inline-flex;
	align-self: flex-start;
	color: var(--webai-blog-accent);
	font-weight: 900;
	text-decoration: none;
}

.webai-blog-primary-link:hover,
.webai-post-read-link:hover {
	text-decoration: underline;
}

.webai-blog-section-heading {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	margin: 0 0 28px;
}

.webai-blog-section-heading span {
	display: block;
	margin-bottom: 6px;
	color: var(--webai-blog-accent);
	font-size: 12px;
	font-weight: 900;
	letter-spacing: .9px;
	text-transform: uppercase;
}

.webai-blog-section-heading h2 {
	margin: 0;
	font-size: clamp(29px, 4vw, 43px);
	line-height: 1.15;
}

.webai-post-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
}

.webai-post-card {
	display: flex;
	min-width: 0;
	height: 100%;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--webai-blog-border);
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 12px 34px rgba(15, 23, 42, .065);
	transition: transform .22s ease, box-shadow .22s ease;
}

.webai-post-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 20px 45px rgba(15, 23, 42, .11);
}

.webai-post-card-image {
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: #eef0f4;
}

.webai-post-card-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s ease;
}

.webai-post-card:hover .webai-post-card-image img {
	transform: scale(1.04);
}

.webai-post-image-placeholder {
	display: flex;
	width: 100%;
	height: 100%;
	min-height: 230px;
	align-items: center;
	justify-content: center;
	background:
		linear-gradient(135deg, rgba(98, 93, 245, .13), rgba(98, 93, 245, .03)),
		#f2f3f7;
	color: var(--webai-blog-accent);
	font-weight: 800;
}

.webai-post-card-content {
	display: flex;
	min-width: 0;
	flex: 1;
	flex-direction: column;
	padding: 25px;
}

.webai-post-card h3 {
	margin: 0 0 13px;
	font-size: 23px;
	line-height: 1.28;
	overflow-wrap: break-word;
}

.webai-post-card p {
	margin: 0 0 20px;
	color: var(--webai-blog-muted);
	font-size: 15px;
	line-height: 1.7;
}

.webai-post-card .webai-post-read-link {
	margin-top: auto;
}

.webai-blog-pagination {
	display: flex;
	justify-content: center;
	margin-top: 48px;
}

.webai-blog-pagination ul {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.webai-blog-pagination a,
.webai-blog-pagination span {
	display: inline-flex;
	min-width: 43px;
	height: 43px;
	align-items: center;
	justify-content: center;
	border: 1px solid #dfe2e8;
	border-radius: 10px;
	background: #fff;
	color: #344054;
	font-weight: 800;
	padding: 0 13px;
	text-decoration: none;
}

.webai-blog-pagination a:hover,
.webai-blog-pagination .current {
	border-color: var(--webai-blog-accent);
	background: var(--webai-blog-accent);
	color: #fff;
}

.webai-blog-empty {
	padding: 55px 24px;
	border: 1px dashed #d7dae2;
	border-radius: 18px;
	background: #fafbfc;
	text-align: center;
}

.webai-blog-empty h2 {
	margin: 0 0 10px;
}

.webai-blog-empty p {
	color: var(--webai-blog-muted);
}

.webai-blog-empty a {
	color: var(--webai-blog-accent);
	font-weight: 800;
}

/* Single post */
.webai-single-hero {
	padding: 72px 0 68px;
	background:
		radial-gradient(circle at 14% 12%, rgba(98, 93, 245, .16), transparent 34%),
		linear-gradient(135deg, #f8f8ff 0%, #fff 70%);
	border-bottom: 1px solid var(--webai-blog-border);
}

.webai-single-hero-inner {
	max-width: 1020px;
	text-align: center;
}

.webai-single-back {
	display: inline-flex;
	margin-bottom: 24px;
	color: var(--webai-blog-accent);
	font-size: 14px;
	font-weight: 800;
	text-decoration: none;
}

.webai-single-category {
	display: table;
	margin: 0 auto 19px;
	border-radius: 999px;
	background: #ecebff;
	color: var(--webai-blog-accent);
	font-size: 12px;
	font-weight: 900;
	padding: 9px 13px;
	text-decoration: none;
}

.webai-single-hero h1 {
	max-width: 980px;
	margin: 0 auto;
	color: var(--webai-blog-text);
	font-size: clamp(40px, 6.4vw, 72px);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -2px;
	overflow-wrap: normal;
	word-break: normal;
}

.webai-single-excerpt {
	max-width: 810px;
	margin: 24px auto 0;
	color: #475467;
	font-size: clamp(18px, 2.1vw, 23px);
	line-height: 1.7;
}

.webai-single-meta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 22px 34px;
	margin-top: 34px;
}

.webai-single-author {
	display: flex;
	align-items: center;
	gap: 11px;
	text-align: left;
}

.webai-single-author img {
	border-radius: 50%;
}

.webai-single-author span {
	display: block;
	color: #7b8494;
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
}

.webai-single-author strong {
	display: block;
	font-size: 14px;
}

.webai-single-meta-items {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	color: #667085;
	font-size: 14px;
	font-weight: 700;
}

.webai-single-body {
	padding-top: 52px;
	padding-bottom: 78px;
}

.webai-single-featured-image {
	overflow: hidden;
	margin: 0 0 46px;
	border: 1px solid var(--webai-blog-border);
	border-radius: 25px;
	background: #eef0f4;
	box-shadow: 0 22px 58px rgba(15, 23, 42, .11);
}

.webai-single-featured-image img {
	display: block;
	width: 100%;
	max-height: 680px;
	object-fit: cover;
}

.webai-single-content-layout {
	position: relative;
	display: grid;
	grid-template-columns: 76px minmax(0, 820px);
	justify-content: center;
	gap: 32px;
}

.webai-share-rail {
	position: sticky;
	top: 110px;
	display: flex;
	height: fit-content;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

.webai-share-rail > span {
	margin-bottom: 3px;
	color: #8b93a2;
	font-size: 10px;
	font-weight: 900;
	letter-spacing: .7px;
	text-transform: uppercase;
}

.webai-share-rail a,
.webai-share-rail button {
	display: inline-flex;
	width: 43px;
	height: 43px;
	align-items: center;
	justify-content: center;
	border: 1px solid #dfe2e8;
	border-radius: 50%;
	background: #fff;
	color: #344054;
	cursor: pointer;
	font: inherit;
	font-size: 13px;
	font-weight: 900;
	text-decoration: none;
	transition: .2s ease;
}

.webai-share-rail a:hover,
.webai-share-rail button:hover {
	border-color: var(--webai-blog-accent);
	background: var(--webai-blog-accent);
	color: #fff;
}

.webai-single-entry-content {
	min-width: 0;
	color: #364152;
	font-size: 18px;
	line-height: 1.85;
}

.webai-single-entry-content > :first-child {
	margin-top: 0;
}

.webai-single-entry-content > :last-child {
	margin-bottom: 0;
}

.webai-single-entry-content h2,
.webai-single-entry-content h3,
.webai-single-entry-content h4 {
	color: var(--webai-blog-text);
	line-height: 1.25;
	scroll-margin-top: 120px;
}

.webai-single-entry-content h2 {
	margin-top: 48px;
	margin-bottom: 18px;
	font-size: clamp(28px, 3.5vw, 39px);
}

.webai-single-entry-content h3 {
	margin-top: 37px;
	margin-bottom: 15px;
	font-size: 28px;
}

.webai-single-entry-content h4 {
	margin-top: 30px;
	font-size: 22px;
}

.webai-single-entry-content p,
.webai-single-entry-content ul,
.webai-single-entry-content ol,
.webai-single-entry-content blockquote,
.webai-single-entry-content figure,
.webai-single-entry-content table,
.webai-single-entry-content pre {
	margin-top: 0;
	margin-bottom: 25px;
}

.webai-single-entry-content a {
	color: var(--webai-blog-accent);
	font-weight: 700;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.webai-single-entry-content img {
	max-width: 100%;
	height: auto;
	border-radius: 14px;
}

.webai-single-entry-content blockquote {
	margin-right: 0;
	margin-left: 0;
	padding: 22px 26px;
	border-left: 4px solid var(--webai-blog-accent);
	border-radius: 0 12px 12px 0;
	background: #f6f6ff;
	color: #344054;
	font-size: 20px;
	font-weight: 600;
}

.webai-single-entry-content code {
	border-radius: 5px;
	background: #f0f1f4;
	padding: 2px 6px;
}

.webai-single-entry-content pre {
	overflow-x: auto;
	border-radius: 14px;
	background: #111827;
	color: #f8fafc;
	padding: 22px;
}

.webai-single-entry-content pre code {
	background: transparent;
	color: inherit;
	padding: 0;
}

.webai-single-entry-content table {
	width: 100%;
	border-collapse: collapse;
}

.webai-single-entry-content th,
.webai-single-entry-content td {
	border: 1px solid #dfe2e8;
	padding: 13px 14px;
	text-align: left;
}

.webai-single-entry-content th {
	background: #f6f7fa;
	color: var(--webai-blog-text);
}

.webai-single-footer {
	max-width: 928px;
	margin: 45px auto 0;
}

.webai-single-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
	margin-bottom: 34px;
}

.webai-single-tags a {
	border: 1px solid #dfe2e8;
	border-radius: 999px;
	color: #475467;
	font-size: 13px;
	font-weight: 800;
	padding: 8px 12px;
	text-decoration: none;
}

.webai-single-tags a:hover {
	border-color: var(--webai-blog-accent);
	color: var(--webai-blog-accent);
}

.webai-single-cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 25px;
	padding: 30px 32px;
	border-radius: 20px;
	background: #111827;
	color: #fff;
}

.webai-single-cta span {
	display: block;
	margin-bottom: 5px;
	color: #c7cad2;
	font-size: 13px;
	font-weight: 700;
}

.webai-single-cta h2 {
	margin: 0;
	color: #fff;
	font-size: clamp(24px, 3vw, 34px);
	line-height: 1.2;
}

.webai-single-cta > a {
	display: inline-flex;
	flex-shrink: 0;
	min-height: 48px;
	align-items: center;
	border-radius: 10px;
	background: var(--webai-blog-accent);
	color: #fff;
	font-weight: 900;
	padding: 12px 18px;
	text-decoration: none;
}

.webai-single-cta > a:hover {
	background: var(--webai-blog-accent-dark);
}

.webai-post-navigation {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	margin-top: 28px;
}

.webai-post-navigation-item {
	min-width: 0;
	padding: 18px 20px;
	border: 1px solid var(--webai-blog-border);
	border-radius: 14px;
	background: #fff;
}

.webai-post-navigation-item.is-next {
	text-align: right;
}

.webai-post-navigation-item span {
	display: block;
	margin-bottom: 5px;
	color: #8b93a2;
	font-size: 11px;
	font-weight: 900;
	letter-spacing: .6px;
	text-transform: uppercase;
}

.webai-post-navigation-item a {
	color: var(--webai-blog-text);
	font-weight: 800;
	text-decoration: none;
}

.webai-post-navigation-item a:hover {
	color: var(--webai-blog-accent);
}

.webai-related-posts {
	padding: 68px 0 80px;
	border-top: 1px solid var(--webai-blog-border);
	background: #f7f8fb;
}

.webai-related-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 25px;
}

.webai-related-card {
	overflow: hidden;
	border: 1px solid var(--webai-blog-border);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 10px 30px rgba(15, 23, 42, .055);
}

.webai-related-card-image {
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: #eef0f4;
}

.webai-related-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.webai-related-card > div {
	padding: 21px;
}

.webai-related-meta {
	display: block;
	margin-bottom: 9px;
	color: #7b8494;
	font-size: 12px;
	font-weight: 700;
}

.webai-related-card h3 {
	margin: 0 0 15px;
	font-size: 21px;
	line-height: 1.3;
}

.webai-comments-wrap {
	padding-top: 60px;
	padding-bottom: 70px;
}

body.single-post.webai-single-post-template .entry-header,
body.single-post.webai-single-post-template .post-thumbnail,
body.single-post.webai-single-post-template .entry-footer,
body.single-post.webai-single-post-template .widget-area,
body.single-post.webai-single-post-template aside:not(.webai-share-rail) {
	display: none !important;
}

@media (max-width: 980px) {
	.webai-blog-toolbar {
		align-items: stretch;
		flex-direction: column;
	}

	.webai-blog-search {
		flex-basis: auto;
		width: min(100%, 480px);
	}

	.webai-featured-post {
		grid-template-columns: 1fr;
	}

	.webai-featured-post-image,
	.webai-featured-post-image img {
		min-height: 360px;
	}

	.webai-post-grid,
	.webai-related-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.webai-single-content-layout {
		grid-template-columns: 1fr;
	}

	.webai-share-rail {
		position: static;
		flex-direction: row;
		justify-content: center;
		order: 2;
		margin-top: 20px;
	}

	.webai-share-rail > span {
		margin: 0 3px 0 0;
	}

	.webai-single-entry-content {
		max-width: 820px;
		margin: 0 auto;
	}
}

@media (max-width: 680px) {
	.webai-blog-container,
	.webai-single-container {
		width: min(100% - 30px, 1180px);
	}

	.webai-blog-archive-hero {
		padding: 58px 0 55px;
	}

	.webai-blog-archive-hero h1,
	.webai-single-hero h1 {
		font-size: 39px;
		letter-spacing: -1px;
	}

	.webai-blog-main {
		padding-top: 38px;
	}

	.webai-featured-post {
		border-radius: 18px;
	}

	.webai-featured-post-image,
	.webai-featured-post-image img {
		min-height: 240px;
	}

	.webai-featured-post-content {
		padding: 27px 22px;
	}

	.webai-post-grid,
	.webai-related-grid {
		grid-template-columns: 1fr;
	}

	.webai-blog-results-summary,
	.webai-single-meta,
	.webai-single-cta {
		align-items: flex-start;
		flex-direction: column;
	}

	.webai-single-meta {
		align-items: center;
	}

	.webai-single-meta-items {
		justify-content: center;
	}

	.webai-single-hero {
		padding: 46px 0 48px;
	}

	.webai-single-body {
		padding-top: 32px;
		padding-bottom: 54px;
	}

	.webai-single-featured-image {
		margin-bottom: 32px;
		border-radius: 17px;
	}

	.webai-single-entry-content {
		font-size: 17px;
		line-height: 1.78;
	}

	.webai-single-cta {
		padding: 25px 22px;
	}

	.webai-single-cta > a {
		width: 100%;
		justify-content: center;
	}

	.webai-post-navigation {
		grid-template-columns: 1fr;
	}

	.webai-post-navigation-item.is-next {
		text-align: left;
	}

	.webai-related-posts {
		padding: 52px 0 60px;
	}
}
