/*
Theme Name:   MAJO Child
Theme URI:    https://www.majobuyshouses.com/
Description:  Child theme for MAJO Buys Houses (Hello Elementor). Holds the design system, the Property and Career templates, and the [majo_listings], [majo_careers], [majo_faq] and [majo_matrix] shortcodes.
Author:       Mockup Studios
Author URI:   https://mockup.gg/
Template:     hello-elementor
Version:      1.4.5
Requires PHP: 7.4
Text Domain:  majo-child
*/

/* =========================================================================
   1. DESIGN TOKENS
   Match these to Elementor > Site Settings > Global Colors / Global Fonts.
   ========================================================================= */
:root {
	--mj-navy: #134970;   /* Primary */
	--mj-yellow: #ffd94e; /* Accent */
	--mj-deep: #0C2F49;   /* Deep Navy */
	--mj-ink: #1B2733;    /* Text */
	--mj-slate: #5A6672;  /* Secondary Text */
	--mj-cream: #FAF6EC;  /* Cream */
	--mj-butter: #FFF4CC; /* Butter */
	--mj-white: #FFFFFF;
	--mj-line: #E6E1D3;
	--mj-head: 'Fraunces', Georgia, serif;
	--mj-body: 'Inter', Arial, sans-serif;
	--mj-width: 1200px;
	--mj-radius: 14px;
	--mj-shadow: 0 10px 30px rgba(12, 47, 73, .10);
}

/* =========================================================================
   2. BASE (applies to theme templates; Elementor pages use Global settings)
   ========================================================================= */
body {
	font-family: var(--mj-body);
	color: var(--mj-ink);
	font-size: 17px;
	line-height: 1.65;
}
.mj-wrap h1, .mj-wrap h2, .mj-wrap h3 {
	font-family: var(--mj-head);
	color: var(--mj-navy);
	font-weight: 600;
	line-height: 1.15;
	margin: 0;
}
.mj-wrap h1 { font-size: 48px; }
.mj-wrap h2 { font-size: 36px; }
.mj-wrap h3 { font-size: 22px; }
.mj-boxed { max-width: var(--mj-width); margin: 0 auto; padding: 0 24px; }
.mj-section { padding: 80px 0; }
.mj-bg-cream { background: var(--mj-cream); }

/* =========================================================================
   3. UTILITY CLASSES FOR ELEMENTOR
   Add these in a widget's Advanced > CSS Classes field.
   ========================================================================= */

/* Eyebrow label (Heading widget): .mj-eyebrow */
.mj-eyebrow, .mj-eyebrow .elementor-heading-title {
	font-family: var(--mj-body) !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--mj-navy);
	display: inline-flex;
	align-items: center;
	gap: 10px;
}
.mj-eyebrow::before, .mj-eyebrow .elementor-heading-title::before {
	content: "";
	width: 28px;
	height: 3px;
	background: var(--mj-yellow);
	border-radius: 2px;
}
.mj-eyebrow-light .elementor-heading-title { color: var(--mj-yellow); }

/* Yellow marker highlight: wrap words in <span class="mj-hl"> inside a Heading */
.mj-hl { background: linear-gradient(transparent 62%, var(--mj-yellow) 62%); padding: 0 4px; }

/* Buttons. Elementor Button widget: add .mj-btn-primary / .mj-btn-outline / .mj-btn-outline-light */
.mj-btn,
.mj-btn-primary .elementor-button,
.mj-btn-outline .elementor-button,
.mj-btn-outline-light .elementor-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: var(--mj-body);
	font-weight: 700;
	font-size: 17px;
	line-height: 1.2;
	padding: 16px 28px;
	min-height: 52px;
	border-radius: 999px;
	border: 2px solid transparent;
	text-decoration: none;
	transition: transform .15s ease, background-color .15s ease, color .15s ease;
	cursor: pointer;
}
.mj-btn:hover,
.mj-btn-primary .elementor-button:hover,
.mj-btn-outline .elementor-button:hover,
.mj-btn-outline-light .elementor-button:hover { transform: translateY(-2px); }

.mj-btn--primary, .mj-btn-primary .elementor-button { background: var(--mj-yellow); color: var(--mj-navy); }
.mj-btn--primary:hover, .mj-btn-primary .elementor-button:hover { background: #ffe57f; color: var(--mj-navy); }

.mj-btn--outline, .mj-btn-outline .elementor-button { background: transparent; border-color: var(--mj-navy); color: var(--mj-navy); }
.mj-btn--outline:hover, .mj-btn-outline .elementor-button:hover { background: var(--mj-navy); color: #fff; }

.mj-btn--outline-light, .mj-btn-outline-light .elementor-button { background: transparent; border-color: #fff; color: #fff; }
.mj-btn--outline-light:hover, .mj-btn-outline-light .elementor-button:hover { background: #fff; color: var(--mj-navy); }

.mj-btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Card container: .mj-card on any Container */
.mj-card { background: #fff; border-radius: var(--mj-radius); box-shadow: var(--mj-shadow); overflow: hidden; }

/* Step number circle (Heading widget): .mj-step-num */
.mj-step-num .elementor-heading-title {
	width: 56px; height: 56px; border-radius: 50%;
	background: var(--mj-yellow); color: var(--mj-navy) !important;
	display: flex; align-items: center; justify-content: center;
	font-family: var(--mj-head); font-weight: 700; font-size: 26px;
}

/* Pill tag (Heading/Text widget): .mj-pill */
.mj-pill, .mj-pill .elementor-heading-title {
	display: inline-block;
	background: var(--mj-butter);
	color: var(--mj-navy);
	font-size: 14px;
	font-weight: 700;
	border-radius: 999px;
	padding: 4px 12px;
}

/* Before / After badge (Heading widget positioned absolute over an Image): .mj-ba-label / .mj-ba-label--after */
.mj-ba-label .elementor-heading-title, .mj-ba-label {
	background: var(--mj-navy); color: #fff !important;
	font-family: var(--mj-body); font-size: 12px; font-weight: 700; letter-spacing: .08em;
	padding: 4px 10px; border-radius: 999px; display: inline-block;
}
.mj-ba-label--after .elementor-heading-title, .mj-ba-label--after { background: var(--mj-yellow); color: var(--mj-navy) !important; }

/* Partner logo chips (Image widget): .mj-logochip */
.mj-logochip img, img.mj-logochip { background: #fff; border-radius: 10px; padding: 8px 12px; height: 60px; width: auto; }
.mj-logochip--bordered img { border: 1px solid var(--mj-line); }

/* Floating rating card (Container): .mj-rating-float */
.mj-rating-float { box-shadow: var(--mj-shadow); border-radius: var(--mj-radius); }

/* =========================================================================
   4. LISTING CARDS ([majo_listings], archive)
   ========================================================================= */
.mj-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.mj-pcard { background: #fff; border-radius: var(--mj-radius); overflow: hidden; box-shadow: var(--mj-shadow); display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .15s ease; }
.mj-pcard:hover { transform: translateY(-3px); }
.mj-pcard__media { position: relative; aspect-ratio: 3 / 2; background: #e4e7ea; overflow: hidden; }
.mj-pcard__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mj-status { position: absolute; top: 14px; left: 14px; background: var(--mj-yellow); color: var(--mj-navy); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.mj-status--pending { background: #fff; }
.mj-status--sold { background: var(--mj-navy); color: #fff; }
.mj-status--auction { background: var(--mj-deep); color: var(--mj-yellow); }
.mj-pcard__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.mj-pcard__title { font-family: var(--mj-head); font-size: 21px; font-weight: 600; color: var(--mj-navy); margin: 0; }
.mj-pcard__city { color: var(--mj-slate); font-size: 15px; }
.mj-pcard__price { font-weight: 700; color: var(--mj-ink); }
.mj-pcard__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 15px; font-weight: 600; margin: 10px 0 14px; padding-top: 12px; border-top: 1px solid var(--mj-line); }
.mj-pcard__link { margin-top: auto; font-weight: 700; color: var(--mj-navy); }
.mj-empty { text-align: center; color: var(--mj-slate); padding: 40px 0; }

/* =========================================================================
   5. ARCHIVE + SINGLE TEMPLATES
   ========================================================================= */
.mj-page-hero { background: var(--mj-cream); padding: 64px 0 48px; }
.mj-page-hero p { color: var(--mj-slate); font-size: 19px; margin-top: 14px; max-width: 680px; }
.mj-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.mj-tab { padding: 10px 20px; border-radius: 999px; border: 2px solid var(--mj-navy); color: var(--mj-navy); font-weight: 700; text-decoration: none; font-size: 15px; }
.mj-tab.is-active, .mj-tab:hover { background: var(--mj-navy); color: #fff; }
.mj-pagination { margin-top: 48px; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.mj-pagination .page-numbers { min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 1.5px solid var(--mj-line); text-decoration: none; color: var(--mj-navy); font-weight: 700; padding: 0 14px; }
.mj-pagination .current { background: var(--mj-navy); color: #fff; border-color: var(--mj-navy); }

.mj-back { display: inline-block; margin-bottom: 18px; font-weight: 700; color: var(--mj-navy); text-decoration: none; }
.mj-single-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.mj-single-head .mj-status { position: static; display: inline-block; margin-bottom: 12px; }
.mj-single-city { color: var(--mj-slate); font-size: 19px; margin-top: 6px; }
.mj-single-price { font-family: var(--mj-head); font-size: 34px; color: var(--mj-navy); font-weight: 600; }
.mj-gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; margin-bottom: 40px; }
.mj-gallery a { display: block; border-radius: var(--mj-radius); overflow: hidden; background: #e4e7ea; }
.mj-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mj-gallery__main { grid-row: span 2; aspect-ratio: 4 / 3; }
.mj-gallery__thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mj-gallery__thumbs a { aspect-ratio: 1; }
.mj-single-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: start; }
.mj-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 32px; }
.mj-fact { background: var(--mj-cream); border-radius: var(--mj-radius); padding: 16px 18px; }
.mj-fact strong { display: block; font-family: var(--mj-head); font-size: 26px; color: var(--mj-navy); line-height: 1.1; }
.mj-fact span { font-size: 14px; color: var(--mj-slate); font-weight: 600; }
.mj-content { font-size: 17px; }
.mj-content p { margin: 0 0 1em; }
.mj-content ul { margin: 0 0 1em 1.2em; }
.mj-ba { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 40px; }
.mj-ba figure { position: relative; margin: 0; border-radius: var(--mj-radius); overflow: hidden; aspect-ratio: 4 / 3; background: #e4e7ea; }
.mj-ba img { width: 100%; height: 100%; object-fit: cover; }
.mj-ba .mj-ba-label { position: absolute; top: 12px; left: 12px; }
.mj-aside { position: sticky; top: 24px; background: var(--mj-navy); color: #fff; border-radius: 20px; padding: 32px; }
.mj-aside h2 { color: #fff !important; font-size: 26px !important; }
.mj-aside p { color: #d6e2ec; margin: 10px 0 22px; }
.mj-aside .mj-btn { width: 100%; margin-bottom: 12px; }
.mj-aside small { display: block; color: #d6e2ec; margin-top: 8px; }

/* =========================================================================
   6. BUYING MATRIX ([majo_matrix])
   ========================================================================= */
.mj-matrix { display: grid; grid-template-columns: 1.1fr repeat(4, 1fr); }
.mj-mcol { display: flex; flex-direction: column; }
.mj-mcell { padding: 18px 20px; min-height: 76px; display: flex; flex-direction: column; justify-content: center; border-bottom: 1px solid var(--mj-line); font-size: 16px; }
.mj-mhead { font-family: var(--mj-head); font-size: 22px; font-weight: 600; color: var(--mj-navy); min-height: 84px; }
.mj-labels .mj-mcell { font-weight: 700; }
.mj-msub { font-size: 14px; color: var(--mj-slate); }
.mj-mcol--featured { background: var(--mj-navy); color: #fff; border-radius: 18px; box-shadow: 0 18px 40px rgba(19, 73, 112, .35); transform: scaleY(1.04); position: relative; z-index: 2; }
.mj-mcol--featured .mj-mcell { border-bottom-color: rgba(255, 255, 255, .14); font-weight: 700; }
.mj-mcol--featured .mj-mcell:last-child { border-bottom: 0; }
.mj-mcol--featured .mj-mhead { color: var(--mj-yellow); }
.mj-mcol--featured .mj-msub { color: #d6e2ec; }
.mj-mcol--featured .mj-good { color: var(--mj-yellow); }
.mj-mlabel { display: none; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mj-slate); }
.mj-mcol--featured .mj-mlabel { color: #d6e2ec; }
.mj-best { display: inline-block; margin-top: 6px; background: var(--mj-yellow); color: var(--mj-navy); font-family: var(--mj-body); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; width: max-content; }

/* =========================================================================
   7. FAQ ([majo_faq])
   ========================================================================= */
.mj-faq { max-width: 860px; margin: 0 auto; }
.mj-faq details { border-bottom: 1px solid var(--mj-line); padding: 6px 0; }
.mj-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 0; font-family: var(--mj-head); font-size: 21px; font-weight: 600; color: var(--mj-navy); }
.mj-faq summary::-webkit-details-marker { display: none; }
.mj-faq summary::after { content: "+"; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--mj-butter); display: flex; align-items: center; justify-content: center; font-family: var(--mj-body); font-size: 22px; font-weight: 600; }
.mj-faq details[open] summary::after { content: "\2212"; background: var(--mj-yellow); }
.mj-faq__a { padding: 0 56px 20px 0; color: var(--mj-slate); }
.mj-faq__a p { margin: 0 0 .8em; }

/* =========================================================================
   8. FLUENT FORMS (cash offer form + Join The List)
   ========================================================================= */
.fluentform .ff-el-input--label label { font-family: var(--mj-body); font-size: 15px; font-weight: 600; color: var(--mj-ink); }
.fluentform .ff-el-is-required.asterisk-right label::after { color: #b42318; }
.fluentform .ff-el-form-control {
	font-family: var(--mj-body);
	font-size: 16px;
	padding: 14px 16px;
	min-height: 52px;
	border: 1.5px solid #cfd6dd;
	border-radius: 10px;
	color: var(--mj-ink);
	background: #fff;
}
.fluentform textarea.ff-el-form-control { min-height: 120px; }
.fluentform .ff-el-form-control:focus { border-color: var(--mj-navy); outline: 3px solid rgba(255, 217, 78, .6); box-shadow: none; }
.fluentform .ff-el-form-check { background: var(--mj-cream); border-radius: 10px; padding: 14px 16px; font-size: 13px; line-height: 1.5; color: var(--mj-slate); }
.fluentform .ff-el-form-check input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--mj-navy); }
.fluentform .ff-btn-submit,
.fluentform .ff-btn-submit:hover {
	width: 100%;
	background: var(--mj-yellow) !important;
	color: var(--mj-navy) !important;
	border: 0;
	border-radius: 999px;
	min-height: 52px;
	font-family: var(--mj-body);
	font-weight: 700;
	font-size: 17px;
	opacity: 1;
}
.fluentform .ff-btn-submit:hover { background: #ffe57f !important; }
.fluentform .ff-message-success { border-radius: 10px; border-color: var(--mj-yellow); background: var(--mj-butter); color: var(--mj-navy); font-weight: 600; }

/* =========================================================================
   9. RESPONSIVE (Elementor defaults: tablet <=1024, mobile <=767)
   ========================================================================= */
@media (max-width: 1024px) {
	.mj-wrap h1 { font-size: 40px; }
	.mj-wrap h2 { font-size: 32px; }
	.mj-cards { grid-template-columns: repeat(2, 1fr); }
	.mj-single-grid { grid-template-columns: 1fr; }
	.mj-aside { position: static; }
	.mj-matrix { grid-template-columns: repeat(2, 1fr); gap: 20px; }
	.mj-labels { display: none; }
	.mj-mcol { background: #fff; border-radius: var(--mj-radius); box-shadow: var(--mj-shadow); overflow: hidden; }
	.mj-mcol--featured { transform: none; grid-column: 1 / -1; background: var(--mj-navy); }
	.mj-mlabel { display: block; }
	.mj-mcell { min-height: 0; padding: 14px 20px; }
}
@media (max-width: 767px) {
	body { font-size: 16px; }
	.mj-wrap h1 { font-size: 34px; }
	.mj-wrap h2 { font-size: 28px; }
	.mj-section { padding: 56px 0; }
	.mj-boxed { padding: 0 20px; }
	.mj-cards { grid-template-columns: 1fr; }
	.mj-gallery { grid-template-columns: 1fr; }
	.mj-gallery__main { grid-row: auto; }
	.mj-facts { grid-template-columns: repeat(2, 1fr); }
	.mj-ba { grid-template-columns: 1fr; }
	.mj-matrix { grid-template-columns: 1fr; }
	.mj-faq__a { padding-right: 0; }
	.mj-btn-row .mj-btn, .mj-btn-row .elementor-button { width: 100%; }
}

/* =========================================================================
   10. v1.0.1 FIXES (from live staging review)
   Classes added in Elementor land on the widget wrapper too, so keep the
   visual styling on the inner heading only.
   ========================================================================= */
.elementor-widget.mj-eyebrow::before { content: none; display: none; }
.elementor-widget.mj-ba-label,
.elementor-widget.mj-ba-label--after,
.elementor-widget.mj-pill,
.elementor-widget.mj-eyebrow {
	background: none;
	padding: 0;
	border-radius: 0;
}
.mj-ba-label .elementor-heading-title,
.mj-pill .elementor-heading-title { width: fit-content; }
.mj-pcard, .mj-pcard * { text-decoration: none !important; }
.elementor-widget-icon-list a, .elementor-widget-text-editor a[href^="tel:"] { text-decoration: none; }
.elementor-widget-icon-list a:hover { color: var(--mj-navy); }

/* =========================================================================
   11. v1.1.0 (inner pages: news cards, single posts, header overflow fix)
   ========================================================================= */
.mj-header .e-con-inner > .e-con.e-child { width: auto !important; flex: 0 0 auto; }
.mj-pcard__excerpt { color: var(--mj-slate); font-size: 15px; line-height: 1.55; margin: 8px 0 12px; }
.single-post .site-main { max-width: 800px; margin: 0 auto; padding: 64px 24px 88px; }
.single-post .site-main .entry-title { font-family: var(--mj-head); color: var(--mj-navy); font-weight: 600; font-size: 44px; line-height: 1.15; margin: 0 0 28px; }
.single-post .page-content h2 { font-family: var(--mj-head); color: var(--mj-navy); font-weight: 600; font-size: 30px; line-height: 1.2; margin: 1.6em 0 .5em; }
.single-post .page-content h3 { font-family: var(--mj-head); color: var(--mj-navy); font-weight: 600; font-size: 23px; margin: 1.4em 0 .4em; }
.single-post .page-content a { color: var(--mj-navy); font-weight: 600; }
.single-post .page-content img { border-radius: var(--mj-radius); }
.single-post .page-content li { margin-bottom: .4em; }
@media (max-width: 767px) {
	.single-post .site-main { padding: 40px 20px 64px; }
	.single-post .site-main .entry-title { font-size: 32px; }
}
.mj-band { background: var(--mj-navy); border-radius: 20px; padding: 36px 40px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; color: #fff; }
.mj-band h2 { color: #fff !important; font-size: 28px !important; }
.mj-band p { color: #d6e2ec; margin: 6px 0 0; }
.mj-header .hfe-nav-menu .sub-menu { background: var(--mj-deep) !important; border-radius: 0 0 12px 12px; padding: 8px 0; min-width: 220px; box-shadow: 0 14px 30px rgba(12, 47, 73, .25); }
.mj-header .hfe-nav-menu .sub-menu a.hfe-sub-menu-item { color: #fff !important; background: transparent !important; font-family: var(--mj-body); font-weight: 600; font-size: 15px; padding: 10px 20px; }
.mj-header .hfe-nav-menu .sub-menu a.hfe-sub-menu-item:hover { color: var(--mj-yellow) !important; }
.mj-pcard__media--square { aspect-ratio: 1 / 1; }
.mj-post-date { color: var(--mj-slate); font-weight: 600; font-size: 15px; margin: -12px 0 24px; }
.mj-post-hero { margin: 0 0 32px; }
.mj-post-hero img { width: 100%; height: auto; display: block; border-radius: var(--mj-radius); }
.single-post .page-content table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 16px; }
.single-post .page-content td, .single-post .page-content th { border: 1px solid var(--mj-line); padding: 10px 14px; text-align: left; vertical-align: top; }

/* v1.1.3: tablet and mobile header. The menu widget could not shrink, so it pushed the button and hamburger off screen. */
@media (max-width: 1024px) {
	.mj-header .e-con-inner { flex-wrap: nowrap; }
	.mj-header .elementor-widget-navigation-menu { flex: 1 1 0 !important; min-width: 0; width: auto !important; max-width: none; }
	.mj-header .elementor-widget-site-logo { flex: 0 0 auto; }
	.mj-header .hfe-nav-menu__toggle { margin-left: auto !important; margin-right: 0 !important; }
}
/* v1.1.4: the desktop dropdown's minimum width was also pushing the collapsed mobile menu past the screen edge. */
@media (max-width: 1024px) {
	.mj-header .hfe-nav-menu .sub-menu { min-width: 0 !important; width: 100% !important; box-shadow: none; border-radius: 0; padding: 0; }
}

/* v1.2.0: manual testimonials ([majo_testimonials]) and smaller article images */
.mj-reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 60px 28px; padding-top: 40px; align-items: start; }
.mj-review { background: #fff; border-radius: var(--mj-radius); padding: 52px 26px 26px; text-align: center; position: relative; color: var(--mj-ink); box-shadow: var(--mj-shadow); }
.mj-review__avatar { position: absolute; top: -38px; left: 50%; transform: translateX(-50%); width: 76px; height: 76px; border-radius: 50%; border: 4px solid #fff; background: var(--mj-navy); color: var(--mj-yellow); display: flex; align-items: center; justify-content: center; font-family: var(--mj-head); font-size: 30px; font-weight: 600; overflow: hidden; }
.mj-review__avatar img { width: 100%; height: 100%; object-fit: cover; }
.mj-review__stars { font-size: 22px; letter-spacing: 3px; color: #d5d9de; line-height: 1; }
.mj-review__stars .is-on { color: #F5B301; }
.mj-review__name { font-weight: 700; margin: 10px 0 0; color: var(--mj-navy); }
.mj-review__meta { font-size: 13px; color: var(--mj-slate); margin: 2px 0 12px; }
.mj-review__text { font-size: 15px; line-height: 1.6; color: var(--mj-slate); }
.mj-review__text p { margin: 0 0 .6em; }
.mj-review__text p:last-child { margin-bottom: 0; }
.mj-post-hero { text-align: center; }
.mj-post-hero img { width: auto; max-width: 100%; max-height: 520px; margin: 0 auto; }
@media (max-width: 1024px) { .mj-reviews { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) { .mj-reviews { grid-template-columns: 1fr; } }

/* v1.3.0: full photo grid on listing pages */
.mj-photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 8px; }
.mj-photos a { display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #e4e7ea; }
.mj-photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 767px) { .mj-photos { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 1.4.0 Careers ---------- */
.mj-careers-hero .mj-eyebrow { margin-bottom: 14px; }
.mj-careers-hero p { max-width: 760px; }
.mj-careers-hero .mj-btn { margin-top: 26px; }
.mj-careers-title { font-size: 34px; margin: 0 0 28px; }
.mj-jcard .mj-pcard__title { margin-top: 4px; }
.mj-jcard .mj-pill { width: fit-content; }
.mj-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.mj-aside .mj-btn--outline-light { margin-bottom: 0; }
@media (max-width: 767px) {
	.mj-careers-title { font-size: 28px; }
	.mj-band__actions, .mj-band__actions .mj-btn { width: 100%; }
}
.mj-content h2 { font-size: 24px; line-height: 1.25; margin: 32px 0 12px; }
.mj-content h2:first-child { margin-top: 0; }
.mj-content li { margin-bottom: 6px; }
/* v1.4.2: desktop header with 6 menu items. Between 1025px and 1366px the row was wider than the screen. */
@media (min-width: 1025px) and (max-width: 1366px) {
	.mj-header .e-con-inner { gap: 16px !important; }
	.mj-header .elementor-widget-navigation-menu { flex: 1 1 auto !important; min-width: 0; }
	.mj-header .hfe-nav-menu { flex-wrap: nowrap !important; }
	.mj-header .hfe-nav-menu > li a.hfe-menu-item { white-space: nowrap; }
	.mj-header .hfe-nav-menu > li > a.hfe-menu-item, .mj-header .hfe-nav-menu > li > .hfe-has-submenu-container > a.hfe-menu-item { padding-left: 10px !important; padding-right: 10px !important; font-size: 15px !important; }
}
@media (min-width: 1025px) and (max-width: 1279px) {
	.mj-header .elementor-widget-site-logo { max-width: 170px; }
	.mj-header .elementor-widget-site-logo img { width: 170px !important; max-width: 170px !important; height: auto; }
	.mj-header .e-con.e-child .elementor-widget-text-editor { display: none !important; }
	.mj-header .hfe-nav-menu > li > a.hfe-menu-item, .mj-header .hfe-nav-menu > li > .hfe-has-submenu-container > a.hfe-menu-item { padding-left: 8px !important; padding-right: 8px !important; }
	.mj-header .mj-btn-primary .elementor-button { padding-left: 20px !important; padding-right: 20px !important; }
}
@media (min-width: 1025px) and (max-width: 1120px) {
	.mj-header .e-con-inner { gap: 10px !important; }
	.mj-header .elementor-widget-site-logo { max-width: 150px; }
	.mj-header .elementor-widget-site-logo img { width: 150px !important; max-width: 150px !important; }
	.mj-header .hfe-nav-menu > li > a.hfe-menu-item, .mj-header .hfe-nav-menu > li > .hfe-has-submenu-container > a.hfe-menu-item { padding-left: 6px !important; padding-right: 6px !important; }
	.mj-header .mj-btn-primary .elementor-button { padding-left: 16px !important; padding-right: 16px !important; font-size: 15px !important; }
}
