/* =========================================================================
   Newsletter feed (legacy class prefix: cp-blog-*)
   ========================================================================= */

.cp-blog-feed {
	max-width: 960px;
	margin: 0 auto;
}

.cp-blog-feed-header {
	margin-bottom: 32px;
}

.cp-blog-feed-title-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
}

.cp-blog-feed-title {
	font-size: 28px;
	font-weight: 700;
	color: #1e293b;
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
}

.cp-blog-feed-title .dashicons {
	color: #2563eb;
	font-size: 28px;
	width: 28px;
	height: 28px;
}

.cp-blog-feed-count {
	background: #f1f5f9;
	color: #64748b;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 500;
}

.cp-blog-feed-toolbar {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

.cp-blog-search-form {
	display: flex;
	align-items: center;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 0 12px;
	flex: 1;
	max-width: 320px;
}

.cp-blog-search-form .dashicons {
	color: #94a3b8;
	font-size: 18px;
	margin-right: 8px;
}

.cp-blog-search-form input {
	border: none;
	outline: none;
	padding: 10px 0;
	font-size: 14px;
	width: 100%;
	background: transparent;
}

.cp-blog-filter {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.cp-blog-filter-btn {
	display: inline-block;
	padding: 6px 14px;
	border: none;
	border-radius: 20px;
	font: inherit;
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
	color: #64748b;
	background: #f1f5f9;
	cursor: pointer;
	transition: all 0.15s;
}

.cp-blog-filter-btn:hover {
	background: #e2e8f0;
	color: #334155;
}

.cp-blog-filter-btn.is-active {
	background: #2563eb;
	color: #fff;
}

/* Card grid */
.cp-blog-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
}

.cp-blog-card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: all 0.2s;
	display: flex;
	flex-direction: column;
}

.cp-blog-card:hover {
	border-color: #cbd5e1;
	box-shadow: 0 8px 24px rgba(0,0,0,0.06);
	transform: translateY(-2px);
}

.cp-blog-card-image {
	height: 200px;
	overflow: hidden;
}

.cp-blog-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s;
}

.cp-blog-card:hover .cp-blog-card-image img {
	transform: scale(1.03);
}

.cp-blog-card-body {
	padding: 20px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.cp-blog-card-cats {
	display: flex;
	gap: 6px;
	margin-bottom: 8px;
}

.cp-blog-card-cat {
	display: inline-block;
	padding: 2px 10px;
	background: #eff6ff;
	color: #2563eb;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.cp-blog-card-title {
	font-size: 18px;
	font-weight: 700;
	color: #1e293b;
	margin: 0 0 8px;
	line-height: 1.3;
}

.cp-blog-card-excerpt {
	font-size: 14px;
	color: #64748b;
	line-height: 1.6;
	margin: 0 0 16px;
	flex: 1;
}

.cp-blog-card-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	padding-top: 12px;
	border-top: 1px solid #f1f5f9;
}

.cp-blog-card-meta img {
	width: 28px;
	height: 28px;
	border-radius: 50%;
}

.cp-blog-card-author {
	font-size: 13px;
	font-weight: 500;
	color: #334155;
}

.cp-blog-card-date {
	font-size: 12px;
	color: #94a3b8;
	margin-left: auto;
}

/* Pagination */
.cp-blog-pagination {
	text-align: center;
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid #e2e8f0;
}

.cp-blog-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 8px;
	margin: 0 2px;
	border-radius: 8px;
	text-decoration: none;
	font-size: 14px;
	color: #64748b;
	transition: all 0.15s;
}

.cp-blog-pagination .page-numbers:hover {
	background: #f1f5f9;
	color: #334155;
}

.cp-blog-pagination .page-numbers.current {
	background: #2563eb;
	color: #fff;
}

/* Empty state */
.cp-blog-empty {
	text-align: center;
	padding: 80px 40px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
}

.cp-blog-empty .dashicons {
	font-size: 48px;
	width: 48px;
	height: 48px;
	color: #cbd5e1;
	margin-bottom: 16px;
}

.cp-blog-empty h3 {
	font-size: 18px;
	color: #475569;
	margin: 0 0 8px;
}

.cp-blog-empty p {
	color: #94a3b8;
	margin: 0;
}

/* =========================================================================
   Single Post
   ========================================================================= */

.cp-blog-single {
	max-width: 800px;
	margin: 0 auto;
}

.cp-blog-single-back a {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	text-decoration: none;
	color: #64748b;
	font-size: 14px;
	padding: 6px 12px;
	border-radius: 6px;
	transition: all 0.15s;
	margin-bottom: 24px;
}

.cp-blog-single-back a:hover {
	background: #f1f5f9;
	color: #334155;
}

.cp-blog-single-hero {
	border-radius: 12px;
	overflow: hidden;
	margin-bottom: 32px;
}

.cp-blog-single-hero img {
	width: 100%;
	max-height: 400px;
	object-fit: cover;
	display: block;
}

.cp-blog-single-article {
	background: #fff;
	border-radius: 12px;
	padding: 40px;
	border: 1px solid #e2e8f0;
}

.cp-blog-single-cats {
	display: flex;
	gap: 6px;
	margin-bottom: 16px;
}

.cp-blog-single-cat {
	display: inline-block;
	padding: 3px 12px;
	background: #eff6ff;
	color: #2563eb;
	border-radius: 16px;
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.cp-blog-single-cat:hover {
	background: #dbeafe;
}

.cp-blog-single-title {
	font-size: 32px;
	font-weight: 800;
	color: #0f172a;
	line-height: 1.2;
	margin: 0 0 20px;
}

.cp-blog-single-meta {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 32px;
	padding-bottom: 24px;
	border-bottom: 1px solid #f1f5f9;
}

.cp-blog-single-meta img {
	width: 40px;
	height: 40px;
	border-radius: 50%;
}

.cp-blog-single-meta-text {
	display: flex;
	flex-direction: column;
}

.cp-blog-single-author {
	font-size: 14px;
	font-weight: 600;
	color: #334155;
}

.cp-blog-single-date {
	font-size: 13px;
	color: #94a3b8;
}

/* Article content typography */
.cp-blog-single-content {
	font-size: 16px;
	line-height: 1.8;
	color: #334155;
}

.cp-blog-single-content h2 {
	font-size: 24px;
	font-weight: 700;
	color: #1e293b;
	margin: 32px 0 16px;
}

.cp-blog-single-content h3 {
	font-size: 20px;
	font-weight: 600;
	color: #1e293b;
	margin: 28px 0 12px;
}

.cp-blog-single-content p {
	margin: 0 0 16px;
}

.cp-blog-single-content ul,
.cp-blog-single-content ol {
	margin: 0 0 16px;
	padding-left: 24px;
}

.cp-blog-single-content li {
	margin-bottom: 6px;
}

.cp-blog-single-content blockquote {
	border-left: 4px solid #2563eb;
	padding: 16px 20px;
	margin: 24px 0;
	background: #f8fafc;
	border-radius: 0 8px 8px 0;
	font-style: italic;
	color: #475569;
}

.cp-blog-single-content pre {
	background: #1e293b;
	color: #e2e8f0;
	padding: 20px;
	border-radius: 8px;
	overflow-x: auto;
	font-size: 14px;
	margin: 24px 0;
}

.cp-blog-single-content code {
	background: #f1f5f9;
	padding: 2px 6px;
	border-radius: 4px;
	font-size: 14px;
}

.cp-blog-single-content pre code {
	background: transparent;
	padding: 0;
}

.cp-blog-single-content img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	margin: 16px 0;
}

.cp-blog-single-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 24px 0;
}

.cp-blog-single-content th,
.cp-blog-single-content td {
	padding: 10px 16px;
	border: 1px solid #e2e8f0;
	text-align: left;
}

.cp-blog-single-content th {
	background: #f8fafc;
	font-weight: 600;
}

.cp-blog-single-content a {
	color: #2563eb;
	text-decoration: underline;
}

.cp-blog-single-content hr {
	border: none;
	border-top: 1px solid #e2e8f0;
	margin: 32px 0;
}

/* Prev/Next navigation */
.cp-blog-single-nav {
	display: flex;
	justify-content: space-between;
	gap: 24px;
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid #e2e8f0;
}

.cp-blog-nav-prev,
.cp-blog-nav-next {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	padding: 16px 20px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	flex: 1;
	transition: all 0.15s;
}

.cp-blog-nav-prev:hover,
.cp-blog-nav-next:hover {
	border-color: #2563eb;
	box-shadow: 0 2px 8px rgba(37,99,235,0.08);
}

.cp-blog-nav-next {
	text-align: right;
	justify-content: flex-end;
}

.cp-blog-nav-prev small,
.cp-blog-nav-next small {
	display: block;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #94a3b8;
	font-weight: 600;
	margin-bottom: 2px;
}

.cp-blog-nav-prev span:not(.dashicons),
.cp-blog-nav-next span:not(.dashicons) {
	font-size: 14px;
	font-weight: 500;
	color: #334155;
}

.cp-blog-nav-prev .dashicons,
.cp-blog-nav-next .dashicons {
	color: #94a3b8;
	font-size: 20px;
}

/* Not found */
.cp-blog-not-found {
	text-align: center;
	padding: 80px 40px;
}

.cp-blog-not-found h2 {
	color: #64748b;
}

/* =========================================================================
   Latest Widget
   ========================================================================= */

.cp-blog-latest-widget .cp-widget-title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 16px;
	font-weight: 600;
	color: #1e293b;
	margin: 0 0 16px;
}

.cp-blog-latest-widget .cp-widget-title .dashicons {
	color: #2563eb;
}

.cp-blog-latest-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.cp-blog-latest-item {
	padding: 10px 0;
	border-bottom: 1px solid #f1f5f9;
}

.cp-blog-latest-item:last-child {
	border-bottom: none;
}

.cp-blog-latest-item a {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	text-decoration: none;
	gap: 12px;
}

.cp-blog-latest-title {
	font-size: 14px;
	font-weight: 500;
	color: #334155;
}

.cp-blog-latest-item a:hover .cp-blog-latest-title {
	color: #2563eb;
}

.cp-blog-latest-date {
	font-size: 12px;
	color: #94a3b8;
	white-space: nowrap;
}

.cp-blog-latest-excerpt {
	font-size: 13px;
	color: #94a3b8;
	margin: 4px 0 0;
}

.cp-widget-view-all {
	display: inline-block;
	margin-top: 12px;
	font-size: 13px;
	color: #2563eb;
	text-decoration: none;
	font-weight: 500;
}

.cp-widget-view-all:hover {
	text-decoration: underline;
}

.cp-widget-empty {
	color: #94a3b8;
	font-size: 13px;
	text-align: center;
	padding: 20px 0;
}

/* =========================================================================
   Featured Widget
   ========================================================================= */

.cp-blog-featured-card {
	display: block;
	text-decoration: none;
	color: inherit;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	overflow: hidden;
	transition: all 0.2s;
}

.cp-blog-featured-card:hover {
	border-color: #2563eb;
	box-shadow: 0 4px 16px rgba(37,99,235,0.08);
}

.cp-blog-featured-image {
	height: 160px;
	overflow: hidden;
}

.cp-blog-featured-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cp-blog-featured-body {
	padding: 16px;
}

.cp-blog-featured-label {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #2563eb;
	margin-bottom: 6px;
}

.cp-blog-featured-title {
	font-size: 16px;
	font-weight: 700;
	color: #1e293b;
	margin: 0 0 8px;
	line-height: 1.3;
}

.cp-blog-featured-excerpt {
	font-size: 13px;
	color: #64748b;
	margin: 0 0 12px;
	line-height: 1.5;
}

.cp-blog-featured-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	color: #475569;
}

.cp-blog-featured-meta img {
	width: 24px;
	height: 24px;
	border-radius: 50%;
}

.cp-blog-featured-date {
	color: #94a3b8;
	margin-left: auto;
}

/* =========================================================================
   React shell — single post (BlogEntryView / newsletter)
   ========================================================================= */

.cp-blog-entry-view {
	padding: 24px;
	max-width: 880px;
	margin: 0 auto;
}

.cp-blog-entry-back {
	margin: 0 0 16px;
}

.cp-blog-entry-hero img {
	width: 100%;
	height: auto;
	border-radius: 12px;
	display: block;
}

.cp-blog-entry-cats {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}

.cp-blog-entry-title {
	font-size: clamp(1.5rem, 3vw, 2rem);
	margin: 0 0 16px;
	color: #0f172a;
}

.cp-blog-entry-meta {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 24px;
}

.cp-blog-entry-meta img {
	border-radius: 50%;
}

.cp-blog-entry-author {
	font-weight: 600;
	color: #1e293b;
}

.cp-blog-entry-date {
	font-size: 14px;
	color: #64748b;
}

.cp-blog-entry-content {
	font-size: 1.05rem;
	line-height: 1.65;
	color: #334155;
}

.cp-blog-entry-content .cp-mce-react-embed-shell {
	margin: 1.5rem 0;
}

.cp-blog-entry-nav {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid #e2e8f0;
}

.cp-blog-entry-nav-link {
	display: flex;
	flex-direction: column;
	gap: 4px;
	text-decoration: none;
	color: #2563eb;
	max-width: 45%;
}

.cp-blog-entry-nav-link:hover {
	text-decoration: underline;
}

.cp-blog-entry-nav-label {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #64748b;
}

.cp-blog-entry-nav-title {
	font-weight: 600;
	color: #0f172a;
}

.cp-blog-entry-nav-link--next {
	text-align: right;
	align-items: flex-end;
}

/* =========================================================================
   Responsive
   ========================================================================= */

@media (max-width: 768px) {
	.cp-blog-grid {
		grid-template-columns: 1fr;
	}

	.cp-blog-single-article {
		padding: 24px;
	}

	.cp-blog-single-title {
		font-size: 24px;
	}

	.cp-blog-single-nav {
		flex-direction: column;
	}

	.cp-blog-feed-toolbar {
		flex-direction: column;
		align-items: stretch;
	}

	.cp-blog-search-form {
		max-width: none;
	}
}
