/**
 * Blog listing, archives, single post, 404 — styles keyed to OG Fusion classes.
 */

:root {
	--ph-blog-navy: #00205b;
	--ph-blog-meta: #5a6577;
	--ph-blog-cream: #f9f1e6;
	--ph-blog-max: 1200px;
	--ph-blog-gap: 40px;
}

/* —— Archive H1 —— */
#main .fusion-title-heading,
#main h1.fusion-title-heading {
	margin: 28px 0 36px;
	color: var(--ph-blog-navy);
	font-family: Poppins, Arial, Helvetica, sans-serif;
	font-size: clamp(28px, 4vw, 42px);
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
}

/* —— Fusion 3-col blog grid —— */
.fusion-blog-layout-grid-wrapper {
	background: #fff;
	padding: 24px 4% 64px;
	box-sizing: border-box;
}

.fusion-posts-container.fusion-blog-layout-grid-3 {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--ph-blog-gap);
	align-items: start;
	max-width: var(--ph-blog-max);
	margin: 0 auto;
	min-height: 0 !important;
}

.fusion-posts-container.fusion-blog-layout-grid-3 > .fusion-clearfix {
	display: none;
}

@media (max-width: 900px) {
	.fusion-posts-container.fusion-blog-layout-grid-3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 28px;
	}
}

@media (max-width: 560px) {
	.fusion-posts-container.fusion-blog-layout-grid-3 {
		grid-template-columns: 1fr;
	}
}

.fusion-post-grid {
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
	box-shadow: none;
	font-family: Poppins, Arial, Helvetica, sans-serif;
}

.fusion-post-wrapper {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	height: 100%;
	background: transparent;
	border: none;
}

.fusion-post-grid .fusion-flexslider,
.fusion-post-grid .fusion-post-slideshow {
	width: 100%;
	margin: 0 0 18px;
	padding: 0;
	border: 0;
	background: #eef1f4;
	overflow: hidden;
}

.fusion-post-grid .fusion-flexslider .slides,
.fusion-post-grid .fusion-post-slideshow .slides {
	list-style: none;
	margin: 0;
	padding: 0;
}

.fusion-post-grid .fusion-image-wrapper {
	line-height: 0;
}

.fusion-post-grid .fusion-image-wrapper a {
	display: block;
}

.fusion-post-grid .wp-post-image {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.fusion-post-content-wrapper {
	display: flex;
	flex-direction: column;
	flex: 1;
	width: 100%;
	padding: 0;
}

.blog-shortcode-post-title.entry-title {
	margin: 0 0 10px;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--ph-blog-navy);
}

.blog-shortcode-post-title.entry-title a {
	color: inherit;
	text-decoration: none;
}

.blog-shortcode-post-title.entry-title a:hover {
	color: #ff4558;
}

.fusion-single-line-meta {
	margin: 0 0 14px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--ph-blog-meta);
}

.fusion-single-line-meta a {
	color: var(--ph-blog-meta);
	text-decoration: none;
}

.fusion-single-line-meta a:hover {
	color: var(--ph-blog-navy);
	text-decoration: underline;
}

.fusion-inline-sep {
	display: inline-block;
	margin: 0 0.45em;
	color: inherit;
}

.fusion-content-sep.sep-none {
	display: none;
}

.fusion-post-content-container {
	margin: 0 0 16px;
	color: #333;
	font-size: 15px;
	line-height: 1.65;
}

.fusion-post-content-container p {
	margin: 0;
}

.fusion-post-grid .fusion-meta-info {
	margin-top: auto;
	padding: 0;
	border: 0;
}

.fusion-alignleft {
	text-align: left;
}

.fusion-read-more {
	color: var(--ph-blog-navy);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
}

.fusion-read-more:hover {
	color: #ff4558;
	text-decoration: underline;
}

.fusion-blog-empty {
	text-align: center;
	color: var(--ph-blog-navy);
	font-family: Poppins, Arial, Helvetica, sans-serif;
}

/* —— Pagination —— */
.pagination.clearfix,
.fusion-pagination {
	display: flex;
	justify-content: center;
	margin: 48px 0 8px;
	font-family: Poppins, Arial, Helvetica, sans-serif;
}

.pagination .page-numbers,
.fusion-pagination .page-numbers {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.pagination .page-numbers li,
.fusion-pagination .page-numbers li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.pagination a.page-numbers,
.pagination span.page-numbers,
.fusion-pagination a.page-numbers,
.fusion-pagination span.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	border: 1px solid var(--ph-blog-navy);
	color: var(--ph-blog-navy);
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
	background: #fff;
}

.pagination a.page-numbers:hover,
.fusion-pagination a.page-numbers:hover {
	background: var(--ph-blog-navy);
	color: #fff;
}

.pagination span.page-numbers.current,
.fusion-pagination span.page-numbers.current {
	background: var(--ph-blog-navy);
	color: #fff;
	border-color: var(--ph-blog-navy);
}

.pagination .page-numbers.prev,
.pagination .page-numbers.next,
.fusion-pagination .page-numbers.prev,
.fusion-pagination .page-numbers.next {
	font-size: 16px;
	font-weight: 600;
}

/* —— 404 center —— */
body.ph-404-page #content,
body.error404 #content,
body.error404 .ph-404 {
	text-align: center;
}

body.error404 #content {
	display: flex;
	justify-content: center;
}

.ph-404 {
	width: 100%;
	max-width: 720px;
	margin: 48px auto 72px;
	padding: 24px 4%;
	text-align: center;
	font-family: Poppins, Arial, Helvetica, sans-serif;
	color: var(--ph-blog-navy);
}

.ph-404 h1 {
	margin: 0 0 18px;
	color: var(--ph-blog-navy);
	font-size: clamp(26px, 3.5vw, 36px);
	font-weight: 700;
	line-height: 1.25;
	text-align: center;
}

.ph-404 p {
	margin: 0 0 12px;
	color: #222;
	font-size: 16px;
	line-height: 1.6;
	text-align: center;
}

.ph-404 a {
	color: #ff4558;
	text-decoration: underline;
}

.ph-404 a:hover {
	color: var(--ph-blog-navy);
}

/*
 * Single post content: H1 cream → lighter.
 * Must beat ph-content-page.css:
 *   body.ph-content-page .post-content > .fusion-fullwidth:not(:first-of-type)
 */
body.single-post.ph-content-page .post-content > .fusion-fullwidth.ph-content-body,
body.single-post.ph-content-page .post-content > .ph-content-body.fusion-fullwidth,
body.single-post .post-content > .fusion-fullwidth.ph-content-body {
	background-color: var(--awb-custom10, #f9f1e6) !important;
	background-image: linear-gradient(
		180deg,
		var(--awb-custom10, #f9f1e6) 0%,
		#fdfbfa 40%,
		#ffffff 100%
	) !important;
	background-repeat: no-repeat !important;
	background-size: 100% 100% !important;
	padding-top: 8px !important;
	padding-bottom: 56px !important;
}

/* Match page content row exactly (max 1365px + page gutters) */
body.single-post .ph-single-post-row.ph-content-body__row {
	display: grid;
	align-items: start;
	max-width: var(--ph-page-max, 1365px);
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--ph-page-gutter, 2.375%);
	padding-right: var(--ph-page-gutter, 2.375%);
	box-sizing: border-box;
}

body.single-post .ph-single-post-row.fusion-row-has-sidebar {
	grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
	gap: 40px 48px;
}

body.single-post .ph-single-post-row.fusion-row-no-sidebar {
	grid-template-columns: minmax(0, 1fr);
	gap: 0;
}

body.single-post .ph-single-post-main {
	min-width: 0;
	width: 100%;
	max-width: 100%;
}

body.single-post #sidebar.fusion-blogsidebar {
	float: none !important;
	width: auto !important;
	min-width: 0;
	padding-left: 8px;
	border-left: 1px solid rgba(0, 32, 91, 0.1);
	font-family: Poppins, Arial, Helvetica, sans-serif;
}

/* Mobile: sidebar stacks under content */
@media (max-width: 900px) {
	body.single-post .ph-single-post-row.fusion-row-has-sidebar {
		grid-template-columns: 1fr;
		gap: 36px;
	}

	body.single-post #sidebar.fusion-blogsidebar {
		order: 2;
		border-left: 0;
		padding-left: 0;
		border-top: 1px solid rgba(0, 32, 91, 0.12);
		padding-top: 28px;
	}

	body.single-post .ph-single-post-main {
		order: 1;
	}
}

/* Featured image = full width of post column */
body.single-post .ph-single-post-main .ph-single-featured.fusion-image-wrapper,
body.single-post .ph-single-featured {
	display: block !important;
	margin: 0 0 1.5em !important;
	padding: 0 !important;
	width: 100% !important;
	max-width: 100% !important;
	line-height: 0 !important;
	background: transparent !important;
	border: 0 !important;
	overflow: hidden;
	box-sizing: border-box;
}

body.single-post .ph-single-featured .wp-post-image,
body.single-post .ph-single-featured img {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	object-fit: cover;
	box-sizing: border-box;
}

body.single-post .ph-single-post-body,
body.single-post .ph-single-post-main {
	color: var(--ph-blog-navy);
	font-family: Poppins, Arial, Helvetica, sans-serif;
	font-size: 16px;
	line-height: 1.7;
}

body.single-post .ph-single-post-body h2,
body.single-post .ph-single-post-body h3,
body.single-post .ph-single-post-body h4 {
	color: var(--ph-blog-navy);
	font-family: Poppins, Arial, Helvetica, sans-serif;
}

body.single-post .ph-single-post-body ul {
	padding-left: 1.25em;
}

body.single-post .ph-single-post-body li {
	margin: 0 0 0.65em;
}

body.single-post .ph-single-post-body li::marker {
	color: var(--ph-blog-navy);
}

/* Meta: By author | date | category */
body.single-post .fusion-meta-info {
	margin: 2em 0 0;
	padding: 14px 0;
	border-top: 1px solid rgba(0, 32, 91, 0.15);
	border-bottom: 1px solid rgba(0, 32, 91, 0.15);
	color: var(--ph-blog-navy);
	font-family: Poppins, Arial, Helvetica, sans-serif;
	font-size: 14px;
	line-height: 1.5;
}

body.single-post .fusion-meta-info a {
	color: var(--ph-blog-navy);
	text-decoration: none;
}

body.single-post .fusion-meta-info a:hover {
	color: #ff4558;
	text-decoration: underline;
}

.rich-snippet-hidden {
	position: absolute !important;
	clip: rect(1px, 1px, 1px, 1px);
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Share box (OG Fusion markup) */
:root {
	--sharing_social_links_icon_color: #8a8f98;
}

.fusion-sharing-box.fusion-single-sharing-box {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
	margin: 24px 0 0;
	padding: 22px 24px;
	background: var(--ph-blog-cream, #f9f1e6);
	box-sizing: border-box;
}

.fusion-sharing-box.fusion-single-sharing-box h4 {
	margin: 0;
	flex: 1 1 200px;
	max-width: 280px;
	color: #111;
	font-family: Poppins, Arial, Helvetica, sans-serif;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
}

.fusion-sharing-box .fusion-social-networks {
	flex: 0 1 auto;
}

.fusion-sharing-box .fusion-social-networks-wrapper {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 14px 16px;
}

.fusion-sharing-box .fusion-social-network-icon {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 22px !important;
	height: 22px !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	background-color: transparent !important;
	color: var(--sharing_social_links_icon_color, #8a8f98) !important;
	font-size: 16px !important;
	line-height: 1 !important;
	text-decoration: none !important;
}

.fusion-sharing-box .fusion-social-network-icon:hover {
	color: var(--ph-blog-navy, #00205b) !important;
}

.fusion-sharing-box .fusion-social-network-icon::before {
	font-family: "Font Awesome 5 Brands", "Font Awesome 5 Free", FontAwesome, sans-serif;
	font-weight: 400;
	font-size: 16px;
	line-height: 1;
	speak: none;
}

.fusion-sharing-box .awb-icon-facebook::before,
.fusion-sharing-box .fusion-facebook::before { content: "\f39e"; }
.fusion-sharing-box .awb-icon-twitter::before,
.fusion-sharing-box .fusion-twitter::before { content: "\f099"; }
.fusion-sharing-box .awb-icon-reddit::before,
.fusion-sharing-box .fusion-reddit::before { content: "\f281"; }
.fusion-sharing-box .awb-icon-linkedin::before,
.fusion-sharing-box .fusion-linkedin::before { content: "\f0e1"; }
.fusion-sharing-box .awb-icon-whatsapp::before,
.fusion-sharing-box .fusion-whatsapp::before { content: "\f232"; }
.fusion-sharing-box .awb-icon-tumblr::before,
.fusion-sharing-box .fusion-tumblr::before { content: "\f173"; }
.fusion-sharing-box .awb-icon-pinterest::before,
.fusion-sharing-box .fusion-pinterest::before { content: "\f231"; }
.fusion-sharing-box .awb-icon-vk::before,
.fusion-sharing-box .fusion-vk::before { content: "\f189"; }
.fusion-sharing-box .awb-icon-xing::before,
.fusion-sharing-box .fusion-xing::before { content: "\f168"; }
.fusion-sharing-box .awb-icon-mail::before,
.fusion-sharing-box .fusion-mail::before {
	content: "\f0e0";
	font-family: "Font Awesome 5 Free", FontAwesome, sans-serif;
	font-weight: 900;
}

.fusion-sharing-box .fusion-clearfix {
	display: none;
}

/* Sidebar search + recent (OG widgets) */
#sidebar .widget {
	margin: 0 0 28px;
}

#sidebar .widget-title {
	margin: 0 0 14px;
	color: #111;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
}

#sidebar .fusion-search-form-clean .fusion-search-form-content {
	display: flex;
	align-items: stretch;
	border: 1px solid #d0d4da;
	border-radius: 6px;
	overflow: hidden;
	background: #fff;
}

#sidebar .fusion-search-field {
	flex: 1;
	min-width: 0;
}

#sidebar .fusion-search-field label {
	display: block;
	margin: 0;
}

#sidebar .fusion-search-field input.s {
	width: 100%;
	border: 0;
	outline: none;
	padding: 10px 14px;
	background: transparent;
	color: var(--ph-blog-navy);
	font-family: Poppins, Arial, Helvetica, sans-serif;
	font-size: 14px;
	line-height: 1.4;
	box-sizing: border-box;
}

#sidebar .fusion-search-field input.s::placeholder {
	color: #a0a6b0;
}

#sidebar .fusion-search-button {
	flex-shrink: 0;
}

#sidebar .fusion-search-submit {
	display: block;
	height: 100%;
	min-width: 44px;
	border: 0;
	background: transparent;
	color: #9aa1ab;
	font-family: "Font Awesome 5 Free";
	font-weight: 900;
	font-size: 14px;
	cursor: pointer;
	padding: 0 12px;
}

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

#sidebar .widget_recent_entries li {
	margin: 0;
	padding: 12px 0;
	border-bottom: 1px solid rgba(0, 32, 91, 0.12);
}

#sidebar .widget_recent_entries li:first-child {
	padding-top: 0;
}

#sidebar .widget_recent_entries a {
	display: block;
	position: relative;
	padding-left: 1em;
	color: var(--ph-blog-navy);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.45;
	text-decoration: none;
}

#sidebar .widget_recent_entries a::before {
	content: ">";
	position: absolute;
	left: 0;
	top: 0;
	color: var(--ph-blog-navy);
	font-weight: 600;
}

#sidebar .widget_recent_entries a:hover {
	color: #ff4558;
}
