/**
 * Divi 4 markup/layout shims so the Divi 3 child design keeps working.
 * Parent visual CSS comes from Divi 4 style-static.min.css.
 */

/*
 * WPDM 3.3 replaced Divi-3-era Simple/Default page templates with a modern
 * editorial layout. Child theme restores the old markup; these bits recreate
 * Bootstrap 3 list/table details that front.min.css no longer provides.
 */
/* BS3 list-group spacing (front.min.css no longer ships these). */
body.single-wpdmpro .w3eden .list-group {
	padding-left: 0;
	margin-bottom: 20px;
}

body.single-wpdmpro .w3eden .list-group-item {
	position: relative;
	display: block;
	padding: 10px 15px;
	margin: 0;
	line-height: 25px;
	color: #333;
	background-color: #fff;
	border: 1px solid #ddd;
}

/* front.min keeps full borders + margin:0 → 2px seams; drop shared top edge. */
body.single-wpdmpro .w3eden .list-group-item + .list-group-item {
	border-top: 0;
}

body.single-wpdmpro .w3eden .list-group-item:first-child {
	border-top-left-radius: 4px;
	border-top-right-radius: 4px;
}

body.single-wpdmpro .w3eden .list-group-item:last-child {
	border-bottom-left-radius: 4px;
	border-bottom-right-radius: 4px;
}

/* BS3 badge (WPDM front CSS now uses BS4/5 badge metrics). */
body.single-wpdmpro .w3eden .list-group-item > .badge {
	display: inline-block;
	float: right;
	min-width: 10px;
	padding: 0 10px;
	font-size: 12px;
	font-weight: 700;
	line-height: 25px;
	color: #fff;
	text-align: center;
	white-space: nowrap;
	vertical-align: middle;
	background-color: #30bbea;
	border-radius: 2px;
}

/*
 * WPDM 3.3 injects .btn.btn-primary on download links (Default + Simple).
 * Live Divi 3 used a plain text link — strip the button chrome everywhere,
 * not only inside .list-group-item (Default template link sits under the table).
 */
body.single-wpdmpro .w3eden a.wpdm-download-link,
body.single-wpdmpro .w3eden a.wpdm-download-link.btn,
body.single-wpdmpro .w3eden a.wpdm-download-link.btn-primary {
	color: #337ab7 !important;
	text-decoration: none !important;
	background: transparent !important;
	border: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	display: inline !important;
	font-weight: 400 !important;
	line-height: inherit !important;
	box-shadow: none !important;
	border-radius: 0 !important;
	min-height: 0 !important;
	align-items: unset !important;
}

body.single-wpdmpro .w3eden .text-right {
	text-align: right;
}

body.single-wpdmpro .w3eden .table {
	width: 100%;
	max-width: 100%;
	margin-bottom: 20px;
	border-collapse: collapse;
}

body.single-wpdmpro .w3eden .table > tbody > tr > td,
body.single-wpdmpro .w3eden .table > tbody > tr > th {
	padding: 12px 8px;
	line-height: 1.42857143;
	vertical-align: top;
	border-top: 1px solid #ddd;
	color: #555;
	background: transparent;
	font-weight: 400;
}

/*
 * WPDM front-dark.min.css sets .w3eden to near-white text. On the cream
 * page that makes [description] a ghost line under the box; live is navy.
 */
body.single-wpdmpro .w3eden,
body.single-wpdmpro .w3eden p {
	color: #253350;
}

/* Divi 3 content p was ~10px; WPDM/BS defaults push 1rem (16px). */
body.single-wpdmpro .w3eden p {
	margin-bottom: 10px;
}

body.single-wpdmpro .w3eden .table > tbody > tr > th {
	font-weight: 700;
}

/*
 * Stripes + no row hover. WPDM front-dark.min.css (prefers-color-scheme:
 * dark) overrides odd rows and adds slate hover — live Divi 3 had neither.
 */
body.single-wpdmpro .w3eden .table-striped > tbody > tr:nth-of-type(odd),
body.single-wpdmpro .w3eden .table-striped > tbody > tr:nth-of-type(odd):hover {
	background-color: #f9f9f9 !important;
}

body.single-wpdmpro .w3eden .table-striped > tbody > tr:nth-of-type(even),
body.single-wpdmpro .w3eden .table-striped > tbody > tr:nth-of-type(even):hover {
	background-color: #fff !important;
}

body.single-wpdmpro .w3eden .table-hover > tbody > tr:hover > * {
	background-color: transparent !important;
}

/*
 * CPT archives (e.g. /bioprofile/cohort/): Divi 4 loads style-static-cpt.min.css
 * and scopes `.et_pb_post` spacing/type to `.et-db #et-boc .et-l`. Classic
 * archive markup has no #et-boc, so listing gaps collapse (5 posts × 60px =
 * 300px shorter) and phone titles stay 26px instead of Divi 3's 16px.
 */
/* Archives only — do not inflate single CPT/download pages (live single = 27px). */
body.et_divi_theme.archive #left-area .et_pb_post {
	margin-bottom: 60px;
}

@media (max-width: 980px) {
	body.et_divi_theme.archive #left-area .et_pb_post {
		margin-bottom: 42px;
	}
}

@media (max-width: 767px) {
	body.et_divi_theme.archive #left-area .et_pb_post h2 {
		font-size: 18px;
	}
}

@media (max-width: 479px) {
	body.et_divi_theme.archive #left-area .et_pb_post h2 {
		font-size: 16px;
		padding-bottom: 0;
	}
}

/* Divi 4 wraps CTA/text content in an extra div; keep Divi 3 selector depth. */
.et_pb_promo_description > div,
.et_pb_text_inner > div:only-child {
	display: contents;
}

/*
 * Restore Divi 3 float rows so overlapping home-boxes / specialty columns
 * still sit as designed. Do NOT force float on equal-columns / SBS rows —
 * Divi 3 kept those as flex so image + text columns share height (Take
 * Action / Connect / About side-by-side sections). Forcing float made the
 * text column ~270px taller than the image and inflated sections ~100px.
 */
@media (min-width: 981px) {
	body.et_divi_theme #page-container .et_pb_row:not(.et_pb_equal_columns) {
		display: block;
	}

	body.et_divi_theme #page-container .et_pb_row:not(.et_pb_equal_columns)::after {
		content: "";
		display: table;
		clear: both;
	}

	body.et_divi_theme #page-container .et_pb_row:not(.et_pb_equal_columns) > .et_pb_column {
		float: left;
		display: block;
	}

	body.et_divi_theme #page-container .et_pb_row:not(.et_pb_equal_columns) > .et_pb_column.et-last-child,
	body.et_divi_theme #page-container .et_pb_row:not(.et_pb_equal_columns) > .et_pb_column.last_in_row {
		margin-right: 0 !important;
	}

	/* Keep Divi 4 equal-columns flex (matches Divi 3 live SBS rows). */
	body.et_divi_theme #page-container .et_pb_row.et_pb_equal_columns {
		display: flex;
	}

	body.et_divi_theme #page-container .et_pb_row.et_pb_equal_columns > .et_pb_column {
		float: none;
		display: flex;
		flex-direction: column;
	}
}

/*
 * ≤980: Divi 3 stacks equal-columns. Divi 4 keeps flex-direction:row, so
 * SBS image+text sit side-by-side in a squeezed row (~600px short).
 */
@media (max-width: 980px) {
	body.et_divi_theme #page-container .et_pb_row.et_pb_equal_columns {
		display: block;
	}

	body.et_divi_theme #page-container .et_pb_row.et_pb_equal_columns > .et_pb_column {
		float: none;
		display: block;
		width: 100% !important;
		margin-right: 0 !important;
	}
}

/* Divi 4 style-static drops the table layout + 1080 cap Divi 3 used on sliders. */
body.et_divi_theme .et_pb_slides .et_pb_container {
	display: table;
	table-layout: fixed;
	width: 100%;
	max-width: 1080px;
}

body.et_divi_theme .et_pb_slides .et_pb_slider_container_inner {
	display: table-cell;
	width: 100%;
	vertical-align: middle;
}

/*
 * Homepage hero slides: Divi 4 deferred module CSS drops per-slide Knockout
 * type (live inline rules). Mirror live sizes + dan.css breakpoints so our
 * !important does not beat dan max-height/max-width overrides.
 */
body.et_divi_theme #page-container .main-slider .et_pb_slider.et_pb_module .et_pb_slide .et_pb_slide_description .et_pb_slide_content {
	font-family: knockhtf27junban, Helvetica, Arial, Lucida, sans-serif !important;
	text-transform: uppercase !important;
	line-height: 0.8em !important;
}

body.et_divi_theme #page-container .main-slider .et_pb_slider.et_pb_module .et_pb_slide_0 .et_pb_slide_description .et_pb_slide_content,
body.et_divi_theme #page-container .main-slider .et_pb_slider.et_pb_module .et_pb_slide_2 .et_pb_slide_description .et_pb_slide_content {
	font-size: 100px !important;
}

body.et_divi_theme #page-container .main-slider .et_pb_slider.et_pb_module .et_pb_slide_1 .et_pb_slide_description .et_pb_slide_content {
	font-size: 120px !important;
}

/* dan.css: max-height 900 → slide_0 120px; max-width 1020 → all 120px */
@media (max-height: 900px) {
	body.et_divi_theme #page-container .main-slider .et_pb_slider.et_pb_module .et_pb_slide_0 .et_pb_slide_description .et_pb_slide_content {
		font-size: 120px !important;
	}
}

@media (max-width: 1020px) {
	body.et_divi_theme #page-container .main-slider .et_pb_slider.et_pb_module .et_pb_slide .et_pb_slide_description .et_pb_slide_content {
		font-size: 120px !important;
	}
}

@media (max-width: 980px) {
	body.et_divi_theme #page-container .main-slider .et_pb_slider.et_pb_module .et_pb_slide .et_pb_slide_description .et_pb_slide_content {
		font-size: 60px !important;
	}
}

@media (max-width: 480px) {
	body.et_divi_theme #page-container .main-slider .et_pb_slider.et_pb_module .et_pb_slide .et_pb_slide_description .et_pb_slide_content {
		font-size: 40px !important;
	}
}

/* Transparent header: keep logo/nav over the hero like Divi 3. */
body.et_transparent_nav.et_non_fixed_nav #page-container {
	padding-top: 0 !important;
}

/* Extra inner wrapper from Divi 4 should not add CTA padding. */
.et_pb_promo .et_pb_promo_description p {
	padding-bottom: 0;
}

/*
 * Trip intro CTA: Divi 4 module-design drops Divi 3 custom_margin /
 * custom_padding / body font, so the promo sits flat (intro +59–104px)
 * in Open Sans 14px instead of Gotham Book pulled into the header.
 * -100px is desktop; dan.css uses -70px ≤980 and must still win there.
 */
body.et_divi_theme.single #page-container .intro-wrap .et_pb_promo {
	padding-top: 50px !important;
	padding-bottom: 50px !important;
	font-family: "Gotham Book", Helvetica, Arial, Lucida, sans-serif !important;
	font-size: 18px !important;
	line-height: 24px !important;
	color: #243350 !important;
	text-align: left !important;
}

@media (min-width: 981px) {
	body.et_divi_theme.single #page-container .intro-wrap .et_pb_promo {
		margin-top: -100px !important;
	}
}

body.et_divi_theme.single #page-container .intro-wrap .et_pb_promo .et_pb_promo_description p {
	font-size: 18px !important;
	line-height: 24px !important;
	color: #243350 !important;
}

body.et_divi_theme.single #page-container .intro-wrap .et_pb_promo .et_pb_promo_description p:first-of-type {
	padding-bottom: 18px;
}

/*
 * Phone: dan.css drops promo body to 16/22. Our 18/24 !important was
 * winning and stretching the intro ~84px taller at 390.
 */
@media (max-width: 480px) {
	body.et_divi_theme.single #page-container .intro-wrap .et_pb_promo,
	body.et_divi_theme.single #page-container .intro-wrap .et_pb_promo .et_pb_promo_description p {
		font-size: 16px !important;
		line-height: 22px !important;
	}
}

/*
 * Trip intro button: Divi 4 Dynamic CSS / module-design uses Open Sans,
 * navy outline, and an ETmodules arrow. Restore the Divi 3 CTA.
 */
body.et_divi_theme.single #page-container .intro-wrap a.et_pb_button.et_pb_promo_button,
body.et_divi_theme.single #page-container .intro-wrap a.et_pb_button.et_pb_promo_button:hover {
	padding: 5.4px 18px !important;
	font-size: 18px !important;
	font-family: 'knockout-htf34-juniorsumo', Helvetica, Arial, Lucida, sans-serif !important;
	font-weight: 500 !important;
	line-height: 1.7em !important;
	text-transform: uppercase !important;
	background-color: #f37053 !important;
	color: #fffaf4 !important;
	border: 2px solid #fffaf4 !important;
	border-radius: 3px !important;
}

body.et_divi_theme.single #page-container .intro-wrap a.et_pb_button.et_pb_promo_button::before,
body.et_divi_theme.single #page-container .intro-wrap a.et_pb_button.et_pb_promo_button::after {
	display: none !important;
	width: 0 !important;
	opacity: 0 !important;
}

/*
 * Trip about / fellowship / more-trips: Divi 4 deferred module CSS keeps
 * background-color but drops custom_padding + header fonts.
 */
body.et_divi_theme.single #page-container .trip-about-content .et_pb_column_1_2 .trip-about-box {
	padding: 50px 50px 0 50px !important;
	background-color: #ffffff !important;
}

body.et_divi_theme.single #page-container .trip-about-content .et_pb_column_1_2 .et_pb_text:not(.trip-about-box) {
	padding: 0 50px 50px 50px !important;
	background-color: #ffffff !important;
	font-family: "Gotham Book", Helvetica, Arial, Lucida, sans-serif !important;
	font-size: 18px !important;
	line-height: 24px !important;
	color: #253350 !important;
}

/* 4_4 title module (Additional Subsidies / fellowship header). */
body.et_divi_theme.single #page-container .trip-about-content .et_pb_column_4_4 > .et_pb_text:first-child:not(.trip-about-box) {
	padding: 50px 50px 0 50px !important;
	background-color: #ffffff !important;
}

/*
 * 4_4 body: .trip-about-box (Hungary fellowship) OR a following text module
 * that itself carries .trip-about-content (Rwanda subsidies). Do not give
 * title padding (50 50 0) to that body — live is 0 50 50.
 */
body.et_divi_theme.single #page-container .trip-about-content .et_pb_column_4_4 .trip-about-box,
body.et_divi_theme.single #page-container .trip-about-content .et_pb_column_4_4 > .et_pb_text:not(:first-child) {
	padding: 0 50px 50px 50px !important;
	background-color: #ffffff !important;
	font-family: "Gotham Book", Helvetica, Arial, Lucida, sans-serif !important;
	font-size: 18px !important;
	line-height: 24px !important;
	color: #253350 !important;
}

body.et_divi_theme.single #page-container .trip-about-content .trip-about-box h1,
body.et_divi_theme.single #page-container .trip-about-content .et_pb_column_4_4 > .et_pb_text:first-child h1 {
	font-family: "freightbig pro bold", Helvetica, Arial, Lucida, sans-serif !important;
	font-weight: 700 !important;
	font-size: 48px !important;
	color: #243350 !important;
}

body.et_divi_theme.single #page-container .more-trips-title .et_pb_text {
	padding: 50px 50px 0 50px !important;
	background-color: #fffaf4 !important;
}

body.et_divi_theme.single #page-container .more-trips-title .et_pb_text h1 {
	font-family: "freightbig pro bold", Helvetica, Arial, Lucida, sans-serif !important;
	font-weight: 700 !important;
	font-size: 48px !important;
	color: #243350 !important;
}

body.et_divi_theme.single #page-container .quote-content-box {
	padding: 50px !important;
	background-color: #ffffff !important;
}

body.et_divi_theme.single #page-container .quote-content-box h1 {
	font-family: "freightbig pro bold", Helvetica, Arial, Lucida, sans-serif !important;
	font-weight: 700 !important;
	font-size: 48px !important;
	color: #243350 !important;
}

body.et_divi_theme.single #page-container .quote-content-box h6 {
	font-family: knockhtf27junban, Helvetica, Arial, Lucida, sans-serif !important;
	font-size: 30px !important;
	text-align: center !important;
	color: #f37053 !important;
}

/* Tablet/phone type + padding after desktop !important bases so these win. */
@media (max-width: 980px) {
	/* dan.css 46/54 for box titles — NOT the fellowship header module. */
	body.et_divi_theme.single #page-container .more-trips-title .et_pb_text h1,
	body.et_divi_theme.single #page-container .trip-about-content .trip-about-box h1 {
		font-size: 46px !important;
		line-height: 54px !important;
	}

	/*
	 * Fellowship title is a plain text module (not .trip-about-box). Divi 3
	 * keeps its module responsive 38/40 ≤980; applying 46 here made the
	 * section +28px at 768 and +48px at 390.
	 */
	body.et_divi_theme.single #page-container .trip-about-content .et_pb_column_4_4 > .et_pb_text:first-child h1 {
		font-size: 38px !important;
		line-height: 40px !important;
	}

	body.et_divi_theme.single #page-container .quote-content-box h1 {
		font-size: 38px !important;
		line-height: 40px !important;
	}
}

@media (max-width: 480px) {
	body.et_divi_theme.single #page-container .more-trips-title .et_pb_text h1,
	body.et_divi_theme.single #page-container .trip-about-content .trip-about-box h1 {
		font-size: 38px !important;
		line-height: 46px !important;
	}

	body.et_divi_theme.single #page-container .trip-about-content .et_pb_column_4_4 > .et_pb_text:first-child h1 {
		font-size: 38px !important;
		line-height: 40px !important;
	}

	/*
	 * dan.css zeros more-trips title padding and trip-about-box bottom pad.
	 * Our 30px !important must not re-inset the title (look-diff ~82%) or
	 * leave an extra 30px under fellowship body.
	 */
	body.et_divi_theme.single #page-container .trip-about-content .et_pb_column_1_2 .trip-about-box,
	body.et_divi_theme.single #page-container .trip-about-content .et_pb_column_1_2 .et_pb_text:not(.trip-about-box),
	body.et_divi_theme.single #page-container .trip-about-content .et_pb_column_4_4 .et_pb_text:not(.trip-about-box),
	body.et_divi_theme.single #page-container .trip-about-content .et_pb_column_4_4 .trip-about-box {
		padding: 30px !important;
	}

	body.et_divi_theme.single #page-container .trip-about-content .et_pb_column_1_2 .trip-about-box,
	body.et_divi_theme.single #page-container .trip-about-content .et_pb_column_4_4 .trip-about-box {
		padding-bottom: 0 !important;
	}

	body.et_divi_theme.single #page-container .more-trips-title .et_pb_text {
		padding: 0 !important;
	}
}

body.et_divi_theme.single #page-container .trip-dates.et_pb_blurb {
	font-family: "Gotham Book", Helvetica, Arial, Lucida, sans-serif !important;
	font-size: 12px !important;
	background-color: #ffffff !important;
	color: #253350 !important;
}

/* 50% only on desktop; dan.css resets to 0 ≤980 when columns stack. */
@media (min-width: 981px) {
	body.et_divi_theme.single #page-container .trip-dates.et_pb_blurb {
		margin-top: 50% !important;
	}
}

body.et_divi_theme.single #page-container .trip-dates.et_pb_blurb h6,
body.et_divi_theme.single #page-container .trip-dates.et_pb_blurb .et_pb_module_header {
	font-family: "freightbig pro bold", Helvetica, Arial, Lucida, sans-serif !important;
	font-size: 42px !important;
	color: #253350 !important;
}

body.et_divi_theme.single #page-container .trip-includes.et_pb_blurb {
	font-family: "Gotham Book", Helvetica, Arial, Lucida, sans-serif !important;
	font-size: 18px !important;
	line-height: 23.8px !important;
	color: #253350 !important;
}

/*
 * Divi 4 squashes left blurb icons to the text line-box. Divi 3 kept
 * width ~32px with height:auto (hotel/site icons taller → row +33px).
 */
body.et_divi_theme.single #page-container .trip-includes .et_pb_main_blurb_image {
	width: 32px;
	margin-right: 0;
}

body.et_divi_theme.single #page-container .trip-includes .et_pb_main_blurb_image img {
	width: 32px !important;
	max-width: 32px !important;
	height: auto !important;
}

/*
 * Divi 3 image/parallax trip sections clip overflow. Divi 4 visible
 * changes quote / about look-diff even when heights match.
 */
body.et_divi_theme.single #page-container .et_pb_section.image-wrap {
	overflow: hidden;
}

/*
 * Divi 4 module-design CSS sets CTA buttons to padding: 0.3em 1em !important
 * at specificity (1,5,1), beating child dan.css. Restore Divi 3 sizes.
 */
body.et_divi_theme #page-container .et_pb_section .home-boxes .et_pb_promo a.et_pb_button.et_pb_promo_button,
body.et_divi_theme #page-container .et_pb_section .home-boxes .et_pb_promo a.et_pb_button.et_pb_promo_button:hover {
	padding: 2px 20px !important;
}

/* Connect page MORE buttons (Divi 3 module padding 0 10px). */
body.et_divi_theme #page-container .take-action .et_pb_promo a.et_pb_button.et_pb_promo_button,
body.et_divi_theme #page-container .take-action .et_pb_promo a.et_pb_button.et_pb_promo_button:hover {
	padding: 0 10px !important;
}

/*
 * SBS images: Divi 3 module CSS used padding-left/right 50px (410px image
 * in a 510px column). Divi 4 deferred CSS drops it → image fills 510 and
 * equal-columns rows grow ~100px taller than live.
 */
body.et_divi_theme #page-container .sbs-section-row .et_pb_image {
	padding-left: 50px !important;
	padding-right: 50px !important;
}

/* dan.css ≤980 zeros side pad and uses 30px top/bottom — keep that. */
@media (max-width: 980px) {
	body.et_divi_theme #page-container .sbs-section-row .et_pb_image {
		padding-left: 0 !important;
		padding-right: 0 !important;
		padding-top: 30px !important;
		padding-bottom: 30px !important;
	}
}

/*
 * Body copy under SBS titles — Divi 4 drops Gotham 18/24 for Open Sans 14.
 * Live Take Action keeps 18/24 even at 390 (module CSS beats dan.css 16/22).
 */
body.et_divi_theme #page-container .sbs-section-row .et_pb_promo .et_pb_promo_description,
body.et_divi_theme #page-container .sbs-section-row .et_pb_promo .et_pb_promo_description p {
	font-family: "Gotham Book", Helvetica, Arial, Lucida, sans-serif !important;
	font-size: 18px !important;
	line-height: 24px !important;
	color: #253350 !important;
}

/*
 * Take Action / general fullwidth headers: Divi 4 drops module
 * text-transform:uppercase → “Take Action” vs live “TAKE ACTION”.
 */
body.et_divi_theme #page-container .general-header-wrap .et_pb_fullwidth_header .header-content h1,
body.et_divi_theme #page-container .et_pb_fullwidth_header_0.et_pb_fullwidth_header .header-content h1 {
	text-transform: uppercase !important;
}

/*
 * Take Action intro (.smallp-wrap): Divi 4 deferred
 * .et_pb_row_0 { padding: 27px 0 7px !important } loads after dan.css and
 * beats .smallp-wrap .et_pb_row { padding-bottom: 27px !important } at ≤480
 * → intro 585 vs live 605 (−20px = “Below last section” short).
 */
@media (max-width: 480px) {
	body.et_divi_theme #page-container .smallp-wrap .et_pb_row,
	body.et_divi_theme #page-container .smallp-wrap .et_pb_row_0.et_pb_row {
		padding-top: 27px !important;
		padding-bottom: 27px !important;
	}
}

/*
 * Take Action / SBS CTA buttons: Divi 4 deferred module CSS only keeps
 * custom styles for some CTAs (e.g. cta_3/cta_4). The rest fall back to
 * Open Sans + transparent + 2px 12px. Restore the Divi 3 coral Knockout
 * look (live computed padding is 0.3em 1em / 7.2px 24px).
 */
body.et_divi_theme #page-container .sbs-section-row a.et_pb_button.et_pb_promo_button,
body.et_divi_theme #page-container .sbs-section-row a.et_pb_button.et_pb_promo_button:hover,
body.et_divi_theme #page-container .sbs-section a.et_pb_button.et_pb_promo_button,
body.et_divi_theme #page-container .sbs-section a.et_pb_button.et_pb_promo_button:hover {
	padding: 0.3em 1em !important;
	font-size: 24px !important;
	font-family: knockhtf27junban, Helvetica, Arial, Lucida, sans-serif !important;
	font-weight: 500 !important;
	letter-spacing: 1px !important;
	line-height: 1.7em !important;
	text-transform: uppercase !important;
	text-decoration: underline !important;
	background-color: #f37053 !important;
	color: #fffaf4 !important;
	border-width: 0 !important;
	border-radius: 0 !important;
}

body.et_divi_theme #page-container .sbs-section-row a.et_pb_button.et_pb_promo_button::before,
body.et_divi_theme #page-container .sbs-section-row a.et_pb_button.et_pb_promo_button::after,
body.et_divi_theme #page-container .sbs-section a.et_pb_button.et_pb_promo_button::before,
body.et_divi_theme #page-container .sbs-section a.et_pb_button.et_pb_promo_button::after {
	display: none !important;
	width: 0 !important;
	opacity: 0 !important;
}

/*
 * About Us contact: do not trim .jsc-contact padding. An earlier Divi 4
 * +12px trim made the section ~46px short vs live; remaining height gap
 * is FormAssembly footer/supportInfo line-wrap (third-party), not Divi.
 */

/*
 * Global Shabbat Toolkit: desktop float-column shim beats page CSS that
 * flexes .appreciate-row + centers .blessing-column. Scope the flex/-50px
 * pull-up to ≥576 only — a global !important :not() rule was beating both
 * our ≤768 reset and Divi 3’s ≤575 margin-top:0, so phone APPRECIATE grew
 * ~282px (first photo overlapped into the text block: 626 → 908) and left
 * a 30px gap below.
 */
@media (min-width: 576px) {
	body.et_divi_theme #page-container .et_pb_row.appreciate-row:not(.et_pb_equal_columns) > .et_pb_column,
	body.et_divi_theme #page-container .et_pb_row.appreciate-row > .et_pb_column {
		display: flex !important;
		float: left !important;
		justify-content: center;
		width: 100% !important;
		margin-top: -50px !important;
		margin-right: 0 !important;
	}
}

@media (max-width: 768px) and (min-width: 576px) {
	body.et_divi_theme #page-container .et_pb_row.appreciate-row:not(.et_pb_equal_columns) > .et_pb_column,
	body.et_divi_theme #page-container .et_pb_row.appreciate-row > .et_pb_column {
		flex-wrap: wrap !important;
	}

	body.et_divi_theme #page-container .appreciate-row .et_pb_image {
		margin-left: auto !important;
		margin-right: auto !important;
	}
}

@media (max-width: 575px) {
	body.et_divi_theme #page-container .et_pb_row.appreciate-row:not(.et_pb_equal_columns) > .et_pb_column,
	body.et_divi_theme #page-container .et_pb_row.appreciate-row > .et_pb_column {
		display: flex !important;
		flex-wrap: wrap !important;
		float: none !important;
		justify-content: center;
		width: 100% !important;
		margin-top: 0 !important;
		margin-right: 0 !important;
	}

	body.et_divi_theme #page-container .appreciate-row .et_pb_image,
	body.et_divi_theme #page-container .appreciate-row .et_pb_image.appreciate-photo1,
	body.et_divi_theme #page-container .appreciate-row .et_pb_image.appreciate-photo3 {
		width: 100% !important;
		max-width: 100%;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}
}

body.et_divi_theme #page-container .et_pb_row:not(.et_pb_equal_columns) > .et_pb_column.blessing-column,
body.et_divi_theme #page-container .et_pb_row > .et_pb_column.blessing-column {
	float: none !important;
	width: 80% !important;
	max-width: 1080px;
	margin-left: auto !important;
	margin-right: auto !important;
}

/*
 * Shabbat Toolkit hero: Divi 3 module CSS sets margin-top:100px (collapses
 * into the “Above first section” gap) + data-padding 100/80/50. Transparent-nav
 * JS then adds header height → live padT 224 / 179 / 129. Divi 4 drops the
 * margin and over-calcs pad (~253). Do not use phone 129px at all widths —
 * that made desktop section_0 95px short (1381 → 1286) and failed MY_PPC.
 */
body.et_divi_theme.page-id-225073 #page-container .et_pb_section_0 {
	margin-top: 100px !important;
	padding-top: 224px !important;
	padding-bottom: 0 !important;
}

@media (max-width: 980px) {
	body.et_divi_theme.page-id-225073 #page-container .et_pb_section_0 {
		padding-top: 179px !important;
	}
}

@media (max-width: 767px) {
	body.et_divi_theme.page-id-225073 #page-container .et_pb_section_0 {
		padding-top: 129px !important;
	}
}

body.et_divi_theme.page-id-225073 #page-container .et_pb_section_4 {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

body.et_divi_theme.page-id-225073 #page-container .et_pb_section_5 {
	padding-top: 0 !important;
	padding-bottom: 54px !important;
}

@media (max-width: 980px) {
	/* Live module CSS uses ~50px bottom on this section at tablet/phone. */
	body.et_divi_theme.page-id-225073 #page-container .et_pb_section_5 {
		padding-bottom: 50px !important;
	}
}

/*
 * Last section is only the shabbatList() Code module. Divi 4 leaves a 1px
 * empty box (extra et_pb_module + "function shabbatList()" in DOM diffs).
 * Hide the module too so MY_PPC does not see a stray et_pb_module / 30px gap.
 */
body.et_divi_theme.page-id-225073 #page-container .et_pb_section_6,
body.et_divi_theme.page-id-225073 #page-container .et_pb_section_6 .et_pb_row,
body.et_divi_theme.page-id-225073 #page-container .et_pb_section_6 .et_pb_column,
body.et_divi_theme.page-id-225073 #page-container .et_pb_section_6 .et_pb_module {
	height: 0 !important;
	min-height: 0 !important;
	overflow: hidden !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
}

/*
 * Divi 3 quote/specialty fullwidth rows are 100%. Divi 4 style-static
 * leaves them at 80%, so trip-page quote (1/4–1/2–1/4) wraps ~250px taller.
 * Same 100% is required ≤980px so dan.css 90% does not inset the homepage hero.
 *
 * Trip-about fullwidth rows are 94% on live Divi 3 — forcing 100% widens
 * columns (~650→691) and shortens wrapped body copy (Subsidies −46px).
 */
body.et_divi_theme #page-container .et_pb_row.et_pb_row_fullwidth,
body.et_divi_theme #page-container .et_pb_specialty_fullwidth > .et_pb_row {
	width: 100% !important;
	max-width: 100%;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

/* Desktop only — live tablet/phone trip-about fullwidth is ~80%, not 94%. */
@media (min-width: 981px) {
	body.et_divi_theme.single #page-container .et_pb_row.et_pb_row_fullwidth.trip-about-content {
		width: 94% !important;
		max-width: 94%;
		margin-left: auto !important;
		margin-right: auto !important;
	}
}

/* Tablet: live Divi 3 trip-about fullwidth is ~80%. */
@media (max-width: 980px) and (min-width: 481px) {
	body.et_divi_theme.single #page-container .et_pb_row.et_pb_row_fullwidth.trip-about-content {
		width: 80% !important;
		max-width: 80%;
		margin-left: auto !important;
		margin-right: auto !important;
	}
}

/* Phone: live uses ~90% (same as other trip inner rows). */
@media (max-width: 480px) {
	body.et_divi_theme.single #page-container .et_pb_row.et_pb_row_fullwidth.trip-about-content {
		width: 90% !important;
		max-width: 90%;
		margin-left: auto !important;
		margin-right: auto !important;
	}
}

/* Divi 4 leaves empty builder rows as 54px pads; Divi 3 hides them. */
body.et_divi_theme.single #page-container .et_pb_row.et_pb_row_empty {
	display: none !important;
	height: 0 !important;
	min-height: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	overflow: hidden !important;
	border: 0 !important;
}

/*
 * Trip posts: Divi 4 default section padding is 54px; builder custom is
 * 25px (live). WP Engine / Dynamic CSS lets 54px win (intro +104, highlights +58).
 */
body.et_divi_theme.single #page-container .et_pb_section.sectionbg,
body.et_divi_theme.single #page-container .et_pb_section.trip-about-wrap {
	padding-top: 25px !important;
	padding-bottom: 25px !important;
}

/*
 * Divi 3 sections default overflow:hidden. Divi 4 is visible, so the
 * Hillel logo float does not expand / clip the trip header like live.
 */
body.et_divi_theme.single #page-container .et_pb_section.header-wrap {
	overflow: hidden;
}

/*
 * Trip header subtitle: Divi 4 drops deferred module CSS for this text
 * module (Open Sans 14 navy instead of Freight 48 cream) → ~88% look.
 */
body.et_divi_theme.single #page-container .header-wrap .header-subtitle,
body.et_divi_theme.single #page-container .header-wrap .header-subtitle .et_pb_text_inner,
body.et_divi_theme.single #page-container .header-wrap .header-subtitle p {
	font-family: "freightbig pro semibold italic", Helvetica, Arial, Lucida, sans-serif !important;
	font-weight: 700 !important;
	font-size: 48px !important;
	line-height: 1em !important;
	color: #fffaf4 !important;
}

body.et_divi_theme.single #page-container .header-wrap .header-subtitle {
	margin-top: 0 !important;
}

/*
 * Divi 4 transparent-header calc pads the hero to 221px; Divi 3 used 189.
 * Keep dan.css 140/120 !important on tablet/phone.
 */
@media (min-width: 981px) {
	body.et_divi_theme.single #page-container .et_pb_section.header-wrap {
		padding-top: 189px !important;
	}
}

@media (max-width: 980px) {
	body.et_divi_theme.single #page-container .header-wrap .header-subtitle,
	body.et_divi_theme.single #page-container .header-wrap .header-subtitle .et_pb_text_inner,
	body.et_divi_theme.single #page-container .header-wrap .header-subtitle p {
		font-size: 30px !important;
	}
}

@media (max-width: 480px) {
	body.et_divi_theme.single #page-container .header-wrap .header-subtitle,
	body.et_divi_theme.single #page-container .header-wrap .header-subtitle .et_pb_text_inner,
	body.et_divi_theme.single #page-container .header-wrap .header-subtitle p {
		font-size: 25px !important;
	}
}

/* more-trips: Divi 3 clipped section overflow; Divi 4 visible. */
body.et_divi_theme.single #page-container .et_pb_section.more-trips-wrap {
	overflow: hidden;
}

@media (max-width: 980px) {
	/* Divi 4 default row padding (25–30px) beats child homepage spacing. */
	body.et_divi_theme #page-container .home-intro .et_pb_row_1.et_pb_row {
		padding: 0 0 15px !important;
	}

	/* Divi 4 dropped the `.last` class, so the final footer column keeps a 40px gap. */
	body.et_divi_theme #footer-widgets .footer-widget:last-child {
		margin-bottom: 0 !important;
	}

	/*
	 * Dump Connect copy is 3 lines (66px); live KAHAL copy is 4 (88px).
	 * Floor the paragraph so the stacked CTA matches live until content is synced.
	 */
	body.et_divi_theme #page-container .home-boxes .et_pb_cta_2.et_pb_promo p {
		min-height: 88px;
	}
}

@media (max-width: 480px) {
	/*
	 * Trip posts: dan.css 90% inner rows is ≤480. Applying that at 980 made
	 * 768 columns too wide (678 vs live 602). Keep 90% on phone only so
	 * Divi 4's 80% can match Divi 3 at tablet.
	 */
	body.et_divi_theme.et_pb_pagebuilder_layout.single.et_full_width_page #page-container .et_pb_row:not(.et_pb_row_fullwidth) {
		width: 90% !important;
	}

	/*
	 * Trip header: Divi 4 drops overlapping hungary title (-50px) and
	 * module-design CSS beats dan.css 480px type on subtitle/date.
	 */
	body.et_divi_theme #page-container .header-wrap .header-content .header-title {
		margin-top: -50px !important;
	}

	body.et_divi_theme #page-container .header-wrap .header-content .et_pb_text_2 p {
		font-size: 25px !important;
		line-height: 25px !important;
	}

	body.et_divi_theme #page-container .header-wrap .header-content .et_pb_text_3 p {
		font-size: 15px !important;
		line-height: 15px !important;
	}
}
