/* ============================================================
   CRITICAL FIX: Logo Overlap
   Theme sets #Top_bar to position:absolute, making header
   float over content. This file loads AFTER theme CSS to
   ensure these overrides take effect.
   ============================================================ */

/* Force header into normal document flow */
#Top_bar {
	position: relative !important;
	top: 0 !important;
	z-index: 30;
	background: none !important;
	border: none !important;
	box-shadow: none !important;
}

/* Make header area match the dark section with pattern */
#Header,
#Header_wrapper {
	background-color: #1e232b !important;
	background-image: url(../content/church3/images/church3-section-bg3.png) !important;
	background-repeat: repeat !important;
	background-position: center top !important;
	border: none !important;
	box-shadow: none !important;
}

/* Override theme's min-height for non-slider pages */
#Header {
	min-height: auto !important;
}

body:not(.template-slider) #Header {
	min-height: auto !important;
}

#Header_wrapper {
	position: relative !important;
}

/* Remove any line/border between header and content */
#Top_bar .top_bar_right:before {
	display: none !important;
}

.header-split #Top_bar .top_bar_right:before {
	display: none !important;
}

/* Override church3.css logo sizing - make logo BIGGER */
#Top_bar #logo,
.header-fixed #Top_bar #logo,
.header-plain #Top_bar #logo,
.header-transparent #Top_bar #logo {
	height: auto !important;
	line-height: normal !important;
	padding: 25px 0 !important;
}

.logo-overflow #Top_bar:not(.is-sticky) .logo {
	height: auto !important;
}

#Top_bar #logo img {
	max-height: 160px !important;
}

#Top_bar #logo img.logo-main {
	max-height: 160px !important;
}

/* Remove the content padding-top that theme adds */
body:not(.template-slider) #Content {
	padding-top: 0 !important;
}

/* Eliminate any gap/line between header and content */
#Content {
	border-top: none !important;
	margin-top: 0 !important;
}

#Header_wrapper,
#Header {
	margin-bottom: 0 !important;
	padding-bottom: 0 !important;
	border-bottom: none !important;
}

#Top_bar {
	margin-bottom: 0 !important;
	padding-bottom: 0 !important;
	border-bottom: none !important;
}

/* General */
body {
	min-width: auto !important;
	overflow-x: hidden;
}

#Wrapper {
	overflow-x: hidden;
}

img {
	max-width: 100% !important;
	height: auto !important;
}

/* Center logo on all screen sizes */
#Top_bar .top_bar_left {
	text-align: center !important;
	float: none !important;
	width: 100% !important;
}

#Top_bar .logo {
	float: none !important;
	display: block !important;
	text-align: center !important;
	margin: 0 auto !important;
}

#Top_bar #logo {
	display: inline-block !important;
	float: none !important;
	text-align: center !important;
}

/* Button - never full width, always auto-width centered */
.button_align,
.align_center {
	text-align: center !important;
}

.button.has-icon {
	display: inline-block !important;
	width: auto !important;
}

/* Fix button hover: gold text on gold bg = invisible. Change text to dark on hover */
.button-custom .button_theme .button_label {
	color: #deb005 !important;
}

.button-custom .button_theme:hover .button_label {
	color: #1e232b !important;
}

.button-custom .button_theme:hover .button_icon i {
	color: #1e232b !important;
}


/* ============================================================
   Mobile (up to 768px)
   ============================================================ */
@media (max-width: 768px) {
	body {
		font-size: 14px !important;
		line-height: 20px !important;
	}

	#Wrapper {
		width: 100% !important;
	}

	.container, .section_wrapper {
		width: 100% !important;
		padding: 0 15px !important;
		margin: 0 !important;
	}

	.section {
		padding: 50px 0 !important;
	}

	h1, h2 {
		font-size: 24px !important;
		line-height: 30px !important;
	}

	h3 {
		font-size: 20px !important;
		line-height: 26px !important;
	}

	h4 {
		font-size: 16px !important;
		line-height: 22px !important;
	}

	.col-md-4, .col-md-8 {
		width: 100% !important;
		float: none !important;
		margin-bottom: 25px !important;
	}

	.button {
		padding: 12px 24px !important;
		font-size: 14px !important;
		width: auto !important;
		display: inline-block !important;
	}

	#Top_bar #logo img,
	#Top_bar #logo img.logo-main {
		max-height: 110px !important;
	}

	/* Keep menu wrapper from pushing layout */
	#Top_bar .menu_wrapper {
		display: none !important;
	}
}


/* ============================================================
   Small Mobile (up to 480px)
   ============================================================ */
@media (max-width: 480px) {
	body {
		font-size: 13px !important;
	}

	.section {
		padding: 35px 0 !important;
	}

	h1, h2 {
		font-size: 20px !important;
		line-height: 26px !important;
	}

	h4 {
		font-size: 14px !important;
		line-height: 18px !important;
	}

	p {
		font-size: 13px !important;
	}

	#Top_bar #logo img,
	#Top_bar #logo img.logo-main {
		max-height: 90px !important;
	}
}


/* ============================================================
   Tablet / iPad (769px to 1024px)
   ============================================================ */
@media (min-width: 769px) and (max-width: 1024px) {
	body {
		min-width: auto !important;
	}

	.container, .section_wrapper {
		width: 100% !important;
		padding: 0 30px !important;
	}

	.section {
		padding: 70px 0 !important;
	}

	h1, h2 {
		font-size: 36px !important;
		line-height: 42px !important;
	}

	h3 {
		font-size: 28px !important;
		line-height: 34px !important;
	}

	h4 {
		font-size: 20px !important;
		line-height: 26px !important;
	}

	#Top_bar #logo img,
	#Top_bar #logo img.logo-main {
		max-height: 130px !important;
	}
}