/**
 * NewEra base styles: typography + layout primitives on top of tokens.css.
 * Component classes live in components.css; per-template CSS in its own file.
 */

html { overflow-x: clip; }

body {
	max-width: 100%;
	/* clip (not hidden): hidden makes body a scroll container, which
	   silently disables every position:sticky descendant (quick links). */
	overflow-x: clip;
	font-family: var(--ne-font);
	font-size: var(--ne-b1-size);
	line-height: var(--ne-b1-line);
	color: var(--ne-neutral-1000);
	background: var(--ne-neutral-100);
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--ne-font);
	color: var(--ne-primary-500);
	font-weight: 700;
}

h1 { font-size: var(--ne-h1-size); line-height: var(--ne-h1-line); }
h2 { font-size: var(--ne-h2-size); line-height: var(--ne-h2-line); }
h3 { font-size: var(--ne-h4-size); line-height: var(--ne-h4-line); }
h4 { font-size: var(--ne-h6-size); line-height: var(--ne-h6-line); }

*, *::before, *::after { box-sizing: border-box; }

a { color: var(--ne-primary-400); }

img { max-width: 100%; height: auto; }

.ne-container {
	max-width: var(--ne-container);
	margin-inline: auto;
	padding-inline: var(--ne-space-xl);
}

/* Vertical rhythm for stacked page sections */
.ne-section { padding-block: var(--ne-space-6xl); }
.ne-section--tight { padding-block: var(--ne-space-4xl); }
.ne-section--tint { background: var(--ne-tertiary-100); }
.ne-section--muted { background: var(--ne-primary-a10); }
.ne-section--gray { background: #f5f7fb; }

/* Utility */
.ne-visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0);
	white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------------- *
 *  GeneratePress layout neutralisation — the NewEra design is
 *  full-width with its own .ne-container gutters, so strip GP's
 *  site max-width, padding and separators.
 * ---------------------------------------------------------------- */
.site-content .content-area,
.site-main,
.inside-article,
.entry-content { max-width: none; }
#page.site,
.site-content,
#content.site-content { max-width: none; padding: 0; margin: 0; }
.separate-containers .inside-article,
.separate-containers .site-main { margin: 0; }
.generate-columns-container { margin: 0; }
body .site-content { display: block; }

/* ---------------------------------------------------------------- *
 *  Responsive heading scale-down
 * ---------------------------------------------------------------- */
@media (max-width: 1024px) {
	h1 { font-size: 44px; line-height: 1.15; }
	h2 { font-size: 36px; line-height: 1.2; }
	h3 { font-size: 28px; line-height: 1.25; }
	.ne-sechead__title { font-size: 28px; line-height: 1.25; }
	.ne-container { padding-inline: var(--ne-space-l); }
}

@media (max-width: 640px) {
	h1 { font-size: 34px; line-height: 1.15; }
	h2 { font-size: 28px; line-height: 1.2; }
	h3 { font-size: 24px; line-height: 1.25; }
	.ne-sechead__title { font-size: 24px; line-height: 1.3; }
	.ne-cta-banner__title { font-size: 26px; line-height: 1.25; }
	.ne-section { padding-block: var(--ne-space-4xl); }
	.ne-container { padding-inline: var(--ne-space-m); }
}

/* Add to your theme stylesheet (e.g. the file that styles .ne-map) */
.ne-map-label {
	background: #fff;
	border: 0;
	border-radius: 4px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
	font-weight: 600;
	font-size: 12px;
	padding: 2px 8px;
	white-space: nowrap;
}
.ne-map-label::before { display: none; } /* hide the tooltip arrow */

/*International home page css journey*/
.ne-journey { --jn-teal: var(--ne-teal, #00bcd4); --jn-dark: #5c5c5c; --jn-gap: 48px; --jn-dot-y: 64px; }
.ne-journey__head { text-align: center; margin-bottom: 56px; }

.ne-journey__list { display: flex; flex-direction: column; gap: var(--jn-gap); }

.ne-journey__row {
	display: grid;
	grid-template-columns: 1fr 120px 1fr;
	position: relative;
}
.ne-journey__row--left  .ne-journey__card { grid-column: 1; }
.ne-journey__row--left  .ne-journey__rail { grid-column: 2; }
.ne-journey__row--right .ne-journey__card { grid-column: 3; grid-row: 1; }
.ne-journey__row--right .ne-journey__rail { grid-column: 2; grid-row: 1; }

/* Card */
.ne-journey__card {
	position: relative;
	display: flex;
	gap: 20px;
	align-items: flex-start;
	min-height: 128px;
	padding: 22px 22px 22px 18px;
	background: #fff;
	border-radius: 15px;
	box-shadow: 2px 2px 7px rgba(0, 0, 0, .22);
}
/* pointer toward the centre line */
.ne-journey__card::after {
	content: "";
	position: absolute;
	top: calc(var(--jn-dot-y) - 11px);
	width: 22px; height: 22px;
	background: #fff;
	transform: rotate(45deg);
}
.ne-journey__row--left  .ne-journey__card::after { right: -11px; box-shadow: 3px -2px 3px rgba(0,0,0,.12); }
.ne-journey__row--right .ne-journey__card::after { left: -11px;  box-shadow: -3px 2px 3px rgba(0,0,0,.12); }

/* Teal tab with icon (replaces the step number) */
.ne-journey__tab {
	flex: 0 0 76px;
	height: 84px;
	margin-top: -42px;
	display: flex; align-items: center; justify-content: center;
	background: var(--jn-teal);
	border-radius: 0 0 10px 10px;
	box-shadow: -6px 8px 0 rgba(0, 0, 0, .08);
	position: relative;
}
.ne-journey__tab::before,
.ne-journey__tab::after {      /* folded corners */
	content: ""; position: absolute; top: 0;
	border: 8px solid transparent;
}
.ne-journey__tab::before { left: -16px;  border-bottom-color: #048898; border-right-color: #048898; }
.ne-journey__tab::after  { right: -16px; border-bottom-color: #048898; border-left-color: #048898; }
.ne-journey__tab svg, .ne-journey__iconimg { width: 34px; height: 34px; color: #fff; }
.ne-journey__iconimg { object-fit: contain; filter: brightness(0) invert(1); }

.ne-journey__title { margin: 0 0 6px; font-size: 18px; line-height: 1.3; }
.ne-journey__text  { margin: 0 0 10px; font-size: 14px; line-height: 1.55; color: #4b5563; }
.ne-journey__link  { font-weight: 600; font-size: 14px; color: var(--jn-teal); text-decoration: none; }
.ne-journey__link:hover { text-decoration: underline; }

/* Centre rail: dots + diagonal connectors */
.ne-journey__rail { position: relative; }
.ne-journey__dot {
	position: absolute;
	top: calc(var(--jn-dot-y) - 14px);
	width: 28px; height: 28px;
	box-sizing: border-box;
	border-radius: 50%;
	background: #fff;
	border: 8px solid var(--jn-teal);
	box-shadow: 0 0 0 4px var(--jn-dark);
	z-index: 2;
}
.ne-journey__row--left  .ne-journey__dot { left: 8px; }
.ne-journey__row--right .ne-journey__dot { right: 8px; }

.ne-journey__diag {
	position: absolute;
	top: var(--jn-dot-y);
	left: 22px; right: 22px;                    /* dot centre to dot centre */
	height: calc(100% + var(--jn-gap));         /* to the next row's dot */
	z-index: 1;
}
.ne-journey__row--left  .ne-journey__diag { background: linear-gradient(to top right, transparent calc(50% - 2.5px), var(--jn-dark) calc(50% - 2.5px), var(--jn-dark) calc(50% + 2.5px), transparent calc(50% + 2.5px)); }
.ne-journey__row--right .ne-journey__diag { background: linear-gradient(to top left,  transparent calc(50% - 2.5px), var(--jn-dark) calc(50% - 2.5px), var(--jn-dark) calc(50% + 2.5px), transparent calc(50% + 2.5px)); }

/* Mobile: single column, no rail */
@media (max-width: 860px) {
	.ne-journey__row { grid-template-columns: 1fr; }
	.ne-journey__row .ne-journey__card { grid-column: 1 !important; grid-row: auto !important; margin-top: 30px; }
	.ne-journey__rail, .ne-journey__card::after { display: none; }
}
@media (max-width: 480px) {
	.ne-journey__card { flex-direction: column; }
	.ne-journey__tab { margin-top: -50px; }
}
