/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

/*
 * Homepage layout fixes
 * - Keep the Home title banner, but tighten spacing above/below it
 * - Ensure the first section starts flush under the header/top bar
 */
body.home .wd-page-title.page-title {
	margin-bottom: 0 !important;
	padding-top: 8px !important;
	padding-bottom: 8px !important;
}

body.home .wd-page-title.page-title .entry-title {
	margin: 0 !important;
}

body.home .wd-page-content.main-page-wrapper {
	padding-top: 0 !important;
}

body.home .elementor-widget-slider_revolution {
	margin-top: 0 !important;
}

/*
 * If SR7 hasn't initialized yet, the module can momentarily have 0 height,
 * letting the next Elementor container overlap it. Reserve a safe min-height.
 */
body.home #SR7_3_1,
body.home #SR7_3_1 sr7-adjuster {
	min-height: 560px !important;
}

@media (max-width: 1024px) {
	body.home #SR7_3_1,
	body.home #SR7_3_1 sr7-adjuster {
		min-height: 299px !important;
	}
}

@media (max-width: 767px) {
	body.home #SR7_3_1,
	body.home #SR7_3_1 sr7-adjuster {
		min-height: 227px !important;
	}
}

@media (max-width: 479px) {
	body.home #SR7_3_1,
	body.home #SR7_3_1 sr7-adjuster {
		min-height: 140px !important;
	}
}

/* The first container after the slider was pulled upward (overlapping the slider) */
body.home .wp-block-themepunch-revslider {
	margin-bottom: 0 !important;
}

body.home .elementor-element-86bf7ab {
	margin-top: 0 !important;
	transform: none !important;
}

/* Prevent slider overlap with the next section/widget bar */
body.home .wp-block-themepunch-revslider,
body.home sr7-module {
	display: block;
}

body.home .wp-block-themepunch-revslider {
	position: relative;
	z-index: 1;
}
