@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

/* Disable native Flatsome elements for admins to render clean new layout */
.container-width, .full-width .ubermenu-nav, .container, .blog .row, .search .row, .archive .row {
	max-width: 1400px;
}
.archive-page-header,
.post-sidebar,
.blog-wrapper .large-9.col {
	display: none !important;
}
.blog-wrapper .row-large.row-divided {
	border: 0 !important;
	margin: 0 !important;
	max-width: 100% !important;
	padding: 0 !important;
}
.blog-wrapper .large-9.col.medium-col-first {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	flex: 0 0 100% !important;
}

/* Container Styles */
.new-design-container,
.new-design-container * {
	font-family: 'Montserrat', system-ui, -apple-system, sans-serif !important;
}
.new-design-container {
	color: #1d2939;
	margin: 0 auto;
	padding: 30px 15px;
	background-color: #fff;
}

/* Breadcrumbs styling */
.custom-breadcrumbs {
	font-size: 13px;
	color: #667085;
	margin-bottom: 24px;
	font-weight: 500;
}
.custom-breadcrumbs a {
	color: #667085;
	text-decoration: none;
	transition: color 0.2s;
}
.custom-breadcrumbs a:hover {
	color: #004bca;
}
.custom-breadcrumbs .divider {
	margin: 0 8px;
	color: #667085;
}

/* Page Title & Search Header */
.new-design-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 40px;
	gap: 30px;
}
.new-design-header .header-left {
	flex-grow: 1;
}
.new-design-header .page-title {
	font-size: 36px;
	font-weight: 700;
	color: #08162d;
	margin: 0 0 16px 0;
	line-height: 1.25;
	text-transform: none;
}
.new-design-header .page-subtitle {
	font-size: 15px;
	color: #475467;
	margin: 0;
	max-width: 720px;
	line-height: 1.6;
	font-weight: 500;
}
.new-design-header .header-right {
	flex-shrink: 0;
	width: 300px;
	margin-top: 40px; /* aligns roughly with title */
}

/* Search input styling */
.custom-search-form {
	display: flex;
	width: 100%;
}
.custom-search-form .search-field {
	width: 100%;
	padding: 12px 16px;
	font-size: 14px;
	border: 1px solid #d2d6db;
	border-radius: 8px 0 0 8px;
	outline: none;
	background-color: #fff;
	color: #344054;
	transition: border-color 0.2s;
	height: 46px;
}
.custom-search-form .search-field:focus {
	border-color: #004bca;
}
.custom-search-form .search-submit {
	background-color: #004bca;
	color: #fff;
	border: none;
	padding: 0 18px;
	border-radius: 0 8px 8px 0;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.2s;
	height: 46px;
	margin-right: 0;
}
.custom-search-form .search-submit:hover {
	background-color: #003a9c;
}

/* Grid Layout */
.new-design-layout {
	display: flex;
	gap: 32px;
	align-items: flex-start;
}

/* Left Sidebar widgets */
.new-design-sidebar {
	width: 260px;
	flex-shrink: 0;
}
.new-design-sidebar .widget {
	background: #fff;
	border: 1px solid #f0f2f5;
	border-radius: 12px;
	padding: 15px;
	margin-bottom: 24px;
	box-shadow: 0 2px 8px rgba(16, 24, 40, 0.02);
}
.new-design-sidebar .widget-title {
	font-size: 16px;
	font-weight: 700;
	color: #08162d;
	margin: 0 0 16px 0;
	letter-spacing: -0.2px;
}

/* Categories Widget */
.new-design-sidebar .widget-categories ul {
	list-style: none;
	padding: 0;
	margin: 0;
}
.new-design-sidebar .widget-categories li {
	margin-bottom: 6px;
}
.widget-categories li:last-child {
	margin-bottom: 0;
}
.new-design-sidebar .widget-categories a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 12px;
	font-size: 14px;
	font-weight: 500;
	color: #344054;
	text-decoration: none;
	border-radius: 6px;
	transition: all 0.2s;
}
.blog .widget-categories li, .search .widget-categories li, .archive .widget-categories li {
	margin-bottom: 6px;
	border-top: none;
}
.blog .widget-categories ul a, .search .widget-categories ul a, .archive .widget-categories ul a {
	display: flex !important;
	justify-content: space-between;
	align-items: center;
	padding: 5px 12px;
	font-size: 14px;
	font-weight: 500;
	color: #344054;
	text-decoration: none;
	border-radius: 6px;
	transition: all 0.2s;
}
.blog .widget-categories .count, .search .widget-categories .count, .archive .widget-categories .count {
	font-size: 12px;
	color: #004bca;
	background-color: #e8f0fe;
	padding: 2px 8px;
	border-radius: 12px;
	transition: all 0.2s;
	font-weight: 600;
	line-height: 2em;
}
.widget-categories a:hover {
	background-color: #f8f9fa;
	color: #004bca;
}
.new-design-sidebar .widget-categories li.active a {
	background-color: #e8f0fe;
	color: #004bca;
	font-weight: 600;
}
.widget-categories .count {
	font-size: 12px;
	color: #004bca;
	background-color: #f2f4f7;
	padding: 2px 8px;
	border-radius: 12px;
	transition: all 0.2s;
	font-weight: 600;
}

/* Newsletter Widget */
.widget-newsletter p {
	font-size: 13px;
	color: #475467;
	line-height: 1.5;
}
.widget-newsletter .newsletter-form {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 14px;
}
.widget-newsletter .newsletter-form input {
	width: 100%;
	padding: 10px 12px;
	font-size: 14px;
	border: 1px solid #d2d6db;
	border-radius: 6px;
	outline: none;
	font-weight: 500;
	text-transform: none;
	transition: border-color 0.2s;
}
.widget-newsletter .newsletter-form input:focus {
	border-color: #004bca;
}
.widget-newsletter .newsletter-form button {
	background-color: #004bca;
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: 11px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s;
}
.widget-newsletter .newsletter-form button:hover {
	background-color: #003a9c;
}
.wpcf7-spinner {
	display: none !important;
}
.widget-newsletter .disclaimer {
	font-size: 11px;
	color: #667085;
	line-height: 1.4;
	margin: 0;
}
.widget-newsletter .disclaimer a {
	color: #004bca;
	text-decoration: none;
}
.widget-newsletter .disclaimer a:hover {
	text-decoration: underline;
}

/* Posts column styling */
.new-design-main {
	flex-grow: 1;
}
.posts-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-bottom: 40px;
}
.post-card {
	background: #fff;
	border: 1px solid #f0f2f5;
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: 0 2px 8px rgba(16, 24, 40, 0.01);
	transition: transform 0.25s, box-shadow 0.25s;
}
.post-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 24px rgba(16, 24, 40, 0.06);
}
.card-image-link {
	display: block;
	width: 100%;
	position: relative;
	aspect-ratio: 1.6;
	overflow: hidden;
}
.card-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s;
}
.post-card:hover .card-image {
	transform: scale(1.03);
}
.placeholder-image {
	width: 100%;
	height: 100%;
	background-color: #f2f4f7;
}

.card-content {
	padding: 20px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}
.card-categories {
	margin-bottom: 12px;
}
.category-badge {
	display: inline-block;
	background-color: #e8f0fe;
	color: #004bca;
	font-size: 11px;
	font-weight: 600;
	padding: 3px 10px;
	border-radius: 20px;
	text-decoration: none;
	transition: background-color 0.2s;
}
.category-badge:hover {
	background-color: #d0e1fd;
}
.card-title {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
	color: #08162d;
	margin: 0 0 10px 0;
}
.card-title a {
	color: #08162d;
	text-decoration: none;
}
.card-title a:hover {
	color: #004bca;
}
.card-excerpt {
	font-size: 13px;
	color: #475467;
	line-height: 1.55;
	margin-bottom: 20px;
	font-weight: 500;
}

/* Author + views on cards */
.card-author {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: auto 0 14px;
}
.card-author-photo {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	object-fit: cover;
	flex: 0 0 auto;
	background: #e8eef7;
}
.card-author-photo--empty {
	display: inline-block;
	background: linear-gradient(135deg, #e8eef7, #d7e6ff);
}
.card-author-copy { min-width: 0; }
.card-author-name {
	font-size: 13px;
	font-weight: 700;
	line-height: 1.25;
	color: #08162d;
}
.card-author-role {
	font-size: 11px;
	line-height: 1.3;
	color: #667085;
	margin-top: 2px;
}
.card-meta {
	margin-top: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	border-top: 1px solid #f2f4f7;
	padding-top: 14px;
	font-size: 12px;
	color: #667085;
}
.meta-item {
	display: flex;
	align-items: center;
	gap: 6px;
}
.meta-item svg {
	color: #98a2b3;
}

/* Pagination container and items */
.new-design-pagination {
	display: flex;
	justify-content: center;
	margin-top: 40px;
}
.custom-pagination-nav {
	display: flex;
	gap: 6px;
	align-items: center;
}
.custom-pagination-nav .page-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 8px;
	border: 1px solid #d2d6db;
	background: #fff;
	color: #344054;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.2s;
}
.custom-pagination-nav .page-number:hover {
	background: #f8f9fa;
	border-color: #cfd4dc;
}
.custom-pagination-nav .page-number.active {
	background: #004bca;
	color: #fff;
	border-color: #004bca;
}
.custom-pagination-nav .dots {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	color: #667085;
	font-size: 14px;
}

/* Responsive styling */
@media(max-width: 991px) {
	.new-design-layout {
		flex-direction: column;
	}
	.new-design-sidebar {
		width: 100%;
	}
	.posts-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media(max-width: 767px) {
	.new-design-header {
		flex-direction: column;
		align-items: stretch;
	}
	.new-design-header .header-right {
		width: 100%;
		margin-top: 15px;
	}
	.posts-grid {
		grid-template-columns: 1fr;
	}
}
