/* Country pages /poea-jobs-{country}/ (Elementor): BPOAI-clone restyle. Tokens from clone/base.css. Scoped to body.poea-country. */
body.poea-country .elementor { --e-global-color-text: var(--text-secondary); }
body.poea-country .elementor-section.elementor-section-boxed > .elementor-container { max-width: 1216px; } /* r26: header/footer content edge (112px at 1440), was 1152 = x144 */
body.poea-country .elementor-widget:not(:last-child) { margin-bottom: 12px; }

/* Hero: rounded image card, one tidy row (text + small flag) */
body.poea-country .elementor-element-3df27200 { border-radius: 24px; overflow: hidden; max-width: min(1216px, calc(100% - 32px)); margin-inline: auto !important; left: auto !important; width: auto !important; }
body.poea-country .elementor-element-5e1651ff { padding: 40px 16px; }
body.poea-country .elementor-element-5e1651ff .elementor-container { align-items: center; }
body.poea-country .elementor-element-3df27200 .elementor-heading-title { color: #fff !important; }
body.poea-country .elementor-element-7cb52480 .elementor-heading-title { font: 600 12px/16px var(--font-sans); letter-spacing: .08em; text-transform: uppercase; }
body.poea-country .elementor-element-352a5cb1 .elementor-heading-title { font: 700 clamp(28px, 5vw, 44px)/1.1 var(--font-sans); letter-spacing: -.025em; text-wrap: balance; }
body.poea-country .elementor-element-3df27200 .elementor-widget-text-editor, body.poea-country .elementor-element-3df27200 .elementor-widget-text-editor p { color: #fff !important; font-size: 16px; line-height: 24px; }
body.poea-country .elementor-element-bf2e987 { text-align: right; }
body.poea-country .elementor-element-bf2e987 img { width: 120px; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 12px; box-shadow: 0 8px 24px #0006; border: 2px solid #ffffff80; }
@media (max-width: 767px) { body.poea-country .elementor-element-bf2e987 { text-align: left; } }

/* Intro heading + subtitle */
body.poea-country .elementor-element-237e608 { padding: 40px 0 0; }
body.poea-country .elementor-element-72a7227 .elementor-heading-title { font: 700 clamp(30px, 5vw, 44px)/1.1 var(--font-sans); letter-spacing: -.025em; text-align: center; }
body.poea-country .elementor-element-562a027, body.poea-country .elementor-element-562a027 p { text-align: center; color: var(--text-secondary); }
body.poea-country .elementor-element-5207b3d { max-width: 100%; overflow: hidden; }
body.poea-country .elementor-element-5207b3d ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }

/* Main split: filter + list | notes */
body.poea-country .elementor-element-19e10d9 { padding: 16px 0 64px; }
body.poea-country .elementor-element-19e10d9 > .elementor-container { align-items: flex-start; }
body.poea-country .elementor-element-19e10d9 .elementor-widget-wrap { gap: 0; }
@media (max-width: 767px) { body.poea-country .elementor-element-19e10d9 .elementor-column { width: 100% !important; } }
body.poea-country .elementor-element-09a7482 .elementor-heading-title { font: 600 18px/24px var(--font-sans); color: var(--text-primary); text-align: left; }

/* Filter panel: glass card, pill inputs */
body.poea-country .job_filters { padding: 20px; border-radius: 16px; background: var(--primary-50); border: 1px solid var(--primary-glow); box-shadow: var(--card-shadow); }
body.poea-country .job_filters .search_jobs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
body.poea-country .job_filters .search_jobs > * { min-width: 0; margin: 0; }
body.poea-country .job_filters .search_jobs > :is(.search_remote_position, .advanced-search-btn, .advanced-search-filters) { grid-column: 1 / -1; }
body.poea-country .job_filters .search_jobs > div[style] { display: none; }
@media (max-width: 639px) { body.poea-country .job_filters .search_jobs { grid-template-columns: 1fr; } }
body.poea-country .job_filters label { display: block; margin-bottom: 4px; font: 500 13px/18px var(--font-sans); color: var(--text-secondary); }
body.poea-country .job_filters :is(input[type="text"], select) { width: 100%; height: 44px; padding: 0 16px; border-radius: 22px; font: 400 14px/20px var(--font-sans); background: var(--input-bg); border: 1px solid var(--input-border); color: var(--input-text); box-shadow: none; }
body.poea-country .job_filters :is(input, select):focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-100); }
body.poea-country .job_filters .search_remote_position { display: flex; align-items: center; gap: 8px; }
body.poea-country .job_filters .search_remote_position label { margin: 0; }
body.poea-country .job_filters .advanced-search-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin-top: 0; } /* the grid row gap already spaces it */
body.poea-country .job_filters .advanced-search-filters .filter_wide { grid-column: 1 / -1; }
body.poea-country .job_filters #advance-search { display: inline-block; padding: 6px 0; font-size: 13px; font-weight: 500; }
body.poea-country .filter_by_tag { font-size: 13px; color: var(--text-secondary); }
body.poea-country .filter_by_tag_cloud { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
body.poea-country .filter_by_tag_cloud a { font-size: 12px !important; line-height: 16px; padding: 4px 10px; border-radius: 999px; background: var(--background-secondary); border: 1px solid var(--border-subtle); }
body.poea-country .job_filters ul.job_types { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
body.poea-country .job_filters ul.job_types li { margin: 0; }
body.poea-country .job_filters ul.job_types label { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 6px 12px; border-radius: 999px; background: var(--background-secondary); border: 1px solid var(--border-subtle); font-size: 13px; cursor: pointer; }
body.poea-country .job_filters ul.job_types input[type="checkbox"] { width: 24px; height: 24px; margin: 0; accent-color: var(--primary); }
body.poea-country .showing_jobs { margin: 12px 0; font-size: 13px; color: var(--text-muted); }

/* Job rows (markup c-job-row from the theme): separate rounded cards like /poea-jobs/ */
body.poea-country ul.job_listings { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; background: none; border: 0; box-shadow: none; }
body.poea-country ul.job_listings > li { margin: 0; border-radius: 16px; overflow: hidden; background: var(--background-secondary); border: 1px solid var(--border-subtle); box-shadow: var(--card-shadow); transition: border-color .15s; }
@media (hover: hover) { body.poea-country ul.job_listings > li:hover { border-color: var(--primary); } }
body.poea-country a.load_more_jobs { display: inline-flex; margin-top: 16px; padding: 10px 20px; border-radius: 999px; background: #303af7; color: #fff !important; font-weight: 600; }

/* Alerts */
body.poea-country .elementor-alert { margin: 0; padding: 16px 20px; border-radius: 16px; border: 1px solid var(--border-subtle); background: var(--background-secondary); box-shadow: var(--card-shadow); }
body.poea-country .elementor-alert-success { background: color-mix(in srgb, var(--success) 8%, var(--background-secondary)); border-color: color-mix(in srgb, var(--success) 30%, transparent); }
body.poea-country .elementor-alert-info { background: var(--accent-50); border-color: var(--accent-glow); }
body.poea-country .elementor-alert-title { font: 600 15px/22px var(--font-sans); color: var(--text-primary) !important; }
body.poea-country .elementor-alert-description { font-size: 14px; line-height: 22px; color: var(--text-secondary) !important; }

/* Empty stretched section (4 empty columns): collapse */
body.poea-country .elementor-element-9eab67c { display: none; }
body.poea-country .elementor-element-5207b3d:not(:has(ins[data-ad-status="filled"])) { display: none; }

/* Hero without a background image (e.g. Singapore): brand gradient so the white text stays readable */
body.poea-country .elementor-element-3df27200 { background-color: #1e1b4b; background-image: linear-gradient(135deg, #181c95, #303af7); }
body.poea-country .elementor-element-3df27200:not(:has(.elementor-background-overlay)) { background-blend-mode: normal; }
/* Ad column: keep the (white) ad iframe inside a rounded card */
body.poea-country .elementor-element-115590c { border-radius: 16px; overflow: hidden; max-width: 100%; }
body.poea-country .elementor-alert a { color: var(--primary-light) !important; text-decoration: underline; }
[data-theme="dark"] body.poea-country .elementor-alert a { color: #92adfe !important; }
body.poea-country .job_filters .advanced-search-filters { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* ---- Compact pass (mobile first): short hero, filters folded, list near the top, alerts folded ---- */
body.poea-country .elementor-element-5e1651ff { padding: 20px 16px; }
body.poea-country .elementor-element-5e1651ff .elementor-widget:not(:last-child) { margin-bottom: 6px; }
body.poea-country .elementor-element-352a5cb1 .elementor-heading-title { font-size: clamp(26px, 5vw, 40px); line-height: 1.1; }
body.poea-country .elementor-element-bf2e987 img { width: 72px; }
@media (max-width: 767px) {
	body.poea-country .elementor-element-5e1651ff .elementor-container { flex-wrap: nowrap; }
	body.poea-country .elementor-element-1fb209bf { width: auto !important; flex: 1 1 0; min-width: 0; }
	body.poea-country .elementor-element-10c67d68 { width: 84px !important; flex: none; }
	body.poea-country .elementor-element-bf2e987 { text-align: right; }
	body.poea-country .elementor-element-237e608 { padding-top: 16px; }
	body.poea-country .elementor-element-19e10d9 { padding-bottom: 24px; }
	body.poea-country .elementor-element-6b4a5be .elementor-widget-wrap { display: grid; gap: 12px; }
}
body.poea-country .c-country-filters { margin-bottom: 8px; padding: 0 12px; border-radius: 16px; background: var(--primary-50); border: 1px solid var(--primary-glow); }
body.poea-country .c-country-filters[open] { padding-bottom: 12px; }
body.poea-country .c-country-filters .job_filters { padding: 8px 0 0; background: none; border: 0; box-shadow: none; }
body.poea-country .elementor-alert { padding: 12px 16px; }
body.poea-country .elementor-alert .c-collapse { margin-top: 2px; }
body.poea-country .elementor-alert .c-collapse__summary { min-height: 44px; }
body.poea-country .c-country-all { margin: 12px 0 0; } body.poea-country .c-country-all a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: underline; }

/* ---- Round 13 ---- */
/* Ad slot: never wider than the column (Google's full-width-responsive script sets a px width + negative margin inline). Markup and script stay. */
body.poea-country :is(.elementor-element-6b4a5be, .elementor-element-6b4a5be .elementor-widget-wrap, .elementor-widget-html, .elementor-widget-html .elementor-widget-container) { max-width: 100%; min-width: 0; overflow: hidden; }
body.poea-country ins.adsbygoogle { max-width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; overflow: hidden; }
/* Empty slot takes no room; once Google marks it filled these rules stop matching. */
body.poea-country ins.adsbygoogle:not([data-ad-status="filled"]) { min-height: 0 !important; height: 0 !important; }
body.poea-country .elementor-widget-html:not(:has(ins[data-ad-status="filled"])) { margin: 0 !important; }
body.poea-country .elementor-widget-html:not(:has(ins[data-ad-status="filled"])) > .elementor-widget-container { min-height: 0 !important; height: auto !important; }
/* Compact job rows */
@media (max-width: 767px) {
	body.poea-country .c-job-row { padding: 10px 12px; gap: 4px 10px; }
	body.poea-country .c-job-row .c-logo { width: 36px; height: 36px; }
	body.poea-country .c-job-row__body { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; }
	body.poea-country .c-job-row__body .c-meta, body.poea-country .c-job-row__body .c-badges { margin: 0; }
	body.poea-country .c-job-row__aside { font-size: 12px; margin-top: -2px; }
	body.poea-country ul.job_listings { gap: 8px; }
	body.poea-country .elementor-element-09a7482 { margin-bottom: 4px; }
	body.poea-country .elementor-element-237e608 { padding-top: 8px; }
	body.poea-country .elementor-element-237e608 .elementor-widget:not(:last-child) { margin-bottom: 4px; }
	body.poea-country .elementor-element-5e1651ff { padding: 14px 14px; }
	body.poea-country .elementor-element-352a5cb1 .elementor-heading-title { font-size: 28px; }
}

/* ---- Round 14: hero fills the 16px gutters (article already has them), flag small in the corner, no empty bands ---- */
body.poea-country .elementor-element-3df27200 { max-width: min(1216px, 100%); width: 100% !important; }
@media (max-width: 767px) {
	body.poea-country .elementor-element-3df27200 { margin-top: 0 !important; position: relative; }
	body.poea-country .elementor-element-7fd92064 > .elementor-widget-wrap { padding-top: 0; }
	body.poea-country .elementor-element-5e1651ff { padding: 16px; }
	body.poea-country .elementor-element-5e1651ff .elementor-container { display: block; }
	body.poea-country .elementor-element-1fb209bf { width: 100% !important; }
	body.poea-country .elementor-element-10c67d68 { position: absolute; top: 14px; right: 14px; width: 48px !important; }
	body.poea-country .elementor-element-bf2e987 img { width: 48px; border-radius: 8px; }
	body.poea-country .elementor-element-1fb209bf .elementor-widget-wrap { padding-right: 0; }
	body.poea-country .elementor-element-352a5cb1 .elementor-heading-title { font-size: 28px; padding-right: 56px; }
	body.poea-country .elementor-element-19e10d9 { margin-top: 0 !important; }
	body.poea-country .elementor-element-4f24964 > .elementor-widget-wrap { margin-top: 0; padding-top: 0; }
}
@media (max-width: 767px) { body.poea-country .elementor-element-1fb209bf :is(.elementor-widget, .elementor-heading-title, p) { text-align: left !important; } }

/* ---- Round 15: h1 stays within 2 lines for every country name; hero centred ---- */
body.poea-country .elementor-element-352a5cb1 .elementor-heading-title { hyphens: none; overflow-wrap: normal; text-wrap: balance; }
@media (max-width: 767px) {
	body.poea-country .elementor-element-352a5cb1 .elementor-heading-title { padding-right: 0; font-size: clamp(22px, 7vw, 30px); line-height: 1.1; }
	body.poea-country.poea-country--long .elementor-element-352a5cb1 .elementor-heading-title { font-size: clamp(17px, 5.4vw, 24px); }
	body.poea-country.poea-country--xlong .elementor-element-352a5cb1 .elementor-heading-title { font-size: clamp(15px, 4.8vw, 21px); }
	body.poea-country .elementor-element-7cb52480 .elementor-heading-title { padding-right: 56px; } /* eyebrow clears the flag badge */
}
@media (min-width: 768px) {
	body.poea-country .elementor-element-3df27200 { margin-inline: auto !important; }
	body.poea-country .elementor-element-3df27200, body.poea-country .elementor-element-7fd92064 { left: auto !important; right: auto !important; }
}
@media (min-width: 768px) { body.poea-country .elementor-element-3df27200 { margin-left: max(0px, calc((100% - 1216px) / 2)) !important; margin-right: 0 !important; } }
@media (min-width: 768px) { body.poea-country .l-app .elementor-section.elementor-section-stretched.elementor-element-3df27200 { margin-left: max(0px, calc((100% - 1216px) / 2)) !important; } }

/* ---- Round 16: hero centred at every width (flag above the text), blank logo boxes hidden, ad slot centred ---- */
body.poea-country .elementor-element-5e1651ff .elementor-container { display: flex; flex-direction: column; align-items: center; text-align: center; }
body.poea-country .elementor-element-5e1651ff .elementor-column { width: 100% !important; max-width: 640px; flex: none; }
body.poea-country .elementor-element-10c67d68 { order: -1; position: static !important; width: 100% !important; }
body.poea-country .elementor-element-bf2e987, body.poea-country .elementor-element-bf2e987 .elementor-widget-container { text-align: center !important; }
body.poea-country .elementor-element-bf2e987 img { width: 64px; margin-inline: auto; }
body.poea-country .elementor-element-3df27200 :is(.elementor-widget, .elementor-heading-title, p) { text-align: center !important; }
body.poea-country .elementor-element-7cb52480 .elementor-heading-title, body.poea-country .elementor-element-352a5cb1 .elementor-heading-title { padding-right: 0 !important; }
body.poea-country .elementor-element-5e1651ff { padding: 24px 16px; }
body.poea-country .c-job-row .c-logo:not(:has(img)):empty { display: none; }
body.poea-country .c-job-row .c-logo:has(img[src=""]), body.poea-country .c-job-row .c-logo:has(img[src*="placeholder"]) { display: none; }
/* Ad: centre inside its column; overflow clipped on the column, not on the iframe's own box */
body.poea-country .elementor-element-6b4a5be .elementor-widget-html .elementor-widget-container { display: flex; justify-content: center; }
body.poea-country ins.adsbygoogle { text-align: center; }
body.poea-country ins.adsbygoogle > div { margin-inline: auto !important; max-width: 100%; }
/* Empty bands: Elementor hero pb 150px, intro mt 70px, main mt 50px */
body.poea-country .elementor-element-3df27200 { padding-bottom: 0 !important; }
body.poea-country .elementor-element-237e608 { margin-top: 24px !important; padding-top: 0 !important; }
body.poea-country .elementor-element-19e10d9 { margin-top: 0 !important; }

/* ---- Round 18: type scale. h1 same scale on every country page (min 26px), h5/h6 600 ---- */
body.poea-country .elementor-element-352a5cb1 .elementor-heading-title, body.poea-country[class] .elementor-element-352a5cb1 .elementor-heading-title { font-size: clamp(28px, 2.5vw + 18px, 44px) !important; font-weight: 700 !important; line-height: 1.15 !important; letter-spacing: -.025em; }
@media (max-width: 414px) { body.poea-country[class] .elementor-element-352a5cb1 .elementor-heading-title { font-size: 26px !important; } }
body.poea-country .elementor :is(h5, h6) { font-weight: 600; }
body.poea-country .elementor :is(h5, h6).elementor-heading-title { font-weight: 600 !important; }

/* ---- Round 21: empty band above the footer (section pb64 + mb50 + page pb64 = 188px), card hierarchy like /poea-jobs/ ---- */
body.poea-country .elementor-element-19e10d9 { margin-bottom: 0 !important; padding-bottom: 16px; }
body.poea-country .l-clear-header { padding-bottom: 48px; }
body.poea-country .c-job-row__title a { color: var(--text-primary); text-transform: none; }
body.poea-country .c-job-row__company a { color: var(--text-secondary); }
@media (hover: hover) { body.poea-country .c-job-row:hover .c-job-row__title a { color: var(--primary); } }

/* ---- Round 22: mobile band above the footer 118px -> <=80px ---- */
@media (max-width: 767px) {
	body.poea-country .l-clear-header { padding-bottom: 16px; }
	body.poea-country .elementor-element-19e10d9 { padding-bottom: 0; }
	body.poea-country .elementor-element-19e10d9 .elementor-widget-wrap { padding-bottom: 0; }
}

/* ---- Round 26: main split edges line up with the hero/footer (Elementor's 10px column padding put content 10px inside), both columns start at the same top ---- */
body.poea-country .elementor-element-19e10d9 .elementor-column > .elementor-widget-wrap { margin-top: 0; padding: 0; } /* Elementor's 21px top margin on the left wrap */
body.poea-country .elementor-element-19e10d9 .elementor-column:last-child { flex-grow: 1; } /* % widths left the sidebar 4px short of the hero edge */
@media (min-width: 768px) { body.poea-country .elementor-element-19e10d9 .elementor-column:first-child > .elementor-widget-wrap { padding-right: 24px; } }
@media (max-width: 767px) { body.poea-country .elementor-element-19e10d9 .elementor-column + .elementor-column { margin-top: 16px; } }
