/*
Theme Name:   Astra Child - Holt Social Worker
Theme URI:    https://swrresources.holtinternational.org
Description:  Custom child theme for Holt Social Worker Resources site
Author:       Chan Inthisone
Author URI:   mailto:chani@holtinternational.org
Template:     astra
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  astra-child-holt-sw
*/

/*
 * Custom styles for Holt Social Worker Resources site
 * Add your custom CSS below this line
 */

/* ============================================
   ACCESSIBILITY
   ============================================ */

/* Screen reader only text - visually hidden but accessible to screen readers */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 14px;
	font-weight: bold;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* Skip link for keyboard navigation */
.skip-link {
	background-color: #f1f1f1;
	box-shadow: 0 0 1px 1px rgba(0, 0, 0, 0.2);
	color: #21759b;
	display: block;
	font-family: var(--font-body, 'Open Sans', sans-serif);
	font-size: 14px;
	font-weight: 700;
	left: -9999em;
	outline: none;
	padding: 15px 23px 14px;
	text-decoration: none;
	text-transform: none;
	top: -9999em;
}

.skip-link:focus {
	clip: auto;
	height: auto;
	left: 6px;
	top: 7px;
	width: auto;
	z-index: 100000;
}

/* ============================================
   TYPOGRAPHY - HOLT INTERNATIONAL 2025
   ============================================ */

/* Force Merriweather for all headings */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
	font-family: 'Merriweather', serif !important;
}

/* Force Inter for body text (replaces General Sans) */
body,
p,
button,
input,
textarea,
select,
.entry-content p,
.entry-content li {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Link styles - Holt International 2025 */
a {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
	font-weight: 600;
	color: #006ea4; /* Holt Navy */
	text-decoration: none;
	transition: color 0.2s ease;
}

a:hover,
a:focus {
	color: #007086; /* Holt Dark Teal - slightly lighter for hover */
	text-decoration: underline;
}

.entry-content a {
	font-weight: 600;
	color: #006ea4;
}

.entry-content a:hover,
.entry-content a:focus {
	color: #007086;
	text-decoration: underline;
}

/* Fix mobile overflow issues and ensure full width */
/* Note: Don't set overflow-x on #page as it breaks position: sticky for header */
body {
	overflow-x: hidden !important;
	max-width: 100% !important;
	min-width: 0 !important;
	width: 100% !important;
}

#page {
	max-width: 100% !important;
	min-width: 0 !important;
}

#content,
div#content {
	overflow-x: hidden !important;
	max-width: 100% !important;
	min-width: 0 !important;
}

/* Don't set overflow-x on html as it breaks position: sticky */
html {
	max-width: 100%;
}

/* Ensure site-content uses full width */
.site-content,
#content.site-content,
.ast-container {
	max-width: 100% !important;
	width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

/* Keep primary content area properly constrained by CSS Grid */
.site-content > .ast-container {
	max-width: 100% !important;
}

/* Ensure primary content uses grid layout for full-bleed */
#primary.content-area {
	max-width: 100% !important;
	width: 100% !important;
}

/* ============================================
   HEADER ENHANCEMENTS
   ============================================ */

/* Header shadow on scroll (sticky) */
.ast-sticky-active .main-header-bar {
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	transition: box-shadow 0.3s ease;
}

/* Primary menu hover effects */
.main-header-menu .menu-item > a {
	transition: color 0.2s ease;
}

.main-header-menu .menu-item > a:hover {
	color: var(--holt-orange-red, #e35030);
}

/* Active menu item indicator */
.main-header-menu .current-menu-item > a,
.main-header-menu .current-menu-ancestor > a {
	color: var(--holt-orange-red, #e35030);
	position: relative;
}

.main-header-menu .current-menu-item > a::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	right: 0;
	height: 2px;
	background-color: var(--holt-orange-red, #e35030);
}

/* Submenu styling */
.main-header-menu .sub-menu {
	border-top: 3px solid var(--holt-orange-red, #e35030);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.main-header-menu .sub-menu .menu-item a:hover {
	background-color: var(--holt-light-gray, #F5F5F5);
	color: var(--holt-orange-red, #e35030);
}

/* Header button hover effect */
.ast-header-button-1 .ast-custom-button,
.ast-header-button .ast-custom-button {
	transition: all 0.2s ease;
}

.ast-header-button-1 .ast-custom-button:hover,
.ast-header-button .ast-custom-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(227, 80, 48, 0.3);
}

/* Mobile menu enhancements */
@media (max-width: 921px) {
	.ast-mobile-menu-buttons .menu-toggle {
		color: var(--holt-charcoal, #2C2C2C);
	}

	.ast-mobile-popup-drawer.active .ast-mobile-popup-inner {
		background-color: var(--holt-white, #FFFFFF);
	}
}

/* ============================================
   SITE TITLE STYLING (if no logo)
   ============================================ */

.site-title a {
	font-family: var(--font-heading, 'Merriweather', serif);
	font-weight: 700;
	color: var(--holt-charcoal, #2C2C2C);
	text-decoration: none;
	transition: color 0.2s ease;
}

.site-title a:hover {
	color: var(--holt-orange-red, #e35030);
}

/* ============================================
   ADDITIONAL THEME REFINEMENTS
   ============================================ */

/* Smooth transitions for links */
a {
	transition: color 0.2s ease;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
.menu-toggle:focus-visible {
	outline: 2px solid var(--holt-orange-red, #e35030);
	outline-offset: 2px;
}

/* ============================================
   CUSTOM HEADER (header.php)
   ============================================ */

/* Header Container */
.holt-site-header {
	background-color: #f9f7f6;
	border-bottom: 2px solid #e7e7e7;
	position: sticky;
	top: 0;
	z-index: 999;
	transition: box-shadow 0.3s ease;
}

/* Fix for WordPress admin bar */
.admin-bar .holt-site-header {
	top: 32px;
}

@media screen and (max-width: 782px) {
	.admin-bar .holt-site-header {
		top: 0;
	}
}

.holt-site-header.scrolled {
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.holt-header-container {
	--content-max-width: 1400px;
	--content-padding: 20px;

	display: grid;
	grid-template-columns:
		[full-start] minmax(var(--content-padding), 1fr)
		[content-start] min(100% - (var(--content-padding) * 2), var(--content-max-width)) [content-end]
		minmax(var(--content-padding), 1fr) [full-end];
}

/* Place header content in the content grid column */
.holt-header-top,
.holt-main-navigation {
	grid-column: content;
}

/* Top Row: Branding and Mobile Toggle */
.holt-header-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	min-height: 90px;
	padding: 20px 0 15px;
}

@media (max-width: 782px) {
	.holt-header-top {
		min-height: 70px;
		padding: 15px 0 10px;
	}
}

/* Site Branding */
.holt-site-branding {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	gap: 20px;
}

.holt-site-branding .custom-logo-link {
	display: block;
	line-height: 0;
	flex-shrink: 0;
}

.holt-site-branding .custom-logo {
	max-height: 70px;
	width: auto;
	height: auto;
}

/* Responsive logo sizing */
@media (max-width: 782px) {
	.holt-site-branding .custom-logo {
		max-height: 55px;
	}
}

@media (max-width: 544px) {
	.holt-site-branding .custom-logo {
		max-height: 45px;
	}
}

.holt-site-identity {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 2px;
}

.holt-site-title a {
	font-family: var(--font-heading, 'Merriweather', serif);
	font-size: 22px;
	font-weight: 700;
	color: var(--holt-charcoal, #2C2C2C);
	text-decoration: none;
	transition: color 0.2s ease;
	line-height: 1.2;
}

.holt-site-title a:hover {
	color: var(--holt-orange-red, #e35030);
}

.holt-site-description {
	font-family: var(--font-body, 'Open Sans', sans-serif);
	font-size: 13px;
	font-weight: 400;
	color: #666;
	margin: 0;
	line-height: 1.2;
	font-style: italic;
}

/* Header Right Side (CTA + Mobile Toggle) */
.holt-header-right {
	display: flex;
	align-items: center;
	gap: 20px;
}

/* Header CTA Button */
.holt-header-cta-button {
	display: inline-block;
	padding: 10px 24px;
	background-color: var(--holt-orange-red, #e35030);
	color: #ffffff;
	font-family: var(--font-body, 'Open Sans', sans-serif);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	border-radius: 8px;
	transition: all 0.2s ease;
	white-space: nowrap;
	line-height: 1.4;
}

.holt-header-cta-button:hover,
.holt-header-cta-button:focus {
	background-color: var(--holt-dark-orange, #d33928);
	color: #ffffff;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(227, 80, 48, 0.3);
}

/* Hide CTA button on mobile (smaller than tablet) */
@media (max-width: 782px) {
	.holt-header-cta-button {
		display: none;
	}
}

/* Navigation Menu - Second Row */
.holt-main-navigation {
	display: block;
	border-top: 1px solid #e0e0e0;
	padding: 0;
	background-color: #ffffff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.holt-nav-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 30px;
	align-items: center;
	justify-content: center;
}

.holt-nav-menu li {
	position: relative;
}

.holt-nav-menu > li > a {
	font-family: var(--font-body, 'Open Sans', sans-serif);
	font-size: 15px;
	font-weight: 600;
	color: var(--holt-charcoal, #2C2C2C);
	text-decoration: none;
	padding: 15px 0;
	display: block;
	transition: color 0.2s ease;
}

.holt-nav-menu > li > a:hover,
.holt-nav-menu > li > a:focus {
	color: var(--holt-orange-red, #e35030);
}

/* Visible focus indicators for accessibility */
.holt-nav-menu a:focus {
	outline: 2px solid var(--holt-orange-red, #e35030);
	outline-offset: 2px;
}

.holt-nav-menu a:focus:not(:focus-visible) {
	outline: none;
}

.holt-nav-menu a:focus-visible {
	outline: 2px solid var(--holt-orange-red, #e35030);
	outline-offset: 2px;
}

/* Active Menu Item */
.holt-nav-menu > li.current-menu-item > a,
.holt-nav-menu > li.current-menu-ancestor > a {
	color: var(--holt-orange-red, #e35030);
	position: relative;
}

.holt-nav-menu > li.current-menu-item > a::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 2px;
	background-color: var(--holt-orange-red, #e35030);
}

/* Dropdown Submenus */
.holt-nav-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	background-color: #ffffff;
	border-top: 3px solid var(--holt-orange-red, #e35030);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	list-style: none;
	margin: 0;
	padding: 10px 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: all 0.2s ease;
	z-index: 1001;
}

.holt-nav-menu li:hover > .sub-menu,
.holt-nav-menu li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.holt-nav-menu .sub-menu li {
	display: block;
}

.holt-nav-menu .sub-menu a {
	font-size: 15px;
	font-weight: 400;
	color: var(--holt-charcoal, #2C2C2C);
	padding: 10px 20px;
	display: block;
	text-decoration: none;
	transition: all 0.2s ease;
	border-bottom: 1px solid #e7e7e7;
}

.holt-nav-menu .sub-menu li:last-child a {
	border-bottom: none;
}

.holt-nav-menu .sub-menu a:hover,
.holt-nav-menu .sub-menu a:focus {
	background-color: var(--holt-light-gray, #F5F5F5);
	color: var(--holt-orange-red, #e35030);
	padding-left: 25px;
}

/* Nested Submenus */
.holt-nav-menu .sub-menu .sub-menu {
	top: 0;
	left: 100%;
	margin-top: -10px;
}

/* Mobile Menu Toggle */
.holt-mobile-menu-toggle {
	display: none;
	background: none;
	border: none;
	padding: 10px;
	cursor: pointer;
	z-index: 1002;
}

.holt-mobile-menu-toggle:focus {
	outline: 2px solid var(--holt-orange-red, #e35030);
	outline-offset: 2px;
}

.holt-mobile-menu-toggle:focus:not(:focus-visible) {
	outline: none;
}

.holt-mobile-menu-toggle:focus-visible {
	outline: 2px solid var(--holt-orange-red, #e35030);
	outline-offset: 2px;
}

.holt-menu-toggle-icon {
	display: flex;
	flex-direction: column;
	gap: 5px;
	width: 28px;
	height: 20px;
}

.holt-menu-bar {
	display: block;
	width: 100%;
	height: 3px;
	background-color: var(--holt-charcoal, #2C2C2C);
	transition: all 0.3s ease;
}

.holt-mobile-menu-toggle:hover .holt-menu-bar {
	background-color: var(--holt-orange-red, #e35030);
}

/* Mobile Menu Toggle Active State */
.holt-mobile-menu-toggle[aria-expanded="true"] .holt-menu-bar:nth-child(1) {
	transform: rotate(45deg) translate(7px, 7px);
}

.holt-mobile-menu-toggle[aria-expanded="true"] .holt-menu-bar:nth-child(2) {
	opacity: 0;
}

.holt-mobile-menu-toggle[aria-expanded="true"] .holt-menu-bar:nth-child(3) {
	transform: rotate(-45deg) translate(7px, -7px);
}

/* ============================================
   MODERN HEADER STYLE (toggle via Customizer)
   ============================================ */

/* Modern Header: Floating appearance with refined spacing */
.holt-modern-header .holt-site-header {
	background-color: #ffffff;
	border-bottom: none;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.holt-modern-header .holt-site-header.scrolled {
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

/* Modern Header: Refined spacing */
.holt-modern-header .holt-header-top {
	min-height: 80px;
	padding: 15px 0;
}

/* Modern Header: Logo styling */
.holt-modern-header .holt-site-branding .custom-logo {
	max-height: 60px;
	transition: transform 0.2s ease;
}

.holt-modern-header .holt-site-branding .custom-logo:hover {
	transform: scale(1.02);
}

/* Modern Header: Site identity - cleaner typography */
.holt-modern-header .holt-site-title a {
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -0.5px;
}

.holt-modern-header .holt-site-description {
	font-size: 13px;
	color: #666;
	font-weight: 400;
}

/* Modern Header: Navigation - minimal and clean */
.holt-modern-header .holt-main-navigation {
	padding-bottom: 12px;
}

.holt-modern-header .holt-nav-menu > li > a {
	font-size: 14px;
	font-weight: 500;
	padding: 12px 0;
	letter-spacing: 0.2px;
}

.holt-modern-header .holt-nav-menu > li.current-menu-item > a::after {
	height: 3px;
	border-radius: 3px 3px 0 0;
}

/* Modern Header: CTA Button - more prominent */
.holt-modern-header .holt-header-cta-button {
	padding: 12px 28px;
	border-radius: 100px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.3px;
	box-shadow: 0 2px 8px rgba(227, 80, 48, 0.2);
}

.holt-modern-header .holt-header-cta-button:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 16px rgba(227, 80, 48, 0.35);
}

/* Modern Header: Dropdown menus - cleaner */
.holt-modern-header .holt-nav-menu .sub-menu {
	border-top: none;
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	padding: 8px 0;
}

.holt-modern-header .holt-nav-menu .sub-menu li a {
	font-size: 14px;
	padding: 10px 20px;
}

/* Modern Header: Mobile adjustments */
@media (max-width: 782px) {
	.holt-modern-header .holt-header-top {
		min-height: 65px;
		padding: 12px 0;
	}

	.holt-modern-header .holt-site-branding .custom-logo {
		max-height: 48px;
	}
}

/* Modern Header: Mobile menu background fix */
@media (max-width: 768px) {
	.holt-modern-header .holt-main-navigation {
		background-color: #ffffff;
	}

	.holt-modern-header .holt-main-navigation.active {
		border-top: 1px solid #e7e7e7;
	}
}

/* ============================================
   RESPONSIVE - TABLET
   ============================================ */

@media (max-width: 921px) {
	.holt-header-top {
		min-height: 60px;
		padding: 12px 0 8px;
	}

	.holt-site-branding {
		gap: 15px;
	}

	.holt-site-title a {
		font-size: 20px;
	}

	.holt-site-description {
		font-size: 12px;
	}

	.holt-site-branding .custom-logo {
		max-height: 45px;
	}

	.holt-nav-menu {
		gap: 20px;
	}

	.holt-nav-menu > li > a {
		font-size: 14px;
		padding: 12px 0;
	}
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */

@media (max-width: 768px) {
	.holt-header-top {
		min-height: 60px;
		padding: 10px 0;
	}

	.holt-site-branding {
		gap: 12px;
	}

	.holt-site-title a {
		font-size: 18px;
	}

	.holt-site-description {
		font-size: 11px;
	}

	.holt-site-branding .custom-logo {
		max-height: 40px;
	}

	/* Show Mobile Menu Toggle */
	.holt-mobile-menu-toggle {
		display: flex;
		align-items: center;
	}

	/* Hide Desktop Navigation - remove from grid flow on mobile */
	.holt-main-navigation {
		grid-column: full;
		position: static;
		background-color: #ffffff;
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.3s ease;
		box-shadow: none;
		border-top: 1px solid #e7e7e7;
		margin: 0;
	}

	.holt-main-navigation.active {
		max-height: none;
		overflow: visible;
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	}

	.holt-nav-menu {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 20px;
	}

	.holt-nav-menu > li {
		border-bottom: 1px solid #e7e7e7;
	}

	.holt-nav-menu > li:last-child {
		border-bottom: none;
	}

	.holt-nav-menu > li > a {
		padding: 15px 0;
		font-size: 16px;
	}

	/* Mobile Submenus */
	.holt-nav-menu .sub-menu {
		display: none; /* Completely hide by default */
		position: static;
		transform: none;
		box-shadow: none;
		border-top: none;
		border-left: 3px solid var(--holt-orange-red, #e35030);
		margin-left: 15px;
		margin-top: 0;
		padding: 0;
		list-style: none;
	}

	.holt-nav-menu li.menu-item-has-children.open > .sub-menu {
		display: block; /* Show when parent has .open class */
		padding: 10px 0;
		margin-top: 0;
	}

	/* Create a hover zone for parent items with open submenus */
	.holt-nav-menu li.menu-item-has-children.open {
		padding-bottom: 0;
		margin-bottom: 0;
	}

	.holt-nav-menu .sub-menu a {
		padding: 12px 15px;
		font-size: 15px;
	}

	.holt-nav-menu .sub-menu a:hover {
		padding-left: 20px;
	}

	/* Active menu indicator on mobile */
	.holt-nav-menu > li.current-menu-item > a::after {
		display: none;
	}

	.holt-nav-menu > li.current-menu-item > a {
		border-left: 3px solid var(--holt-orange-red, #e35030);
		padding-left: 10px;
	}

	/* Hide ALL submenu indicators and pseudo-elements on mobile */
	.holt-nav-menu .menu-item-has-children > a::after,
	.holt-nav-menu .menu-item-has-children > a::before,
	.holt-nav-menu .menu-item::after,
	.holt-nav-menu .menu-item::before,
	.holt-nav-menu li::after,
	.holt-nav-menu li::before,
	.holt-nav-menu .ast-menu-toggle,
	.holt-nav-menu .submenu-with-border::before,
	.holt-nav-menu .submenu-with-border::after,
	.holt-main-navigation .menu-item-has-children > a::after,
	.holt-main-navigation .menu-item-has-children > a::before,
	.holt-main-navigation .menu-item::after,
	.holt-main-navigation .menu-item::before,
	.holt-main-navigation li::after,
	.holt-main-navigation li::before {
		display: none !important;
		content: none !important;
	}

	/* Remove any default submenu toggle buttons */
	.holt-main-navigation .ast-menu-toggle,
	.holt-main-navigation button.ast-menu-toggle {
		display: none !important;
	}
}

/* ============================================
   CONTENT WIDTH CONSTRAINTS
   ============================================ */

/* Main content container max width */
.site-content,
#content {
	margin-left: auto;
	margin-right: auto;
}

/* Ensure full-width sections still work if needed */
.alignfull {
	width: 100% !important;
	max-width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

/* Wide alignment */
.alignwide {
	max-width: 1240px;
	margin-left: auto;
	margin-right: auto;
}

/* ============================================
   CONTENT STYLING
   ============================================ */

/* Override Astra's narrow container width */
:root {
	--ast-narrow-container-width: 100% !important;
	--ast-content-width-size: 100% !important;
}

/* Force full-width content area */
.ast-container,
.site-content .ast-container,
.ast-narrow-container,
.ast-desktop .ast-container--narrow {
	max-width: 100% !important;
	width: 100%;
}

/* Ensure content is left-aligned, not centered */
.entry-content,
.ast-container,
article,
.site-main {
	text-align: left !important;
}

/* Override Astra's narrow container */
.ast-separate-container #primary,
.ast-separate-container #secondary {
	margin: 0;
}

.ast-separate-container .site-main > .ast-container {
	max-width: 100%;
}

/* Add proper spacing for page content */
.entry-content {
	padding: 0;
	max-width: 100% !important;
	margin-left: auto !important;
	margin-right: auto !important;
}

/* Fix for plain container layout */
.ast-plain-container #primary {
	max-width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
}

.ast-plain-container .site-main {
	max-width: 100% !important;
	margin: 0 !important;
}

/* Override Astra's block layout centering */
.entry-content[data-ast-blocks-layout] > * {
	max-width: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

/* Page titles */
.entry-header .entry-title {
	margin-bottom: 30px;
	text-align: left !important;
}

/* Paragraph spacing */
.entry-content p {
	margin-bottom: 1.5em;
	line-height: 1.7;
	text-align: left !important;
}

/* Headings spacing */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
	margin-top: 1em;
	margin-bottom: 0.75em;
	text-align: left !important;
}

/* Reduce spacing when headings follow each other */
.entry-content h1 + h2,
.entry-content h1 + h3,
.entry-content h1 + h4,
.entry-content h2 + h3,
.entry-content h2 + h4,
.entry-content h3 + h4 {
	margin-top: 0.5em;
}

/* ============================================
   CONTENT WIDTH FIX (OVERRIDE)
   ============================================ */

/* ============================================
   PAGE TITLE - FULL WIDTH WITH GRADIENT
   ============================================ */

/* Remove default title styles and spacing */
.entry-header {
	margin: 0 !important;
	padding: 0 !important;
	max-width: none !important;
}

/* Full-width background gradient for page titles */
.entry-header .entry-title {
	/* Break out of content container to go full width */
	width: 100%;
	max-width: 100%;
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50% !important;
	margin-right: -50% !important;
	margin-top: 0 !important;
	margin-bottom: 0 !important;

	/* Gradient background - Softer Holt brand colors */
	background: linear-gradient(135deg, #f8f0ec 0%, #e8ddd7 100%);

	/* Text styling */
	color: #2C2C2C !important;
	padding: 35px 20px;
	text-align: left !important;

	/* Typography */
	font-family: var(--font-heading, 'Merriweather', serif);
	font-size: 42px;
	font-weight: 700;
	line-height: 1.3;
	box-sizing: border-box;
}

/* Center content within title on larger screens */
@media (min-width: 1440px) {
	.entry-header .entry-title {
		padding-left: max(20px, calc((100% - 1440px) / 2 + 20px));
		padding-right: max(20px, calc((100% - 1440px) / 2 + 20px));
	}
}

/* Fallback for smaller screens */
@media (max-width: 1480px) {
	.entry-header .entry-title {
		padding-left: 20px;
		padding-right: 20px;
	}
}

/* Responsive font sizes for title */
@media (max-width: 921px) {
	.entry-header .entry-title {
		font-size: 36px;
		padding: 50px 20px;
	}
}

@media (max-width: 768px) {
	.entry-header .entry-title {
		font-size: 30px;
		padding: 40px 20px;
	}
}

/* Ensure content starts fresh after full-width title */

/* ============================================
   CI HERO BLOCK INTEGRATION
   ============================================ */

/* Full-width blocks handled by plugin CSS */

/* ============================================
   FOOTER STYLES - Modern Design
   ============================================ */

.holt-site-footer {
	background: linear-gradient(135deg, #1a1a1a 0%, #2C2C2C 100%);
	color: var(--holt-white, #FFFFFF);
	padding: 0;
	margin-top: 80px;
	position: relative;
	overflow: hidden;
}

/* Decorative accent line at top */
.holt-site-footer::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg,
		var(--holt-orange-red, #e35030) 0%,
		var(--holt-cyan, #5bc7d6) 50%,
		var(--holt-teal, #2e9ca5) 100%);
}

.holt-footer-container {
	--content-max-width: 1400px;
	--content-padding: 20px;

	display: grid;
	grid-template-columns:
		[full-start] var(--content-padding)
		[content-start] minmax(0, var(--content-max-width)) [content-end]
		var(--content-padding) [full-end];
	justify-content: center;
}

.holt-footer-container > * {
	grid-column: content;
}

/* Footer Main Section */
.holt-footer-main {
	padding: 70px 0 50px;
}

.holt-footer-widgets {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 50px;
}

@media (max-width: 768px) {
	.holt-footer-widgets {
		grid-template-columns: 1fr;
		gap: 40px;
	}
}

.holt-footer-widget {
	color: var(--holt-white, #FFFFFF);
}

.holt-footer-widget-title {
	color: var(--holt-white, #FFFFFF);
	font-family: var(--font-heading, 'Merriweather', serif);
	font-size: 22px;
	font-weight: 700;
	margin-bottom: 25px;
	padding-bottom: 0;
	border-bottom: none;
	display: block;
	position: relative;
	letter-spacing: -0.5px;
}

/* Modern underline accent */
.holt-footer-widget-title::after {
	content: '';
	position: absolute;
	bottom: -8px;
	left: 0;
	width: 40px;
	height: 3px;
	background: var(--holt-orange-red, #e35030);
	border-radius: 2px;
}

.holt-footer-widget p {
	line-height: 1.8;
	margin-bottom: 15px;
	color: rgba(255, 255, 255, 0.75);
	font-size: 15px;
}

.holt-footer-widget a {
	color: var(--holt-cyan, #5bc7d6);
	text-decoration: none;
	transition: all 0.25s ease;
	position: relative;
}

.holt-footer-widget a:hover {
	color: var(--holt-white, #FFFFFF);
}

/* Footer Navigation Menu */
.holt-footer-nav-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.holt-footer-nav-menu li {
	margin-bottom: 12px;
}

.holt-footer-nav-menu a {
	color: rgba(255, 255, 255, 0.75);
	text-decoration: none;
	transition: all 0.25s ease;
	display: inline-flex;
	align-items: center;
	padding: 6px 0;
	font-size: 15px;
	position: relative;
}

/* Modern hover effect with sliding underline */
.holt-footer-nav-menu a::before {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background: var(--holt-orange-red, #e35030);
	transition: width 0.3s ease;
}

.holt-footer-nav-menu a:hover {
	color: var(--holt-white, #FFFFFF);
	padding-left: 0;
}

.holt-footer-nav-menu a:hover::before {
	width: 100%;
}

/* Footer Bottom Section */
.holt-footer-bottom {
	background: rgba(0, 0, 0, 0.3);
	padding: 25px 0;
	grid-column: full;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.holt-footer-bottom-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 20px;
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 20px;
}

@media (max-width: 768px) {
	.holt-footer-bottom-inner {
		flex-direction: column;
		text-align: center;
	}
}

.holt-footer-copyright p {
	margin: 0;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.65);
}

.holt-footer-copyright a {
	color: var(--holt-cyan, #5bc7d6);
	text-decoration: none;
	font-weight: 500;
	transition: color 0.25s ease;
}

.holt-footer-copyright a:hover {
	color: var(--holt-white, #FFFFFF);
}

/* Footer Social Icons - Modern Design */
.holt-footer-social {
	display: flex;
	gap: 12px;
	align-items: center;
}

.holt-footer-social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	background: rgba(255, 255, 255, 0.08);
	border-radius: 12px;
	color: var(--holt-white, #FFFFFF);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	overflow: hidden;
}

/* Gradient hover effect */
.holt-footer-social a::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, var(--holt-orange-red, #e35030), var(--holt-cyan, #5bc7d6));
	opacity: 0;
	transition: opacity 0.3s ease;
}

.holt-footer-social a:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 20px rgba(227, 80, 48, 0.3);
}

.holt-footer-social a:hover::before {
	opacity: 1;
}

.holt-footer-social svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
	position: relative;
	z-index: 1;
	transition: transform 0.3s ease;
}

.holt-footer-social a:hover svg {
	transform: scale(1.1);
}

/* ============================================
   CONTENT BUTTONS - MATCH MODERN HEADER CTA STYLE
   ============================================ */

/* Style content buttons to match modern header CTA */
.entry-content .wp-block-button__link {
	padding: 12px 28px !important;
	border-radius: 100px !important;
	font-family: var(--font-body, 'Inter', sans-serif) !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	letter-spacing: 0.3px !important;
	text-decoration: none !important;
	transition: all 0.2s ease !important;
	box-shadow: 0 2px 8px rgba(0, 110, 164, 0.2) !important;
	white-space: nowrap;
	line-height: 1.4;
	display: inline-block;
}

/* Hover effect matching modern header CTA button */
.entry-content .wp-block-button__link:hover,
.entry-content .wp-block-button__link:focus {
	transform: translateY(-3px) !important;
	box-shadow: 0 6px 16px rgba(0, 110, 164, 0.35) !important;
	text-decoration: none !important;
}

/* ============================================
   HEADER SEARCH ICON STYLING
   ============================================ */

/* Header Search Container */
.holt-header-search {
	position: relative;
	display: flex;
	align-items: center;
}

/* Hide search on mobile and tablet */
@media (max-width: 921px) {
	.holt-header-search {
		display: none !important;
	}
}

/* Search Toggle Button */
.holt-search-toggle {
	background: none;
	border: none;
	padding: 8px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--holt-charcoal, #2C2C2C);
	transition: all 0.2s ease;
	border-radius: 8px;
}

.holt-search-toggle:hover {
	color: var(--holt-navy, #006ea4);
	background-color: rgba(0, 110, 164, 0.08);
}

.holt-search-toggle:focus-visible {
	outline: 2px solid var(--holt-orange-red, #e35030);
	outline-offset: 2px;
}

.holt-search-icon {
	width: 20px;
	height: 20px;
	stroke: currentColor;
	fill: none;
}

/* Search Form Container - Expandable */
.holt-search-form-container {
	position: absolute;
	right: 0;
	top: 100%;
	margin-top: 12px;
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
	padding: 12px;
	min-width: 320px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	z-index: 1000;
	display: none;
}

.holt-search-form-container.active {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	display: block;
}

/* Modern dropdown arrow */
.holt-search-form-container::before {
	content: '';
	position: absolute;
	top: -6px;
	right: 16px;
	width: 12px;
	height: 12px;
	background: #ffffff;
	transform: rotate(45deg);
	box-shadow: -2px -2px 4px rgba(0, 0, 0, 0.05);
}

/* Search Form */
.holt-search-form {
	display: flex;
	gap: 8px;
	align-items: center;
	position: relative;
}

/* Search Field */
.holt-search-field {
	flex: 1;
	padding: 10px 16px;
	border: 2px solid #e7e7e7;
	border-radius: 8px;
	font-family: var(--font-body, 'Inter', sans-serif);
	font-size: 15px;
	color: var(--holt-charcoal, #2C2C2C);
	transition: all 0.2s ease;
	background-color: #ffffff;
}

.holt-search-field:focus {
	outline: none;
	border-color: var(--holt-navy, #006ea4);
	box-shadow: 0 0 0 3px rgba(0, 110, 164, 0.1);
}

.holt-search-field::placeholder {
	color: #999;
}

/* Search Submit Button */
.holt-search-submit {
	background-color: var(--holt-navy, #006ea4);
	border: none;
	padding: 10px 12px;
	border-radius: 8px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
	transition: all 0.2s ease;
	flex-shrink: 0;
}

.holt-search-submit:hover {
	background-color: var(--holt-teal, #007086);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0, 110, 164, 0.3);
}

.holt-search-submit:focus-visible {
	outline: 2px solid var(--holt-orange-red, #e35030);
	outline-offset: 2px;
}

.holt-search-submit svg {
	width: 16px;
	height: 16px;
	stroke: currentColor;
	fill: none;
}

/* Modern Header: Adjust search positioning */
.holt-modern-header .holt-search-form-container {
	border-radius: 16px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
	padding: 16px;
}

.holt-modern-header .holt-search-field {
	border-radius: 12px;
	padding: 12px 18px;
}

.holt-modern-header .holt-search-submit {
	border-radius: 12px;
	padding: 12px 14px;
}

/* Hide Astra's built-in search (we use custom header.php search instead) */
.ast-search-menu-icon,
.ast-header-search,
#ast-desktop-header .ast-search-menu-icon,
.ast-builder-layout-element[data-section="section-header-search-bar"] {
	display: none !important;
}

/* Hide search when disabled via customizer */
body.holt-header-search-disabled .holt-header-search {
	display: none !important;
}

/* ============================================
   CONTAINER WIDTH & SEARCH PAGE FIXES
   ============================================ */

/* Override Astra's max-width to respect 1440px container setting */
@media (min-width: 922px) {
	.ast-container {
		max-width: 1440px !important;
	}
}

/* Fix search results page - constrain grid layout to container */
.search .ast-blog-layout-4-grid,
.search .ast-blog-layout-4-grid .ast-row {
	max-width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

/* Ensure search results respect container width */
.search #primary {
	max-width: 100%;
}

.search .site-content .ast-container {
	max-width: 1440px;
	margin-left: auto;
	margin-right: auto;
}
