/*
Theme Name: Chobirdesh
Theme URI: https://chobirdesh.com
Author: Chobirdesh
Description: Ultra-fast, zero-bloat WordPress magazine theme inspired by ColorMag, engineered for 100/100 Google PageSpeed Insights.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: chobirdesh
Tags: news, magazine, photography, blog, two-columns, three-columns, custom-logo, custom-colors, custom-menu, featured-images
*/

:root {
	--cm-accent: #257bc1;
	--cm-accent-dark: #1d649e;
	--cm-bg: #f3f5f7;
	--cm-surface: #ffffff;
	--cm-surface-alt: #f8fafc;
	--cm-text: #1e242b;
	--cm-text-muted: #5a6572;
	--cm-border: #e3e8ee;
	--cm-nav-bg: #1e242b;
	--cm-nav-text: #ffffff;
	--cm-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
	--cm-font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Bengali", Arial, sans-serif;
	--cm-font-heading: Georgia, "Noto Serif Bengali", system-ui, serif;
	--cm-radius: 6px;
}

[data-theme="dark"] {
	--cm-bg: #0f1419;
	--cm-surface: #182028;
	--cm-surface-alt: #1f2933;
	--cm-text: #eef2f6;
	--cm-text-muted: #9aa7b4;
	--cm-border: #2a3642;
	--cm-nav-bg: #12181f;
	--cm-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background-color: var(--cm-bg);
	color: var(--cm-text);
	font-family: var(--cm-font-sans);
	font-size: 16px;
	line-height: 1.65;
	overflow-x: hidden;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--cm-accent);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 0.6em;
	font-family: var(--cm-font-heading);
	line-height: 1.3;
	color: var(--cm-text);
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.screen-reader-text:focus {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 9999;
	width: auto;
	height: auto;
	clip: auto;
	padding: 10px 14px;
	background: var(--cm-accent);
	color: #fff;
	border-radius: 4px;
}

.cm-container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 16px;
}

.cm-boxed-layout .cm-site {
	max-width: 1240px;
	margin: 16px auto;
	background: var(--cm-bg);
	box-shadow: var(--cm-shadow);
}

.cm-icon {
	display: inline-block;
	vertical-align: middle;
	flex-shrink: 0;
}

/* Top Bar & Ticker */
.cm-top-bar {
	background: var(--cm-surface);
	border-bottom: 1px solid var(--cm-border);
	font-size: 13px;
}

.cm-top-bar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 38px;
}

.cm-top-bar-left {
	display: flex;
	align-items: center;
	gap: 16px;
	min-width: 0;
	flex: 1;
}

.cm-top-date {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--cm-text-muted);
	white-space: nowrap;
}

.cm-breaking-news {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	flex: 1;
}

.cm-ticker-label {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: var(--cm-accent);
	color: #fff;
	padding: 2px 8px;
	border-radius: 3px;
	font-size: 12px;
	white-space: nowrap;
}

.cm-ticker-list {
	list-style: none;
	margin: 0;
	padding: 0;
	position: relative;
	height: 24px;
	overflow: hidden;
	flex: 1;
}

.cm-ticker-list li {
	display: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	line-height: 24px;
}

.cm-ticker-list li.is-active {
	display: block;
}

.cm-ticker-list a {
	color: var(--cm-text);
	font-weight: 500;
}

.cm-social-links {
	display: flex;
	align-items: center;
	gap: 8px;
}

.cm-social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 4px;
	color: var(--cm-text-muted);
	transition: background-color 0.15s, color 0.15s;
}

.cm-social-link:hover {
	background: var(--cm-accent);
	color: #fff;
	text-decoration: none;
}

/* Main Header */
.cm-header-main {
	background: var(--cm-surface);
	padding: 16px 0;
}

.cm-header-main-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
}

.cm-site-branding {
	display: flex;
	align-items: center;
	gap: 14px;
}

.cm-site-title {
	margin: 0;
	font-size: 28px;
	font-weight: 700;
}

.cm-site-title a {
	color: var(--cm-accent);
	text-decoration: none;
}

.cm-site-description {
	margin: 2px 0 0;
	font-size: 13px;
	color: var(--cm-text-muted);
}

.cm-header-ad {
	max-width: 728px;
}

/* Navigation Bar */
.cm-nav-bar {
	background: var(--cm-nav-bg);
	color: var(--cm-nav-text);
	border-top: 3px solid var(--cm-accent);
	position: relative;
	z-index: 40;
}

.cm-has-sticky-nav .cm-nav-bar {
	position: sticky;
	top: 0;
}

.admin-bar.cm-has-sticky-nav .cm-nav-bar {
	top: 32px;
}

.cm-nav-bar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	min-height: 46px;
}

.cm-primary-nav {
	display: flex;
	align-items: center;
	flex: 1;
	min-width: 0;
}

.cm-home-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 46px;
	color: #fff;
	background: var(--cm-accent);
	flex-shrink: 0;
}

.cm-home-btn:hover {
	background: var(--cm-accent-dark);
	color: #fff;
}

.cm-menu {
	display: flex;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
}

.cm-menu li {
	position: relative;
}

.cm-menu a {
	display: block;
	padding: 11px 14px;
	color: var(--cm-nav-text);
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
}

.cm-menu li:hover > a,
.cm-menu li.current-menu-item > a {
	background: var(--cm-accent);
	color: #fff;
	text-decoration: none;
}

.cm-menu .sub-menu,
.cm-menu .children {
	display: none;
	position: absolute;
	left: 0;
	top: 100%;
	min-width: 210px;
	background: var(--cm-nav-bg);
	list-style: none;
	margin: 0;
	padding: 4px 0;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
	z-index: 50;
}

.cm-menu li:hover > .sub-menu,
.cm-menu li:focus-within > .sub-menu,
.cm-menu li:hover > .children,
.cm-menu li.is-open > .sub-menu {
	display: block;
}

.cm-menu .sub-menu a,
.cm-menu .children a {
	padding: 9px 14px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cm-submenu-toggle {
	display: none;
	background: transparent;
	border: 0;
	color: #fff;
	padding: 8px;
	cursor: pointer;
}

.cm-menu-toggle {
	display: none;
	background: transparent;
	border: 0;
	color: #fff;
	padding: 10px 12px;
	cursor: pointer;
	align-items: center;
}

.cm-menu-toggle .cm-icon-close {
	display: none;
}

.cm-menu-toggle[aria-expanded="true"] .cm-icon-bars {
	display: none;
}

.cm-menu-toggle[aria-expanded="true"] .cm-icon-close {
	display: inline-block;
}

.cm-nav-actions {
	display: flex;
	align-items: center;
	gap: 4px;
	position: relative;
}

.cm-nav-action-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	background: transparent;
	border: 0;
	color: #fff;
	cursor: pointer;
	border-radius: 4px;
}

.cm-nav-action-btn:hover {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	text-decoration: none;
}

.cm-dark-toggle .cm-icon-sun {
	display: none;
}

[data-theme="dark"] .cm-dark-toggle .cm-icon-sun {
	display: inline-block;
}

[data-theme="dark"] .cm-dark-toggle .cm-icon-moon {
	display: none;
}

.cm-search-dropdown {
	position: absolute;
	right: 0;
	top: 100%;
	margin-top: 6px;
	background: var(--cm-surface);
	border: 1px solid var(--cm-border);
	padding: 10px;
	border-radius: var(--cm-radius);
	box-shadow: var(--cm-shadow);
	width: 280px;
	z-index: 60;
}

.cm-search-form {
	display: flex;
	gap: 6px;
}

.cm-search-field {
	flex: 1;
	min-width: 0;
	padding: 8px 10px;
	border: 1px solid var(--cm-border);
	border-radius: 4px;
	background: var(--cm-bg);
	color: var(--cm-text);
	font: inherit;
	font-size: 14px;
}

.cm-search-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 12px;
	background: var(--cm-accent);
	color: #fff;
	border: 0;
	border-radius: 4px;
	cursor: pointer;
}

/* Breadcrumb */
.cm-breadcrumb {
	background: var(--cm-surface);
	border-bottom: 1px solid var(--cm-border);
	padding: 8px 0;
	font-size: 13px;
	color: var(--cm-text-muted);
}

.cm-bc-sep {
	margin: 0 8px;
	opacity: 0.6;
}

/* Main Content & Layouts */
.cm-main {
	padding: 24px 0 36px;
}

.cm-content-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 28px;
	align-items: start;
}

.cm-layout-left-sidebar .cm-content-grid {
	grid-template-columns: 320px minmax(0, 1fr);
}

.cm-layout-left-sidebar .cm-sidebar-left {
	order: -1;
}

.cm-layout-both-sidebars .cm-content-grid {
	grid-template-columns: 240px minmax(0, 1fr) 280px;
}

.cm-layout-both-sidebars .cm-sidebar-left {
	order: -1;
}

.cm-layout-no-sidebar-full .cm-content-grid {
	grid-template-columns: 1fr;
}

.cm-layout-no-sidebar-center .cm-content-grid {
	grid-template-columns: minmax(0, 820px);
	justify-content: center;
}

/* Front Page Hero: Slider + 2x2 Highlighted */
.cm-front-hero {
	display: grid;
	grid-template-columns: 1.35fr 1fr;
	gap: 12px;
	margin-bottom: 28px;
}

.cm-slider {
	position: relative;
	overflow: hidden;
	border-radius: var(--cm-radius);
	background: #111827;
	aspect-ratio: 800 / 445;
}

.cm-slider-track,
.cm-slide {
	width: 100%;
	height: 100%;
}

.cm-slide {
	display: none;
	position: relative;
}

.cm-slide.is-active {
	display: block;
}

.cm-slide-media img,
.cm-highlighted-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cm-slide-media,
.cm-highlighted-media {
	display: block;
	width: 100%;
	height: 100%;
}

.cm-slide-overlay,
.cm-highlighted-overlay {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 28px 16px 14px;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.35) 65%, transparent 100%);
	color: #fff;
}

.cm-slide-title {
	margin: 6px 0 4px;
	font-size: 22px;
}

.cm-slide-title a,
.cm-highlighted-title a,
.cm-slide-overlay .cm-entry-meta,
.cm-slide-overlay .cm-entry-meta a,
.cm-highlighted-overlay .cm-entry-meta,
.cm-highlighted-overlay .cm-entry-meta a {
	color: #fff;
}

.cm-slider-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.cm-slider-btn:hover {
	background: var(--cm-accent);
}

.cm-slider-prev { left: 10px; }
.cm-slider-next { right: 10px; }

.cm-slider-dots {
	position: absolute;
	top: 10px;
	right: 12px;
	display: flex;
	gap: 6px;
	z-index: 5;
}

.cm-slider-dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border-radius: 50%;
	border: 0;
	background: rgba(255, 255, 255, 0.45);
	cursor: pointer;
}

.cm-slider-dot.is-active {
	background: var(--cm-accent);
}

.cm-highlighted-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
	height: 100%;
}

.cm-highlighted-card {
	position: relative;
	overflow: hidden;
	border-radius: var(--cm-radius);
	background: #111827;
	aspect-ratio: 392 / 272;
}

.cm-highlighted-title {
	margin: 5px 0 2px;
	font-size: 14px;
}

.cm-thumb-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #1e293b, #334155);
}

/* Colored Category Badges & Section Titles */
.cm-entry-categories {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	margin-bottom: 6px;
}

.cm-cat-badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 3px;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.cm-cat-badge:hover {
	opacity: 0.9;
	text-decoration: none;
	color: #fff;
}

.cm-widget-title,
.cm-section-title,
.cm-archive-title {
	margin: 0 0 16px;
	font-size: 18px;
	border-bottom: 2px solid var(--cm-accent);
	line-height: 1.2;
}

.cm-widget-title span,
.cm-section-title span,
.cm-archive-title span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--cm-accent);
	color: #fff;
	padding: 6px 12px;
	border-radius: 4px 4px 0 0;
}

/* Magazine Style 1 & Style 2 Widgets */
.cm-middle-split {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	margin-bottom: 28px;
}

.cm-style1-wrap {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	margin-bottom: 28px;
}

.cm-style1-lead,
.cm-style2-lead,
.cm-card {
	background: var(--cm-surface);
	border: 1px solid var(--cm-border);
	border-radius: var(--cm-radius);
	overflow: hidden;
	box-shadow: var(--cm-shadow);
}

.cm-style1-lead-thumb img,
.cm-style2-lead-thumb img,
.cm-card-thumb img {
	width: 100%;
	aspect-ratio: 390 / 205;
	object-fit: cover;
}

.cm-style1-lead-body,
.cm-style2-lead-body,
.cm-card-body {
	padding: 14px;
}

.cm-style1-list,
.cm-style2-wrap {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.cm-compact-item {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	background: var(--cm-surface);
	border: 1px solid var(--cm-border);
	padding: 10px;
	border-radius: var(--cm-radius);
}

.cm-compact-thumb {
	width: 104px;
	flex-shrink: 0;
	border-radius: 4px;
	overflow: hidden;
}

.cm-compact-thumb img {
	width: 100%;
	aspect-ratio: 130 / 90;
	object-fit: cover;
}

.cm-compact-title {
	margin: 0 0 4px;
	font-size: 14px;
}

.cm-compact-title a,
.cm-entry-title a,
.cm-related-title a {
	color: var(--cm-text);
}

.cm-compact-title a:hover,
.cm-entry-title a:hover,
.cm-related-title a:hover {
	color: var(--cm-accent);
	text-decoration: none;
}

/* Posts Grid & Meta */
.cm-posts-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.cm-entry-title {
	font-size: 19px;
	margin: 4px 0 8px;
}

.cm-entry-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	font-size: 12px;
	color: var(--cm-text-muted);
	margin-bottom: 8px;
}

.cm-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.cm-meta-item a {
	color: inherit;
}

.cm-entry-summary p {
	margin: 0;
	font-size: 14px;
	color: var(--cm-text-muted);
}

/* Single Post */
.cm-single-article {
	background: var(--cm-surface);
	border: 1px solid var(--cm-border);
	border-radius: var(--cm-radius);
	padding: 22px;
	box-shadow: var(--cm-shadow);
}

.cm-single-media {
	margin-bottom: 18px;
	border-radius: var(--cm-radius);
	overflow: hidden;
}

.cm-single-media img {
	width: 100%;
	aspect-ratio: 800 / 445;
	object-fit: cover;
}

.cm-responsive-embed {
	position: relative;
	aspect-ratio: 16 / 9;
	width: 100%;
}

.cm-responsive-embed iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.cm-single-title {
	font-size: 30px;
	margin-bottom: 10px;
}

.cm-entry-content {
	font-size: 17px;
	line-height: 1.8;
}

.cm-entry-content p {
	margin: 0 0 1.2em;
}

.cm-entry-tags {
	margin-top: 20px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
}

.cm-entry-tags a {
	background: var(--cm-surface-alt);
	border: 1px solid var(--cm-border);
	padding: 3px 9px;
	border-radius: 4px;
	font-size: 13px;
	color: var(--cm-text);
}

.cm-share-bar {
	margin-top: 22px;
	padding-top: 16px;
	border-top: 1px solid var(--cm-border);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.cm-share-label {
	font-weight: 700;
	font-size: 14px;
}

.cm-share-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: 4px;
	border: 1px solid var(--cm-border);
	background: var(--cm-surface-alt);
	color: var(--cm-text);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}

.cm-share-btn:hover {
	background: var(--cm-accent);
	border-color: var(--cm-accent);
	color: #fff;
	text-decoration: none;
}

/* Post Navigation, Author Box, Related Posts */
.cm-post-navigation .nav-links {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	margin: 22px 0;
}

.cm-post-navigation a {
	display: block;
	background: var(--cm-surface);
	border: 1px solid var(--cm-border);
	border-radius: var(--cm-radius);
	padding: 12px 14px;
	color: var(--cm-text);
}

.cm-nav-dir {
	display: block;
	font-size: 12px;
	color: var(--cm-accent);
	font-weight: 700;
}

.cm-author-box {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	background: var(--cm-surface);
	border: 1px solid var(--cm-border);
	border-radius: var(--cm-radius);
	padding: 18px;
	margin: 22px 0;
}

.cm-author-avatar {
	flex-shrink: 0;
}

.cm-author-avatar img {
	border-radius: 50%;
	object-fit: cover;
	aspect-ratio: 1 / 1;
	border: 2px solid var(--cm-border);
}

.cm-author-name {
	margin: 0 0 4px;
}

.cm-author-role {
	margin: 0 0 8px;
	font-size: 13px;
	font-weight: 600;
	color: var(--cm-accent);
}

.cm-author-bio {
	margin: 0 0 10px;
	font-size: 14px;
	color: var(--cm-text-muted);
}

.cm-author-socials {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.cm-author-web {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 10px;
	background: var(--cm-surface-alt);
	border: 1px solid var(--cm-border);
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
	color: var(--cm-text);
}

.cm-author-archive-card {
	margin-top: 0;
}

.cm-related-posts {
	margin: 28px 0;
}

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

.cm-related-card {
	background: var(--cm-surface);
	border: 1px solid var(--cm-border);
	border-radius: var(--cm-radius);
	overflow: hidden;
	padding-bottom: 10px;
}

.cm-related-thumb img {
	width: 100%;
	aspect-ratio: 390 / 205;
	object-fit: cover;
}

.cm-related-title {
	margin: 10px 10px 6px;
	font-size: 15px;
}

.cm-related-card .cm-entry-meta {
	margin: 0 10px;
}

/* Sidebar & Widgets */
.cm-sidebar .widget {
	background: var(--cm-surface);
	border: 1px solid var(--cm-border);
	border-radius: var(--cm-radius);
	padding: 16px;
	margin-bottom: 20px;
	box-shadow: var(--cm-shadow);
}

.cm-sidebar ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.cm-sidebar li {
	padding: 6px 0;
	border-bottom: 1px solid var(--cm-border);
}

.cm-sidebar li:last-child {
	border-bottom: 0;
}

/* Comments & Pagination */
.cm-comments-area {
	background: var(--cm-surface);
	border: 1px solid var(--cm-border);
	border-radius: var(--cm-radius);
	padding: 20px;
	margin-top: 24px;
}

.cm-comment-list {
	list-style: none;
	padding: 0;
	margin: 0 0 20px;
}

.cm-comment-list .comment-body {
	padding: 12px 0;
	border-bottom: 1px solid var(--cm-border);
}

.cm-pagination ul.page-numbers {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	list-style: none;
	padding: 0;
	margin: 24px 0 0;
}

.cm-pagination .page-numbers a,
.cm-pagination .page-numbers span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	background: var(--cm-surface);
	border: 1px solid var(--cm-border);
	border-radius: 4px;
	color: var(--cm-text);
}

.cm-pagination .page-numbers .current {
	background: var(--cm-accent);
	border-color: var(--cm-accent);
	color: #fff;
}

/* Footer */
.cm-above-footer-ad {
	padding: 16px 0;
	text-align: center;
}

.cm-footer {
	background: #161b22;
	color: #cfd8e3;
	margin-top: 24px;
	content-visibility: auto;
}

.cm-footer a {
	color: #e2e8f0;
}

.cm-footer-widgets {
	padding: 36px 0 24px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cm-footer-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
}

.cm-footer-col .cm-widget-title {
	border-bottom-color: rgba(255, 255, 255, 0.2);
}

.cm-footer-bar {
	padding: 16px 0;
	font-size: 13px;
}

.cm-footer-bar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.cm-footer-right {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

.cm-footer-menu {
	display: flex;
	gap: 14px;
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Scroll Top & Lightbox */
.cm-scroll-top {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 70;
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 50%;
	background: var(--cm-accent);
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.cm-scroll-top[hidden] {
	display: none;
}

.cm-lightbox-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.88);
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.cm-lightbox-overlay img {
	max-height: 90vh;
	max-width: 90vw;
	border-radius: 4px;
}

.cm-lightbox-close {
	position: absolute;
	top: 16px;
	right: 20px;
	background: #fff;
	color: #000;
	border: 0;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	font-size: 20px;
	cursor: pointer;
}

/* Responsive Breakpoints */
@media (max-width: 960px) {
	.cm-content-grid,
	.cm-layout-left-sidebar .cm-content-grid,
	.cm-layout-both-sidebars .cm-content-grid {
		grid-template-columns: 1fr;
	}
	.cm-front-hero {
		grid-template-columns: 1fr;
	}
	.cm-footer-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 768px) {
	.cm-menu-toggle {
		display: inline-flex;
	}
	.cm-menu {
		display: none;
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		background: var(--cm-nav-bg);
		flex-direction: column;
		align-items: stretch;
		padding: 6px 0;
		box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
	}
	.cm-menu.is-open {
		display: flex;
	}
	.cm-menu li {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
	}
	.cm-menu li > a {
		flex: 1;
	}
	.cm-submenu-toggle {
		display: inline-flex;
	}
	.cm-menu .sub-menu {
		position: static;
		width: 100%;
		box-shadow: none;
		padding-left: 14px;
	}
	.cm-posts-grid,
	.cm-middle-split,
	.cm-style1-wrap,
	.cm-related-grid,
	.cm-post-navigation .nav-links,
	.cm-footer-grid {
		grid-template-columns: 1fr;
	}
	.cm-top-bar-inner {
		flex-wrap: wrap;
		padding: 6px 16px;
	}
	.cm-single-title {
		font-size: 24px;
	}
}
