/* Match homepage banner height to inner pages so the logo isn't cropped */
.home .header-bg {
	height: 278px !important;
	min-height: 278px !important;
}

.category-blogs .page-title {
	visibility: hidden;
	position: relative;
}
.category-blogs .page-title::after {
	content: "Devotionals";
	visibility: visible;
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
}

/* ===== Consistent designed page headers ===== */

/* Center titles (with !important to beat theme defaults) */
.page .entry-title,
.archive .page-title {
	text-align: center !important;
	margin-bottom: 16px;
}

.page .entry-header,
.archive .page-header {
	padding-top: 24px;
}

/* Subtitle = FIRST PARAGRAPH inside entry-content (not first-child, since a featured-image div sits first) */
.page .entry-content p:first-of-type {
	text-align: center;
	font-style: italic;
	font-size: 1.15em;
	color: #8a7d6a;
	max-width: 620px;
	margin: 0 auto 8px;
}

/* Blogs category description */
.archive .taxonomy-description {
	text-align: center;
	font-style: italic;
	font-size: 1.15em;
	color: #8a7d6a;
	max-width: 620px;
	margin: 0 auto;
}

/* Cream divider under header pair */
.page .entry-content p:first-of-type::after,
.archive .taxonomy-description::after {
	content: "";
	display: block;
	width: 60px;
	height: 3px;
	background: #d9cdb5;
	margin: 20px auto 8px;
	border-radius: 2px;
}

/* ===== Footer layout polish ===== */
.footer-widgets {
	display: flex !important;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 40px;
	max-width: 1100px;
	margin: 0 auto;
	padding: 20px;
}

.footer-widgets .widget-area {
	flex: 1 1 250px;
	text-align: center;
	float: none !important;
	width: auto !important;
}

/* Center the widgets inside each column */
.footer-widgets .widget {
	margin: 0 auto;
}

/* Social icons centered */
.footer-widgets .wp-block-social-links {
	justify-content: center;
}

/* Subtitle/blurb readable width */
.footer-widgets p {
	max-width: 300px;
	margin: 0 auto;
	line-height: 1.6;
}



/* ===== Remove sidebar site-wide, full-width content ===== */
#secondary,
.widget-area:not(.footer-widgets .widget-area) {
	display: none !important;
}

#primary,
.content-area {
	width: 100% !important;
	float: none !important;
	margin: 0 auto !important;
}


/* Clear the leftover sidebar space on #main */
#main.site-main {
	margin-right: 0 !important;
	width: 100% !important;
}

.entry-content,
article.page,
article.post {
	width: 100% !important;
	max-width: 100% !important;
}



/* Center content in a readable column */
.entry-content {
	max-width: 720px !important;
	margin-left: auto !important;
	margin-right: auto !important;
}


/* Reset subtitle styling everywhere EXCEPT the true page subtitle */
.page .entry-content .wp-block-columns p:first-of-type,
.page .entry-content .wp-block-column p:first-of-type,
.page .entry-content .wp-block-group p:first-of-type,
.page .entry-content .wp-block-group__inner-container p:first-of-type {
	text-align: left;
	font-style: normal;
	font-size: inherit;
	color: inherit;
	max-width: none;
	margin: revert;
}
.page .entry-content .wp-block-columns p:first-of-type::after,
.page .entry-content .wp-block-column p:first-of-type::after,
.page .entry-content .wp-block-group p:first-of-type::after,
.page .entry-content .wp-block-group__inner-container p:first-of-type::after {
	content: none;
}

/* Make all three book titles match Promise (black, bold) */
.page .entry-content .wp-block-column > p.wp-block-paragraph:first-of-type,
.page .entry-content .wp-block-column > p.has-large-font-size {
	color: #000 !important;
	font-weight: 700 !important;
}


/* Endorsement section headers on Books page */
.page-id-4560 .entry-content h3.wp-block-heading {
	text-align: center;
	margin-top: 40px;
	margin-bottom: 4px;
}

/* The "Endorsements" subtitle line directly after each H3 */
.page-id-4560 .entry-content h3.wp-block-heading + p {
	text-align: center;
	font-style: italic;
	color: #8a7d6a;
	font-size: 0.95em;
	margin-top: 0;
	margin-bottom: 24px;
}


/* Re-center the homepage Acts 1:8 verse (was caught by the group reset) */
.home .acts-verse,
.home .acts-band p {
	text-align: center !important;
}


/* Hide ONLY the empty main page title, not devotional titles */
.home > .site-content .home-content > article > .entry-header,
.home .home-content > .entry-header {
	display: none !important;
}

/* Tighten the top spacing so content sits closer to nav */
.home .home-content,
.home .entry-content {
	margin-top: 0 !important;
	padding-top: 20px !important;
}


/* Kill top padding on the main content wrapper on homepage */
.home #main,
.home .site-main,
.home #primary,
.home .content-area {
	padding-top: 0 !important;
	margin-top: 0 !important;
}

/* Trim the social icons' own top margin a touch */
.home .wp-block-social-links {
	margin-top: 8px !important;
}


/* Remove the 72px top margin on site-content (homepage only) */
.home .site-content {
	margin-top: 0 !important;
}

/* Homepage devotional titles: left-align, not centered */
.home .home-content .entry-title {
	text-align: left !important;
}

/* Homepage recent-devotional titles: left-align */
.home .featured-posts .entry-title {
	text-align: left !important;
}

.single .entry-content {
	max-width: 720px !important;
	margin-left: 0 !important;
	margin-right: auto !important;
}


.contact-form input[type=text],
.contact-form input[type=email],
.contact-form input[type=url],
.contact-form textarea,
.wpforms-field input,
.wpforms-field textarea {
	border: 2px solid #ccc !important;
	background-color: #fff !important;
	border-radius: 8px !important;
	padding: 12px !important;
}


.category-blogs .page-title {
	visibility: hidden;
	position: relative;
}
.category-blogs .page-title::after {
	content: "Blogs";
	visibility: visible;
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
}


.category-blogs .page-header p,
.archive .page-header p {
	text-align: center !important;
	max-width: 620px;
	margin: 0 auto;
}


.home .featured-posts::before {
	content: "Recent Blogs";
	display: block;
	width: fit-content;
	margin: 40px auto 40px;
	padding-bottom: 12px;
	text-align: center;
	font-size: 2rem;
	font-weight: 700;
	font-family: 'Arvo', serif;
	border-bottom: 3px solid #d9cdb5;
}


.hhy-top-search form {
	display: flex;
	gap: 6px;
	align-items: stretch;
}

.hhy-top-search label {
	flex: 1;
	margin: 0;
	display: flex;
}

.hhy-top-search input[type="search"] {
	width: 100%;
	margin: 0;
	padding: 6px 10px;
	font-size: 0.9rem;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-sizing: border-box;
}

.hhy-top-search input[type="submit"],
.hhy-top-search button {
	margin: 0;
	padding: 6px 14px;
	font-size: 0.9rem;
	white-space: nowrap;
	box-sizing: border-box;
}

.hhy-top-search {
	max-width: 280px;
	margin: 10px 20px 10px auto;
	padding: 0;
}


.site-description {
	font-family: 'Timess', Georgia, serif !important;
	font-size: 22px !important;
	line-height: 1.8;
}

.site-description::after {
	content: "Acts 1:8";
	display: block;
	font-family: 'Arvo', Georgia, serif;
	font-size: 18px;
	font-style: italic;
	font-weight: 400;
	margin-top: 6px;
}


/* Match inner-page banner height to homepage */
body:not(.home) .header-bg { height: 278px; }