/*
Theme Name: Hello Blaer Child
Theme URI: https://dev.blaerlaw.co.il/
Description: Child of Hello Elementor for blaerlaw.co.il DEV — Divi migration compat.
Author: Studio UP / Blaer
Template: hello-elementor
Version: 1.0.6
Text Domain: hello-blaer-child
*/

/* === Global (ported essentials from Divi-child) === */
html {
	direction: rtl;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
body, input, textarea, select {
	font-family: "Heebo", sans-serif !important;
}

a {
	font-weight: normal;
	color: #ff0000;
}

/*
 * Elementor CTA buttons (red): white label/icon only when not hovered.
 * :hover/:focus left to Elementor (white / blue / etc. per widget).
 */
a.elementor-button:not(:hover):not(:focus),
a.elementor-button:not(:hover):not(:focus) .elementor-button-content-wrapper,
a.elementor-button:not(:hover):not(:focus) .elementor-button-text,
a.elementor-button:not(:hover):not(:focus) .elementor-button-icon,
a.elementor-button:not(:hover):not(:focus) .elementor-button-icon i {
	color: #fff;
}

/* Article / Divi-island links — prod-like blue, red on hover */
.entry-content a,
.page-content a,
.et_pb_text a,
.et_pb_toggle_content a {
	font-weight: bold;
	color: #0b527d;
}

.entry-content a:hover,
.entry-content a:focus,
.page-content a:hover,
.page-content a:focus,
.et_pb_text a:hover,
.et_pb_text a:focus,
.et_pb_toggle_content a:hover,
.et_pb_toggle_content a:focus {
	color: #ff0000;
}

/* Accordion «frames»: links not bold (body/article links stay bold). */
.et_pb_accordion .et_pb_toggle_content a {
	font-weight: normal;
}

.entry-content ul {
	padding: 0 1em 1em 0;
}

.article_page_header {
	background: url("images/back_vnutr.jpg") center center no-repeat;
	height: 63px;
	width: 100%;
}

/* Hide Hello page-header on Elementor-built pages (filter backup). */
.elementor-page .page-header {
	display: none;
}

/*
 * Classic posts/pages: Elementor kit leaks white + huge heading sizes.
 * Scope avoids dark Elementor sections that intentionally use white text.
 */
body:not(.elementor-page) .site-main h1,
body:not(.elementor-page) .site-main h2,
body:not(.elementor-page) .site-main h3,
body:not(.elementor-page) .site-main h4,
body:not(.elementor-page) .site-main h5,
body:not(.elementor-page) .site-main h6,
body.single-post .entry-content h1,
body.single-post .entry-content h2,
body.single-post .entry-content h3,
body.single-post .entry-content h4,
body.single-post .entry-content h5,
body.single-post .entry-content h6,
body.single-post .page-content h1,
body.single-post .page-content h2,
body.single-post .page-content h3,
body.single-post .page-content h4,
body.single-post .page-content h5,
body.single-post .page-content h6,
body:not(.elementor-page) h1.entry-title,
body.single-post h1.entry-title {
	color: #000 !important;
}

body:not(.elementor-page) h1.entry-title,
body.single-post h1.entry-title {
	font-size: 24px !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
}

body:not(.elementor-page) .site-main h2,
body.single-post .entry-content h2,
body.single-post .page-content h2 {
	font-size: 1.5rem !important;
	font-weight: 700 !important;
	line-height: 1.35 !important;
}

body:not(.elementor-page) .site-main h3,
body:not(.elementor-page) .site-main h4,
body:not(.elementor-page) .site-main h5,
body:not(.elementor-page) .site-main h6,
body.single-post .entry-content h3,
body.single-post .entry-content h4,
body.single-post .entry-content h5,
body.single-post .entry-content h6,
body.single-post .page-content h3,
body.single-post .page-content h4,
body.single-post .page-content h5,
body.single-post .page-content h6 {
	font-size: 1.25rem !important;
	font-weight: 700 !important;
	line-height: 1.35 !important;
}

/*
 * Divi shortcode islands inside Elementor pages (immigration etc.).
 * Kit still paints plain h2 white/64px; scope to .et_pb_* so Elementor
 * hero headings (.elementor-heading-title) stay untouched.
 */
.et_pb_text h1,
.et_pb_text h2,
.et_pb_text h3,
.et_pb_text h4,
.et_pb_text h5,
.et_pb_text h6,
.et_pb_column > h1,
.et_pb_column > h2,
.et_pb_column > h3,
.et_pb_column > h4,
.et_pb_column > h5,
.et_pb_column > h6 {
	color: #000 !important;
	font-weight: 700 !important;
	line-height: 1.35 !important;
}

.et_pb_text h1,
.et_pb_column > h1 {
	font-size: 24px !important;
}

.et_pb_text h2,
.et_pb_column > h2 {
	font-size: 1.5rem !important;
}

.et_pb_text h3,
.et_pb_text h4,
.et_pb_text h5,
.et_pb_text h6,
.et_pb_column > h3,
.et_pb_column > h4,
.et_pb_column > h5,
.et_pb_column > h6 {
	font-size: 1.25rem !important;
}

.full_width_img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
}

.center_video {
	display: block;
	margin: 1em auto;
	max-width: 100%;
}

.hide_mobile {
	display: block;
}

.mobile_only {
	display: none;
}

@media all and (max-width: 479px) {
	.hide_mobile {
		display: none;
	}

	.mobile_only {
		display: block !important;
	}
}

/* === Divi HTML islands — layout compat (no Divi parent) === */
.et_pb_section {
	position: relative;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.et_pb_section_regular {
	padding: 54px 0;
}

.et_pb_row {
	position: relative;
	width: 100%;
	max-width: 1080px;
	margin: 0 auto;
	padding: 0 15px;
}

.et_pb_row:after {
	content: "";
	display: table;
	clear: both;
}

.et_pb_column {
	float: right;
	min-height: 1px;
	background-position: center;
	background-size: cover;
	position: relative;
	box-sizing: border-box;
}

.et_pb_column_empty {
	min-height: 0;
}

/* gutters3-like widths (Divi 2.x) */
.et_pb_column_4_4 {
	width: 100%;
}

/* RTL float:right — gutter between halves via first-child margin-left. */
.et_pb_column_1_2 {
	width: 47.25%;
	margin-left: 0;
}

.et_pb_column_1_2:first-child {
	margin-left: 5.5%;
}

.et_pb_column_1_4 {
	width: 22.5%;
	margin-left: 3%;
}

.et_pb_column_1_4:last-child {
	margin-left: 0;
}

.et_pb_module {
	margin-bottom: 30px;
}

.et_pb_text {
	word-wrap: break-word;
}

.et_pb_text_align_right {
	text-align: right;
}

.et_pb_text p:last-of-type {
	padding-bottom: 1em;
}

.et_pb_text img.aligncenter,
.et_pb_text .aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

/* Accordion / toggle (static HTML leftovers) */
.et_pb_accordion .et_pb_toggle {
	margin-bottom: 10px;
	border: 1px solid #e2e2e2;
}

.et_pb_toggle {
	padding: 20px;
	background: #f4f4f4;
}

.et_pb_toggle_open {
	background: #fff;
}

.et_pb_toggle .et_pb_toggle_title {
	position: relative;
	margin: 0;
	padding: 0 0 0 30px;
	cursor: pointer;
	font-size: 16px;
	font-weight: 700;
}

.et_pb_toggle_close .et_pb_toggle_content {
	display: none;
}

.et_pb_toggle_open .et_pb_toggle_content {
	display: block;
	padding-top: 15px;
}

.et_pb_toggle_content ul {
	margin: 0;
	padding: 0 1em 0 0;
	list-style: disc;
}

/* FAQ shortcode from old Divi-child */
.togglethis {
	position: relative;
	margin-bottom: 10px;
}

.togglethis .trigger {
	cursor: pointer;
}

.toggle_container {
	display: none;
}

/* Immigration / practice icons row */
#home-contact-container .et_pb_column_1_4 {
	text-align: center;
}

@media all and (min-width: 981px) {
	#home-contact-container .et_pb_column_1_4 {
		margin-right: 0;
		width: 25%;
		margin-left: 0;
	}
}

@media all and (max-width: 980px) {
	.et_pb_column_1_4,
	.et_pb_column_1_2 {
		width: 100%;
		margin-left: 0;
		float: none;
	}

	.et_pb_section_regular {
		padding: 30px 0;
	}
}

@media all and (max-width: 767px) {
	.et_pb_text_align_right {
		text-align: right;
	}
}

@media all and (max-width: 479px) {
	.et_pb_section:first-child {
		padding-top: 15px !important;
	}
}

/* Legacy Divi sliders — hidden for PROD parity (PROD collapses / no et_pb_slider). */
.et_pb_slider_shim,
.et_pb_slider.et_pb_module {
	display: none !important;
	height: 0 !important;
	min-height: 0 !important;
	overflow: hidden !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* LTR helpers (EN pages) */
.eng,
html[lang="en-US"] .entry-content {
	direction: ltr;
}

.eng .et_pb_column {
	float: left;
}

.eng .et_pb_column_1_4 {
	margin-left: 0;
	margin-right: 3%;
}

.eng .et_pb_column_1_4:last-child {
	margin-right: 0;
}

.eng .et_pb_text_align_right {
	text-align: left;
}
