/* =========================================
   Blog post (single.php, template-parts/single/*)
   White article card, author card, previous /
   next, related articles. Shared blog sidebar
   on the right (css/blog-trending.css).
========================================= */

.om-post {
	padding: 30px 0 60px;
	background: #fcfcfc;
}

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

/* Breadcrumb */
.om-post-crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 20px;
	font-size: 13px;
	color: #bbb;
}

.om-post-crumbs a {
	color: #888;
	text-decoration: none;
}

.om-post-crumbs a:hover,
.om-post-crumbs a:focus {
	color: #ed1b45;
}

/* Article card */
.om-post-card {
	padding: 34px 40px 30px;
	background: #fff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.om-post-cats {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
}

.om-post-cats a {
	font-family: "Raleway", sans-serif;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #ed1b45;
	text-decoration: none;
}

.om-post-cats a:hover,
.om-post-cats a:focus {
	text-decoration: underline;
}

.om-post .om-post-title {
	margin: 12px 0 18px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 40px;
	font-style: normal;
	font-weight: 400;
	line-height: 1.25;
	letter-spacing: 0;
	text-align: left;
	text-transform: none;
	color: #222;
}

.om-post-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px 20px;
	margin-bottom: 26px;
	padding: 16px 0;
	border-top: 1px solid #eee;
	border-bottom: 1px solid #eee;
}

/* Byline */
.om-post-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	font-size: 14px;
	line-height: 1.4;
	color: #777;
}

.om-post-avatars {
	display: flex;
}

.om-post-avatars img {
	display: block;
	width: 44px;
	height: 44px;
	object-fit: cover;
	border: 2px solid #fff;
	border-radius: 50%;
	background: #f2f2f2;
}

.om-post-avatars img + img {
	margin-left: -12px;
}

.om-post-by a,
.om-post-by strong {
	font-weight: 600;
	color: #222;
	text-decoration: none;
}

.om-post-by a:hover,
.om-post-by a:focus {
	color: #ed1b45;
}

.om-post-dot {
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: #ccc;
}

/* Share icons */
.om-post-share {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.om-post-share a,
.om-post-share button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #f1f1f1;
	color: #333;
	font-size: 15px;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.om-post-share i {
	font-size: 15px;
	line-height: 1;
	color: inherit;
}

.om-post-share a:hover,
.om-post-share a:focus-visible,
.om-post-share button:hover,
.om-post-share button:focus-visible,
.om-post-share button.is-copied {
	background: #ed1b45;
	color: #fff;
}

/* Featured image */
.om-post-image {
	margin: 0 0 30px;
}

.om-post-image img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 460px;
	object-fit: cover;
}

/* Content */
.om-post-content {
	font-size: 17px;
	line-height: 1.75;
	color: #333;
	overflow-wrap: break-word;
}

.om-post-content > :first-child {
	margin-top: 0;
}

.om-post-content p {
	margin: 0 0 1.2em;
	font-size: inherit;
	line-height: inherit;
	color: inherit;
	text-align: left;
}

.om-post-content h2,
.om-post-content h3,
.om-post-content h4 {
	margin: 1.6em 0 0.6em;
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 400;
	line-height: 1.3;
	text-transform: none;
	color: #222;
}

.om-post-content h2 { font-size: 26px; }
.om-post-content h3 { font-size: 22px; }
.om-post-content h4 { font-size: 19px; }

.om-post-content a {
	color: #ed1b45;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.om-post-content ul,
.om-post-content ol {
	margin: 0 0 1.2em;
	padding-left: 1.3em;
}

.om-post-content li {
	margin-bottom: 0.4em;
}

.om-post-content blockquote {
	margin: 1.6em 0;
	padding: 4px 0 4px 22px;
	border-left: 3px solid #ed1b45;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 20px;
	font-style: italic;
	line-height: 1.5;
	color: #222;
}

.om-post-content img {
	max-width: 100%;
	height: auto;
}

.om-post-content figure {
	max-width: 100%;
	margin: 1.6em 0;
}

.om-post-content figcaption {
	margin-top: 8px;
	font-size: 13px;
	color: #888;
}

.om-post-content table {
	width: 100%;
	margin: 0 0 1.2em;
	border-collapse: collapse;
	font-size: 15px;
}

.om-post-content th,
.om-post-content td {
	padding: 8px 10px;
	border: 1px solid #e5e5e5;
	text-align: left;
}

/* Tags + share row */
.om-post-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 10px;
	padding-top: 18px;
	border-top: 1px solid #eee;
}

.om-post-tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.om-post-tags-label {
	margin-right: 6px;
	font-family: "Raleway", sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #222;
}

.om-post-tags a {
	padding: 6px 12px;
	border: 1px solid #ddd;
	border-radius: 999px;
	background: #fff;
	font-size: 13px;
	line-height: 1.2;
	color: #555;
	text-decoration: none;
}

.om-post-tags a:hover,
.om-post-tags a:focus {
	border-color: #ed1b45;
	color: #ed1b45;
}

/* Author card(s) */
.om-post-authors {
	display: grid;
	gap: 16px;
	margin-top: 28px;
}

.om-author-card {
	display: flex;
	gap: 20px;
	padding: 26px;
	background: #fff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.om-author-photo {
	flex: none;
}

.om-author-photo img {
	display: block;
	width: 84px;
	height: 84px;
	object-fit: cover;
	border-radius: 50%;
	background: #f2f2f2;
}

.om-post .om-author-name {
	margin: 0 0 4px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 20px;
	font-weight: 400;
	line-height: 1.3;
	text-transform: none;
	color: #222;
}

.om-author-name a {
	color: inherit;
	text-decoration: none;
}

.om-author-name a:hover,
.om-author-name a:focus {
	color: #ed1b45;
}

.om-post .om-author-role {
	margin: 0 0 8px;
	font-size: 13px;
	font-weight: 600;
	color: #ed1b45;
}

.om-post .om-author-bio {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: #666;
	text-align: left;
}

.om-author-link {
	display: inline-block;
	margin-top: 10px;
	font-size: 14px;
	font-weight: 600;
	color: #ed1b45;
	text-decoration: none;
}

.om-author-link:hover,
.om-author-link:focus {
	text-decoration: underline;
}

/* Previous / next */
.om-post-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-top: 28px;
}

.om-post-nav a {
	display: block;
	padding: 20px 22px;
	background: #fff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
	text-decoration: none;
	transition: box-shadow 0.2s ease;
}

.om-post-nav a:hover,
.om-post-nav a:focus {
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.om-post-nav-next {
	grid-column: 2;
	text-align: right;
}

.om-post-nav small {
	display: block;
	margin-bottom: 6px;
	font-family: "Raleway", sans-serif;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #999;
}

.om-post-nav a > span {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 16px;
	line-height: 1.4;
	color: #222;
}

.om-post-nav a:hover > span,
.om-post-nav a:focus > span {
	color: #ed1b45;
}

/* Related articles */
.om-post-related {
	margin-top: 40px;
}

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

.om-related-card {
	background: #fff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.om-related-image {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #eee;
}

.om-related-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.om-related-card:hover .om-related-image img {
	transform: scale(1.04);
}

.om-related-body {
	padding: 14px 16px 18px;
}

.om-related-body h3 {
	margin: 0 0 6px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.35;
	text-transform: none;
}

.om-related-body h3 a {
	color: #222;
	text-decoration: none;
}

.om-related-body h3 a:hover,
.om-related-body h3 a:focus {
	color: #ed1b45;
}

.om-related-body time {
	font-size: 12px;
	color: #999;
}

/* Sidebar: line its top up with the article card. */
.om-post .blog-home-tranding {
	margin-top: 0;
	padding-top: 0;
}

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

@media (max-width: 767px) {
	.om-post {
		padding: 20px 0 40px;
	}

	.om-post-card {
		padding: 22px 18px;
	}

	.om-post .om-post-title {
		font-size: 28px;
	}

	.om-post-content {
		font-size: 16px;
	}

	.om-post-content h2 { font-size: 22px; }
	.om-post-content h3 { font-size: 19px; }

	.om-author-card {
		flex-direction: column;
		gap: 12px;
		padding: 20px 18px;
	}

	.om-post-nav {
		grid-template-columns: 1fr;
	}

	.om-post-nav-next {
		grid-column: auto;
		text-align: left;
	}

	.om-related-grid {
		grid-template-columns: 1fr;
	}

	.om-post .blog-home-tranding {
		margin-top: 30px;
	}
}
