/*
Theme Name: Digimetrics Blog
Theme URI: https://www.digimetrics.ai/blog/
Description: Hello Elementor child theme for www.digimetrics.ai/blog. Header and footer are copied from the www.digimetrics.ai landing page (chrome.css is extracted from its live stylesheets); this file styles the blog itself.
Author: Digimetrics
Template: hello-elementor
Version: 1.0.4
Text Domain: digimetrics-blog
*/

:root {
	--dmb-ink: #10213f;
	--dmb-copy: #38516f;
	--dmb-muted: #536987;
	--dmb-line: #dbe4f1;
	--dmb-tint: #f4f7fc;
	--dmb-blue: #004aad;
	--dmb-blue-dark: #121f78;
	--dmb-cyan: #29abe2;
	--dmb-navy: #071832;
	--dmb-radius: 14px;
	--dmb-font: "Plus Jakarta Sans", Roboto, ui-sans-serif, system-ui, sans-serif;
}

body {
	background: #fff;
	color: var(--dmb-ink);
	font-family: var(--dmb-font);
	-webkit-font-smoothing: antialiased;
}

/* Hello Elementor's reset paints every link #c36; the copied header and
   footer expect links to inherit their colour. :where keeps this at element
   specificity so the copied rules still win. */
:where(.neon-header, .neon-footer) a {
	color: inherit;
}

/* Hello caps .site-main at 1140px with side padding; the blog layouts
   run full width and manage their own containers. */
html body .site-main.dmb-single,
html body .site-main.dmb-archive {
	margin: 0;
	max-width: none;
	padding: 0;
	width: 100%;
}

.dmb-container {
	width: min(1180px, calc(100% - 40px));
	margin: 0 auto;
}

.dmb-narrow {
	width: min(760px, calc(100% - 40px));
	margin: 0 auto;
}

/* ---------- Blog index / archives ---------- */

.dmb-hero {
	background: linear-gradient(180deg, var(--dmb-tint) 0%, #fff 100%);
	border-bottom: 1px solid var(--dmb-line);
	padding: 72px 0 48px;
	text-align: center;
}

.dmb-eyebrow {
	display: inline-block;
	color: var(--dmb-blue);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	margin-bottom: 14px;
}

.dmb-hero h1 {
	color: var(--dmb-ink);
	font-size: clamp(34px, 5vw, 54px);
	font-weight: 800;
	letter-spacing: -.02em;
	line-height: 1.08;
	margin: 0 auto 16px;
	max-width: 820px;
}

.dmb-hero p {
	color: var(--dmb-copy);
	font-size: 18px;
	line-height: 1.6;
	margin: 0 auto;
	max-width: 640px;
}

.dmb-cats {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	margin-top: 28px;
}

.dmb-cats a {
	border: 1px solid var(--dmb-line);
	border-radius: 999px;
	color: var(--dmb-copy);
	font-size: 14px;
	font-weight: 600;
	padding: 8px 16px;
	text-decoration: none;
	transition: border-color .2s, color .2s, background .2s;
}

.dmb-cats a:hover,
.dmb-cats a.is-current {
	background: var(--dmb-blue);
	border-color: var(--dmb-blue);
	color: #fff;
}

.dmb-grid {
	display: grid;
	gap: 28px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	padding: 56px 0 24px;
}

.dmb-card {
	background: #fff;
	border: 1px solid var(--dmb-line);
	border-radius: var(--dmb-radius);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transition: transform .2s, box-shadow .2s;
}

.dmb-card:hover {
	box-shadow: 0 18px 44px rgba(16, 33, 63, .1);
	transform: translateY(-3px);
}

.dmb-card-image {
	aspect-ratio: 16 / 9;
	background: var(--dmb-tint);
	display: block;
	overflow: hidden;
}

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

.dmb-card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 10px;
	padding: 22px 22px 24px;
}

.dmb-card-cat {
	color: var(--dmb-blue);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .06em;
	text-decoration: none;
	text-transform: uppercase;
}

.dmb-card h2 {
	font-size: 20px;
	font-weight: 800;
	line-height: 1.3;
	margin: 0;
}

.dmb-card h2 a {
	color: var(--dmb-ink);
	text-decoration: none;
}

.dmb-card h2 a:hover {
	color: var(--dmb-blue);
}

.dmb-card p {
	color: var(--dmb-copy);
	font-size: 15px;
	line-height: 1.6;
	margin: 0;
}

.dmb-card-meta {
	color: var(--dmb-muted);
	font-size: 13px;
	margin-top: auto;
	padding-top: 6px;
}

.dmb-empty {
	color: var(--dmb-copy);
	padding: 72px 0;
	text-align: center;
}

.dmb-pagination {
	display: flex;
	gap: 8px;
	justify-content: center;
	padding: 16px 0 80px;
}

.dmb-pagination .page-numbers {
	border: 1px solid var(--dmb-line);
	border-radius: 8px;
	color: var(--dmb-ink);
	font-weight: 700;
	min-width: 42px;
	padding: 9px 14px;
	text-align: center;
	text-decoration: none;
}

.dmb-pagination .page-numbers.current,
.dmb-pagination .page-numbers:hover {
	background: var(--dmb-blue);
	border-color: var(--dmb-blue);
	color: #fff;
}

/* ---------- Single post ---------- */

.dmb-post-hero {
	background: var(--dmb-navy);
	color: #fff;
	padding: 72px 0 64px;
	text-align: center;
}

.dmb-post-hero .dmb-eyebrow {
	color: var(--dmb-cyan);
	text-decoration: none;
}

.dmb-post-hero h1 {
	color: #fff;
	font-size: clamp(32px, 4.6vw, 50px);
	font-weight: 800;
	letter-spacing: -.02em;
	line-height: 1.12;
	margin: 0 auto 20px;
	max-width: 860px;
}

.dmb-post-meta {
	align-items: center;
	color: rgba(255, 255, 255, .78);
	display: flex;
	flex-wrap: wrap;
	font-size: 14px;
	gap: 8px 14px;
	justify-content: center;
}

.dmb-post-meta a {
	color: #fff;
	font-weight: 700;
	text-decoration: none;
}

.dmb-post-meta img {
	border-radius: 50%;
	height: 28px;
	width: 28px;
}

.dmb-dot {
	opacity: .5;
}

.dmb-featured {
	margin: -36px auto 0;
	position: relative;
	width: min(1000px, calc(100% - 40px));
}

.dmb-featured img {
	border-radius: var(--dmb-radius);
	box-shadow: 0 24px 60px rgba(7, 24, 50, .18);
	display: block;
	height: auto;
	width: 100%;
}

.dmb-content {
	color: var(--dmb-copy);
	font-size: 18px;
	line-height: 1.75;
	padding: 48px 0 24px;
}

.dmb-content > * {
	margin-bottom: 1.25em;
	margin-top: 0;
}

.dmb-content h2,
.dmb-content h3,
.dmb-content h4 {
	color: var(--dmb-ink);
	font-weight: 800;
	letter-spacing: -.01em;
	line-height: 1.25;
	scroll-margin-top: 96px;
}

.dmb-content h2 {
	font-size: 30px;
	margin-top: 1.8em;
}

.dmb-content h3 {
	font-size: 23px;
	margin-top: 1.5em;
}

.dmb-content h4 {
	font-size: 19px;
	margin-top: 1.3em;
}

.dmb-content a {
	color: var(--dmb-blue);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.dmb-content a:hover {
	color: var(--dmb-blue-dark);
}

.dmb-content strong,
.dmb-content b {
	color: var(--dmb-ink);
}

.dmb-content ul,
.dmb-content ol {
	padding-left: 1.3em;
}

.dmb-content li {
	margin-bottom: .45em;
}

.dmb-content img {
	border-radius: 10px;
	height: auto;
	max-width: 100%;
}

.dmb-content figure {
	margin-left: 0;
	margin-right: 0;
}

.dmb-content figcaption {
	color: var(--dmb-muted);
	font-size: 14px;
	margin-top: 8px;
	text-align: center;
}

.dmb-content blockquote {
	background: var(--dmb-tint);
	border-left: 4px solid var(--dmb-blue);
	border-radius: 0 10px 10px 0;
	color: var(--dmb-ink);
	font-size: 19px;
	margin-left: 0;
	margin-right: 0;
	padding: 18px 24px;
}

.dmb-content code {
	background: var(--dmb-tint);
	border-radius: 5px;
	font-size: .88em;
	padding: 2px 6px;
}

.dmb-content pre {
	background: var(--dmb-navy);
	border-radius: 10px;
	color: #e8eefc;
	overflow-x: auto;
	padding: 18px 20px;
}

.dmb-content pre code {
	background: none;
	padding: 0;
}

/* Tables: dark header row with white text; on phones they scroll sideways.
   Hello's reset draws grey borders on every cell and stripes odd rows, so
   both are reset here. */
.dmb-content table {
	border: 1px solid var(--dmb-line);
	border-collapse: separate;
	border-radius: 10px;
	border-spacing: 0;
	font-size: 15px;
	line-height: 1.5;
	overflow: hidden;
	width: 100%;
}

.dmb-content th,
.dmb-content thead td {
	background: var(--dmb-navy);
	color: #fff;
	font-weight: 700;
	text-align: left;
}

.dmb-content table th,
.dmb-content table td {
	border: 0;
	border-bottom: 1px solid var(--dmb-line);
	padding: 12px 14px;
	vertical-align: top;
}

.dmb-content table tbody > tr:nth-child(odd) > td {
	background: #fff;
}

.dmb-content table tbody > tr:nth-child(even) > td {
	background: var(--dmb-tint);
}

.dmb-content tr:last-child td {
	border-bottom: 0;
}

/* LuckyWP Table of Contents, restyled to the brand. */
.dmb-content .lwptoc {
	margin: 0 0 2em;
}

.dmb-content .lwptoc .lwptoc_i {
	background: var(--dmb-tint) !important;
	border: 1px solid var(--dmb-line);
	border-radius: 12px;
	color: var(--dmb-ink) !important;
	padding: 20px 24px !important;
	width: 100%;
}

.dmb-content .lwptoc_title {
	color: var(--dmb-ink) !important;
	font-size: 16px;
	font-weight: 800;
}

.dmb-content .lwptoc_items {
	font-size: 15px;
	line-height: 1.6;
}

.dmb-content .lwptoc_items a {
	color: var(--dmb-copy) !important;
	text-decoration: none;
}

.dmb-content .lwptoc_items a:hover {
	color: var(--dmb-blue) !important;
}

.dmb-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding-bottom: 32px;
}

.dmb-tags a {
	background: var(--dmb-tint);
	border-radius: 999px;
	color: var(--dmb-copy);
	font-size: 13px;
	font-weight: 600;
	padding: 6px 12px;
	text-decoration: none;
}

/* Author box */
.dmb-author {
	align-items: flex-start;
	background: var(--dmb-tint);
	border: 1px solid var(--dmb-line);
	border-radius: var(--dmb-radius);
	display: flex;
	gap: 22px;
	margin: 16px 0 56px;
	padding: 28px;
}

.dmb-author img {
	border-radius: 50%;
	flex: 0 0 84px;
	height: 84px;
	width: 84px;
}

.dmb-author-label {
	color: var(--dmb-blue);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.dmb-author h2 {
	color: var(--dmb-ink);
	font-size: 22px;
	font-weight: 800;
	margin: 4px 0 8px;
}

.dmb-author p {
	color: var(--dmb-copy);
	font-size: 15px;
	line-height: 1.65;
	margin: 0 0 12px;
}

.dmb-author-links {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.dmb-author-links a {
	color: var(--dmb-blue);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

/* Call to action */
.dmb-cta {
	background: linear-gradient(135deg, var(--dmb-blue-dark) 0%, var(--dmb-blue) 60%, var(--dmb-cyan) 140%);
	border-radius: 18px;
	color: #fff;
	margin: 0 0 64px;
	padding: 40px;
	text-align: center;
}

.dmb-cta h2 {
	color: #fff;
	font-size: 28px;
	font-weight: 800;
	margin: 0 0 10px;
}

.dmb-cta p {
	color: rgba(255, 255, 255, .86);
	font-size: 16px;
	margin: 0 auto 22px;
	max-width: 520px;
}

.dmb-cta a {
	background: #fff;
	border-radius: 8px;
	color: var(--dmb-blue-dark);
	display: inline-block;
	font-size: 15px;
	font-weight: 800;
	padding: 13px 24px;
	text-decoration: none;
	transition: transform .2s;
}

.dmb-cta a:hover {
	transform: translateY(-2px);
}

/* Related posts */
.dmb-related {
	background: var(--dmb-tint);
	border-top: 1px solid var(--dmb-line);
	padding: 64px 0 24px;
}

.dmb-related h2 {
	color: var(--dmb-ink);
	font-size: 28px;
	font-weight: 800;
	margin: 0;
	text-align: center;
}

.dmb-related .dmb-grid {
	padding-top: 32px;
}

/* Header "Blog" link marks the current section. */
.neon-nav a[aria-current="page"] {
	color: var(--dmb-blue);
}

@media (max-width: 960px) {
	.dmb-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.dmb-grid {
		grid-template-columns: 1fr;
	}

	.dmb-hero,
	.dmb-post-hero {
		padding: 52px 0 40px;
	}

	.dmb-content {
		font-size: 17px;
	}

	.dmb-content h2 {
		font-size: 25px;
	}

	.dmb-content table {
		display: block;
		overflow-x: auto;
	}

	.dmb-content table th,
	.dmb-content table td {
		min-width: 140px;
	}

	.dmb-author {
		flex-direction: column;
		padding: 22px;
	}

	.dmb-cta {
		padding: 30px 22px;
	}
}
