/**
 * UI Polish — cards, single post, sidebar, archives
 */

/* ===== SURFACES & LAYOUT ===== */
.mr-main {
	background: var(--mr-bg-light);
}

.mr-surface-card {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 16px rgba(26, 26, 46, 0.06);
	border: 1px solid rgba(0, 0, 0, 0.04);
}

.mr-archive-section {
	background: var(--mr-bg-light);
	padding-top: 40px;
	padding-bottom: 60px;
}

.mr-archive-section .mr-post-grid {
	margin-top: 8px;
}

/* ===== POST CARDS — PREMIUM ===== */
.mr-post-card {
	border-radius: 12px;
	border: 1px solid rgba(0, 0, 0, 0.05);
	box-shadow: 0 4px 24px rgba(26, 26, 46, 0.07);
	transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease;
}

.mr-post-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 16px 40px rgba(71, 59, 240, 0.12);
}

.mr-post-card-image {
	position: relative;
	aspect-ratio: 16 / 10;
}

.mr-card-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.35) 100%);
	opacity: 0;
	transition: opacity 0.35s ease;
	pointer-events: none;
}

.mr-post-card:hover .mr-card-overlay {
	opacity: 1;
}

.mr-post-card-body {
	padding: 22px 22px 20px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.mr-post-card-body .mr-cat-label { order: 1; }
.mr-post-card-body .mr-post-card-title { order: 2; }
.mr-post-card-body .mr-post-card-excerpt { order: 3; }
.mr-post-card-body .mr-card-footer { order: 4; }

.mr-post-card-title {
	font-size: var(--mr-fs-card-title);
	font-weight: 700;
	line-height: 1.45;
	margin: 10px 0 8px;
	transition: color 0.2s ease;
}

.mr-post-card:hover .mr-post-card-title {
	color: var(--mr-primary);
}

.mr-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 4px;
	padding-top: 14px;
	border-top: 1px solid var(--mr-border);
}

/* Horizontal cards */
.mr-post-horizontal {
	border-radius: 12px;
	border: 1px solid rgba(0, 0, 0, 0.05);
	box-shadow: 0 4px 20px rgba(26, 26, 46, 0.06);
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.mr-post-horizontal:hover {
	box-shadow: 0 12px 32px rgba(71, 59, 240, 0.1);
	transform: translateY(-2px);
}

.mr-post-horizontal-body {
	padding: 24px 28px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.mr-post-horizontal-image {
	min-height: 180px;
}

/* ===== SINGLE POST HERO ===== */
.mr-single-hero {
	width: 100%;
	background: linear-gradient(135deg, #eef0ff 0%, #faf7f3 50%, #f5f3ff 100%);
	padding: 48px 0 40px;
	border-bottom: 1px solid rgba(71, 59, 240, 0.08);
}

.mr-single-hero-cat {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: var(--mr-primary);
	margin-bottom: 14px;
}

.mr-single-hero-cat:hover {
	color: var(--mr-primary-dark);
}

.mr-single-hero-title {
	font-size: clamp(26px, 3.5vw, 38px);
	font-weight: 800;
	line-height: 1.25;
	color: var(--mr-text);
	margin: 0 0 16px;
	max-width: 900px;
}

.mr-single-hero .mr-breadcrumbs {
	margin-bottom: 20px;
	font-size: var(--mr-fs-meta);
}

.mr-single-hero-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 20px;
}

.mr-author-chip {
	display: flex;
	align-items: center;
	gap: 12px;
}

.mr-author-avatar {
	border-radius: 50%;
	width: 44px !important;
	height: 44px !important;
	border: 2px solid #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mr-author-chip span {
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-size: var(--mr-fs-meta);
	color: var(--mr-text-light);
}

.mr-author-chip strong {
	color: var(--mr-text);
	font-size: var(--mr-fs-body);
}

.mr-reading-time {
	font-size: var(--mr-fs-meta);
	font-weight: 600;
	color: var(--mr-text-light);
	background: rgba(255, 255, 255, 0.7);
	padding: 8px 16px;
	border-radius: 50px;
	border: 1px solid var(--mr-border);
}

/* ===== SINGLE POST CONTENT ===== */
.mr-single-section {
	padding: 40px 0 60px;
	background: var(--mr-bg-light);
}

.mr-single-layout {
	grid-template-columns: 1fr 340px;
	gap: 32px;
}

.mr-single-post.mr-surface-card {
	padding: 0;
	overflow: hidden;
}

.mr-single-featured {
	margin: 0;
	border-radius: 0;
	overflow: hidden;
	max-height: 460px;
}

.mr-single-featured img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	max-height: 460px;
}

body.mr-ckp-redirect-page {
	margin: 0;
	padding: 0;
	background: #fff;
	min-height: 100vh;
}

.mr-ckp-redirect-form {
	display: none;
}

.mr-single-featured-link {
	display: block;
}

.mr-shop-now-wrap {
	margin-top: 28px;
}

.mr-shop-now-btn {
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-weight: 700;
	padding: 14px 32px;
}

.mr-single-content a.mr-shop-now-btn,
.mr-single-content a.mr-shop-now-btn:hover {
	color: #fff;
	text-decoration: none;
}

.mr-disclosure {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	margin: 28px 32px 0;
	padding: 18px 20px;
	background: linear-gradient(135deg, #fffbeb 0%, #fff8e1 100%);
	border-left: 4px solid #f59e0b;
	border-radius: 0 10px 10px 0;
	font-size: 14px;
	line-height: 1.6;
}

.mr-disclosure-icon {
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	background: #f59e0b;
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	font-weight: 700;
}

.mr-disclosure p {
	margin: 0;
}

/* Table of Contents */
.mr-toc {
	margin: 24px 32px 0;
	padding: 0;
	background: #f8f9fc;
	border: 1px solid var(--mr-border);
	border-radius: 10px;
	overflow: hidden;
}

.mr-toc-toggle {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	background: #fff;
	border: none;
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	color: var(--mr-text);
	cursor: pointer;
}

.mr-toc-toggle svg {
	transition: transform 0.3s ease;
}

.mr-toc-toggle[aria-expanded="true"] svg {
	transform: rotate(180deg);
}

.mr-toc-list {
	margin: 0;
	padding: 8px 20px 16px 36px;
	list-style: decimal;
	display: none;
}

.mr-toc.is-open .mr-toc-list {
	display: block;
}

.mr-toc-list li {
	margin-bottom: 8px;
}

.mr-toc-list a {
	font-size: 14px;
	color: var(--mr-text);
	font-weight: 500;
	line-height: 1.5;
}

.mr-toc-list a:hover {
	color: var(--mr-primary);
}

.mr-single-content {
	padding: 28px 32px 32px;
	font-size: 16px;
	line-height: 1.85;
	color: #333;
}

.mr-single-content h2 {
    font-size: 26px;
    font-weight: 800;
    color: var(--mr-text);
    margin: 25px 0 10px 0;
    scroll-margin-top: 100px;
}

.mr-single-content h3 {
	font-size: 20px;
	font-weight: 700;
	margin: 28px 0 12px;
	color: var(--mr-text);
	scroll-margin-top: 100px;
}

.mr-single-content h4 {
	font-size: 17px;
	font-weight: 700;
	margin: 22px 0 10px;
}

.mr-single-content p {
    margin: 2px 0 15px 0;
}

.mr-single-content ul,
.mr-single-content ol {
	margin: 0 0 20px;
	padding-left: 24px;
}

.mr-single-content li {
	margin-bottom: 8px;
}

.mr-single-content a {
	color: var(--mr-primary);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.mr-single-content blockquote {
	margin: 24px 0;
	padding: 20px 24px;
	background: #f8f9fc;
	border-left: 4px solid var(--mr-primary);
	border-radius: 0 8px 8px 0;
	font-style: italic;
	color: var(--mr-text-light);
}

.mr-single-content img {
	border-radius: 10px;
	margin: 20px 0;
}

.mr-page-links {
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid var(--mr-border);
}

.mr-page-links-label {
	font-weight: 700;
	margin-right: 8px;
}

/* Tags */
.mr-single-tags {
	padding: 0 32px 28px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.mr-tags-label {
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--mr-text-light);
}

.mr-tags-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.mr-tag-pill {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 6px 14px;
	background: #f0f0ff;
	color: var(--mr-primary);
	font-size: 12px;
	font-weight: 600;
	border-radius: 50px;
	transition: background 0.2s ease, color 0.2s ease;
}

.mr-tag-pill:hover {
	background: var(--mr-primary);
	color: #fff;
}

.mr-tag-pill span {
	opacity: 0.7;
	font-size: 11px;
}

/* Related posts */
.mr-related-posts {
	padding: 32px;
	margin: 0;
	border-top: 1px solid var(--mr-border);
	background: #fafbfd;
}

.mr-related-title {
	font-size: 22px;
	font-weight: 800;
	margin: 0 0 24px;
	color: var(--mr-text);
}

.mr-related-posts .mr-post-grid {
	gap: 20px;
}

@media (max-width: 1024px) {
	.mr-related-posts .mr-post-grid-4 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.mr-related-posts .mr-post-grid-4 {
		grid-template-columns: 1fr;
	}
}

/* ===== SIDEBAR ===== */
.mr-sidebar {
	position: sticky;
	top: 40px;
	align-self: start;
	height: 800px;
	overflow: auto;
}

.mr-sidebar-inner {
	position: static;
}

.mr-sidebar-widget {
	background: #fff;
	border-radius: 12px;
	padding: 24px;
	margin-bottom: 24px;
	box-shadow: 0 2px 16px rgba(26, 26, 46, 0.06);
	border: 1px solid rgba(0, 0, 0, 0.04);
}

.mr-sidebar .widget-title {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 15px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--mr-text);
	margin: 0 0 18px;
	padding-bottom: 14px;
	border-bottom: 2px solid var(--mr-primary);
}

.mr-sidebar .widget-title svg {
	color: var(--mr-primary);
	flex-shrink: 0;
}

.mr-sidebar-search {
	display: flex;
	border: 1px solid var(--mr-border);
	border-radius: 50px;
	overflow: hidden;
	background: #f8f9fc;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mr-sidebar-search:focus-within {
	border-color: var(--mr-primary);
	box-shadow: 0 0 0 3px rgba(71, 59, 240, 0.12);
}

.mr-sidebar-search input {
	flex: 1;
	border: none;
	background: transparent;
	padding: 12px 18px;
	font-family: inherit;
	font-size: 14px;
	outline: none;
}

.mr-sidebar-search button {
	border: none;
	background: var(--mr-primary);
	color: #fff;
	padding: 0 18px;
	cursor: pointer;
	display: flex;
	align-items: center;
	transition: background 0.2s ease;
}

.mr-sidebar-search button:hover {
	background: var(--mr-primary-dark);
}

.mr-sidebar-cats {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mr-sidebar-cats li {
	border-bottom: 1px solid #bdbdc7;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mr-sidebar-cats li:last-child {
	border-bottom: none;
}

.mr-sidebar-cats a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 11px 0;
	font-size: 14px;
	font-weight: 500;
	color: var(--mr-text);
	transition: color 0.2s ease, padding-left 0.2s ease;
}

.mr-sidebar-cats a:hover {
	color: var(--mr-primary);
	padding-left: 6px;
}

.mr-sidebar-cats .count,
.mr-sidebar-cats li a span {
	font-size: 11px;
	font-weight: 700;
	background: #f0f0ff;
	color: var(--mr-primary);
	padding: 2px 8px;
	border-radius: 50px;
	min-width: 24px;
	text-align: center;
}

.mr-sidebar-recent {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mr-sidebar-recent li {
	margin-bottom: 14px;
}

.mr-sidebar-recent li:last-child {
	margin-bottom: 0;
}

.mr-sidebar-recent-link {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	color: inherit;
	padding: 8px;
	margin: -8px;
	border-radius: 8px;
	transition: background 0.2s ease;
}

.mr-sidebar-recent-link:hover {
	background: #f8f9fc;
	color: inherit;
}

.mr-sidebar-recent-thumb {
	flex-shrink: 0;
	width: 72px;
	height: 54px;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.mr-sidebar-recent-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mr-sidebar-recent-title {
	display: block;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--mr-text);
	margin-bottom: 4px;
}

.mr-sidebar-recent-info small {
	font-size: 12px;
	color: var(--mr-text-light);
}

.mr-tag-cloud {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

/* ===== COMMENTS ===== */
.mr-comments {
	margin: 0;
	padding: 32px;
	border-top: 1px solid var(--mr-border);
	background: #fff;
}

.mr-comments-title {
	font-size: 20px;
	font-weight: 800;
	margin: 0 0 24px;
}

.mr-comment-list {
	list-style: none;
	margin: 0 0 28px;
	padding: 0;
}

.mr-comment-list .comment {
	padding: 20px;
	margin-bottom: 16px;
	background: #f8f9fc;
	border-radius: 10px;
	border: 1px solid var(--mr-border);
}

.mr-comment-list .children {
	list-style: none;
	margin: 16px 0 0 24px;
	padding: 0;
}

.comment-form {
	display: grid;
	gap: 16px;
}

.comment-form label {
	font-size: 13px;
	font-weight: 600;
	display: block;
	margin-bottom: 6px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid var(--mr-border);
	border-radius: 8px;
	font-family: inherit;
	font-size: 14px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
	outline: none;
	border-color: var(--mr-primary);
	box-shadow: 0 0 0 3px rgba(71, 59, 240, 0.1);
}

.comment-form .form-submit input {
	background: var(--mr-primary);
	color: #fff;
	border: none;
	padding: 14px 32px;
	border-radius: 50px;
	font-weight: 700;
	font-size: var(--mr-fs-btn);
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}

.comment-form .form-submit input:hover {
	background: var(--mr-primary-dark);
	transform: translateY(-1px);
}

/* ===== PAGE HERO ENHANCED ===== */
.mr-page-hero {
	background: linear-gradient(135deg, #eef0ff 0%, #faf7f3 100%);
	padding: 48px 0 36px;
	border-bottom: 1px solid rgba(71, 59, 240, 0.06);
}

.mr-page-section {
	background: var(--mr-bg-light);
	padding: 40px 0 60px;
}

.mr-page-article.mr-surface-card {
	padding: 40px 48px;
	max-width: 900px;
	margin: 0 auto;
}

.mr-single-layout .mr-page-article.mr-surface-card {
	max-width: none;
	margin: 0;
}

.mr-single-layout .mr-page-article .entry-content {
	padding: 0;
}

.mr-page-article .entry-content {
	font-size: 16px;
	line-height: 1.85;
}

/* ===== PAGINATION ===== */
.mr-pagination {
	margin-top: 48px;
}

.mr-pagination .page-numbers {
	min-width: 42px;
	text-align: center;
	font-weight: 600;
}

/* ===== HOMEPAGE SECTIONS ===== */
.mr-top-articles {
	position: relative;
	background: #d3e2ff;
	padding: 56px 0 68px;
	overflow: hidden;
}

.mr-top-articles::after {
	content: '★';
	position: absolute;
	top: 6px;
	right: 110px;
	font-size: 92px;
	color: rgba(71, 59, 240, 0.12);
	line-height: 1;
	pointer-events: none;
}

.mr-top-articles .mr-section-title {
	margin-bottom: 40px;
}

.mr-top-articles .mr-post-grid {
	gap: 26px;
}

.mr-top-articles .mr-post-card {
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.04);
	box-shadow: 0 4px 24px rgba(26, 26, 46, 0.06);
	overflow: hidden;
}

.mr-top-articles .mr-post-card-stretched-link {
	display: inline;
}

.mr-top-articles .mr-post-card-image {
	border-radius: 20px 20px 0 0;
	overflow: hidden;
	aspect-ratio: 16 / 10;
}

.mr-top-articles .mr-card-overlay {
	display: none;
}

.mr-top-articles .mr-post-card-body {
	background: #fff;
	border-radius: 0 0 16px 16px;
	box-shadow: none;
	border: none;
	margin: 0;
	padding: 22px 22px 20px;
}

.mr-top-articles .mr-post-card-title {
	margin: 10px 0 10px;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}

.mr-top-articles .mr-post-card-excerpt {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 0 0 12px;
}

.mr-top-articles .mr-card-footer {
	border-top: none;
	padding-top: 10px;
	margin-top: 0;
}

.mr-top-articles .mr-post-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 34px rgba(71, 59, 240, 0.12);
}

.mr-top-articles .mr-post-meta {
	gap: 12px;
}

@media (max-width: 1024px) {
	.mr-top-articles {
		padding: 44px 0 56px;
	}

	.mr-top-articles::after {
		right: 40px;
		font-size: 72px;
	}
}

@media (max-width: 768px) {
	.mr-top-articles {
		padding: 36px 0 46px;
	}

	.mr-top-articles::after {
		display: none;
	}

	.mr-top-articles .mr-post-card-body {
		margin: -30px 10px 0;
		padding: 18px 16px 16px;
	}
}

.mr-all-categories {
	background: #f4f2ff;
	padding: 64px 0 80px;
}

.mr-all-categories .mr-section-header {
	justify-content: center;
	position: relative;
	margin-bottom: 26px;
}

.mr-all-categories .mr-section-header .mr-section-title {
	text-align: center !important;
	margin: 0;
}

.mr-all-categories .mr-section-header .mr-cat-view-all {
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 16px;
	font-weight: 800;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: var(--mr-primary);
}

.mr-cat-view-all-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--mr-primary);
	color: #fff;
}

.mr-all-categories .mr-category-tabs {
    gap: 0px;
    margin-bottom: 34px;
    flex-wrap: nowrap;
    overflow: auto;
    width: 100%;
    white-space: nowrap;
    justify-content: space-between;
}

.mr-all-categories .mr-cat-tab {
	border: none;
	background: transparent;
	padding: 10px;
	font-size: 14px;
	font-weight: 600;
	color: #3a3a52;
}

.mr-all-categories .mr-cat-tab.is-active {
	background: rgba(71, 59, 240, 0.12);
	color: var(--mr-primary);
	border: none;
}

.mr-all-categories .mr-cat-tab:hover {
	background: rgba(71, 59, 240, 0.10);
}

.mr-all-categories .mr-post-grid {
	gap: 26px;
}

.mr-all-categories .mr-post-card {
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 6px 22px rgba(26, 26, 46, 0.06);
	border: 1px solid rgba(0, 0, 0, 0.04);
	overflow: hidden;
	padding: 18px;
}

.mr-all-categories .mr-post-card-stretched-link {
	display: inline;
}

.mr-all-categories .mr-post-card-image {
	border-radius: 18px;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	margin: 0;
}

.mr-all-categories .mr-card-overlay {
	display: none;
}

.mr-all-categories .mr-post-card-body {
	background: transparent;
	border-radius: 0;
	margin-top: 0;
	padding: 14px 0 0;
	box-shadow: none;
	border: none;
}

.mr-all-categories .mr-post-card-title {
	margin: 8px 0 10px;
	font-size: 16px;
	line-height: 1.35;
}

.mr-all-categories .mr-cat-label {
	display: inline-block !important;
	margin-bottom: 4px;
	color: var(--mr-primary) !important;
	font-weight: 700;
	text-transform: uppercase;
	font-size: 12px;
	letter-spacing: 0.4px;
}

.mr-all-categories .mr-post-card-excerpt {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 0 0 12px;
	font-size: 16px;
	line-height: 1.55;
}

.mr-all-categories .mr-card-footer {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	padding-top: 8px;
	margin-top: 0;
	border-top: none;
}

.mr-all-categories .mr-post-meta {
	display: flex;
	gap: 14px;
	font-size: 15px;
}

.mr-all-categories .mr-post-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(71, 59, 240, 0.12);
}

/* Only What's New container width */
.mr-wn-container {
	max-width: 1200px !important;
}

/* ===== WHAT'S NEW — dual highlight cards ===== */
.mr-whats-new {
	padding: 46px 0 64px;
	background: #f3f4f6;
}

.mr-wn-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 20px;
}

.mr-wn-title {
	margin: 0;
	font-size: var(--mr-fs-section-h1);
	font-weight: 800;
	line-height: 1.15;
	text-transform: uppercase;
}

.mr-wn-view-all {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 16px;
	font-weight: 800;
	color: var(--mr-primary);
	text-transform: uppercase;
}

.mr-wn-view-all-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--mr-primary);
	color: #fff;
}

.mr-wn-cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 36px;
}

.mr-whats-new .mr-post-card {
	background: transparent;
	border: none;
	box-shadow: none;
	border-radius: 0;
	overflow: visible;
}

.mr-whats-new .mr-post-card-stretched-link {
	z-index: 1;
}

.mr-whats-new .mr-post-card-image {
	border-radius: 20px;
	overflow: hidden;
	aspect-ratio: 16 / 10;
}

.mr-whats-new .mr-post-card-image img {
	transition: transform 0.4s ease;
}

.mr-whats-new .mr-post-card:hover .mr-post-card-image img {
	transform: scale(1.03);
}

.mr-whats-new .mr-card-overlay {
	display: none;
}

.mr-whats-new .mr-post-card-body {
	position: relative;
	background: #fff;
	margin: -44px 16px 0;
	padding: 22px 24px 20px;
	border-radius: 16px;
	box-shadow: 0 10px 28px rgba(26, 26, 46, 0.08);
	border: 1px solid rgba(0, 0, 0, 0.05);
	z-index: 0;
}

.mr-whats-new .mr-post-card-title {
	margin: 10px 0 10px;
	line-height: 1.35;
}

.mr-whats-new .mr-post-card-excerpt {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin-bottom: 12px;
}

.mr-whats-new .mr-card-footer {
	padding-top: 10px;
	border-top: none;
}

@media (max-width: 1024px) {
	.mr-wn-cards {
		grid-template-columns: 1fr;
		gap: 28px;
	}
}

@media (max-width: 768px) {
	.mr-whats-new {
		padding: 38px 0 46px;
	}

	
	.mr-wn-title {
		font-size: 24px;
	}

	.mr-whats-new .mr-post-card-body {
		margin: -30px 10px 0;
		padding: 18px 16px 16px;
	}
}

.mr-section-title {
	position: relative;
}

/* ===== 404 ===== */
.mr-404-section .mr-404-content {
	background: #fff;
	border-radius: 12px;
	padding: 60px 40px;
	box-shadow: var(--mr-shadow);
	max-width: 600px;
	margin: 0 auto;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
	.mr-single-layout {
		grid-template-columns: 1fr;
	}

	.mr-sidebar {
		position: static;
		top: auto;
	}

	.mr-sidebar-inner {
		position: static;
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}

	.mr-sidebar-widget {
		margin-bottom: 0;
	}
}

@media (max-width: 768px) {
	.mr-single-hero {
		padding: 32px 0 28px;
	}

	.mr-disclosure,
	.mr-toc,
	.mr-single-content,
	.mr-single-tags,
	.mr-related-posts,
	.mr-comments {
		margin-left: 0;
		margin-right: 0;
		padding-left: 20px;
		padding-right: 20px;
	}

	.mr-disclosure {
		margin-top: 20px;
		flex-direction: column;
	}

	.mr-sidebar-inner {
		grid-template-columns: 1fr;
	}

	.mr-card-footer {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* ===== HERO REDESIGN: full background image ===== */
@media (min-width: 769px) {
	.mr-hero-track {
		height: clamp(620px, 82vh, 860px);
	}

	.mr-hero {
		background: transparent;
	}

	.mr-hero-slide-bg {
		display: none;
	}

	.mr-hero-slide {
		overflow: hidden;
	}

	.mr-hero-slide-inner {
		display: block;
		position: relative;
		height: clamp(620px, 82vh, 860px);
		overflow: visible;
	}

	.mr-hero-image {
		position: absolute;
		top: 0;
		bottom: 0;
		left: 50%;
		transform: translateX(-50%);
		width: 100vw;
		z-index: 0;
		height: 100%;
		border-radius: 0;
	}

	.mr-hero-image img {
		width: 100%;
		height: 100%;
		object-fit: cover;
		transform: none;
	}

	.mr-hero-image::after {
		display: block;
		background: linear-gradient(90deg, rgba(244, 248, 252, 0.86) 0%, rgba(244, 248, 252, 0.68) 36%, rgba(244, 248, 252, 0.28) 62%, rgba(244, 248, 252, 0.06) 100%);
		opacity: 1;
	}

	.mr-hero-content {
		position: relative;
		z-index: 2;
		height: 100%;
		width: min(55%, 800px);
		padding: 54px 0 0 0;
		justify-content: center;
		align-items: flex-start;
	}

	.mr-hero-category {
		font-size: 18px;
		margin-bottom: 20px;
	}

	.mr-hero-title {
		font-size: clamp(44px, 4.6vw, 66px);
		line-height: 1.12;
		margin-bottom: 30px;
	}

	.mr-hero-btn {
		font-size: 18px;
		padding: 14px 30px;
	}

	.mr-hero-controls {
		position: absolute;
		left: 0;
		right: 0;
		bottom: 12px;
		z-index: 8;
		padding: 0;
	}

	.mr-hero-dots {
		gap: 10px;
	}

	.mr-hero-dot {
		background: rgba(255, 255, 255, 0.7);
	}

	.mr-hero-dot.is-active {
		background: rgba(255, 255, 255, 0.95);
	}
}

@media (min-width: 769px) and (max-width: 1200px) {
	.mr-hero-track,
	.mr-hero-slide-inner {
		height: clamp(560px, 74vh, 720px);
	}

	.mr-hero-title {
		font-size: clamp(38px, 4vw, 52px);
	}
}

/* Newsletter + Mailchimp (MC4WP) */
.mr-newsletter-form-wrap {
	max-width: 600px;
	margin: 0 auto;
}

.mr-newsletter .mc4wp-form,
.mr-newsletter .mc4wp-form-fields,
.mr-newsletter .mr-newsletter-form {
	display: flex;
	max-width: 600px;
	margin: 0 auto;
	gap: 12px;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
}

.mr-newsletter .mc4wp-form h2,
.mr-newsletter .main-form > h2 {
	display: none;
}

.mr-newsletter .mc4wp-form input[type="email"],
.mr-newsletter .mc4wp-form input.mail-box,
.mr-newsletter .mr-newsletter-form input[type="email"] {
	flex: 1;
	min-width: 200px;
	padding: 15px 20px;
	border: 1px solid #dfdfdf;
	border-radius: 999px;
	background: #fff;
	font-family: inherit;
	font-size: var(--mr-fs-body);
	outline: none;
}

.mr-newsletter .mc4wp-form input[type="submit"],
.mr-newsletter .mc4wp-form input.sub-button,
.mr-newsletter .mr-newsletter-form button {
	padding: 15px 28px;
	background: var(--mr-primary);
	color: #fff;
	border: none;
	font-family: inherit;
	font-weight: 700;
	font-size: 14px;
	border-radius: 999px;
	cursor: pointer;
	white-space: nowrap;
}

.mr-newsletter .mc4wp-alert {
	width: 100%;
	margin: 12px 0 0;
	font-size: var(--mr-fs-body);
}

.mr-newsletter .mc4wp-success {
	color: #166534;
}

.mr-newsletter .mc4wp-error {
	color: #b91c1c;
}

.mr-newsletter-admin-hint {
	margin-top: 12px;
	font-size: 14px;
	color: #64748b;
}

@media (max-width: 640px) {
	.mr-newsletter .mc4wp-form,
	.mr-newsletter .mc4wp-form-fields,
	.mr-newsletter .mr-newsletter-form {
		flex-direction: column;
	}

	.mr-newsletter .mc4wp-form input[type="email"],
	.mr-newsletter .mc4wp-form input[type="submit"],
	.mr-newsletter .mr-newsletter-form input,
	.mr-newsletter .mr-newsletter-form button {
		width: 100%;
	}
}
