/* QA fix: country hub template (all /en-*/ pages). Loaded last. */

/* ---------- Hero ---------- */
.country-hub > section.hub-section:first-of-type{padding-block:28px 40px}
.country-hub > section.hub-section:first-of-type > .wrap{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));column-gap:24px;row-gap:0;align-items:start;position:relative}
.country-hub > section.hub-section:first-of-type > .wrap > *{grid-column:1 / 4;margin-left:0;margin-right:0;min-width:0}

/* eyebrow, region, title, strapline, intro */
.country-hub > section.hub-section:first-of-type > .wrap > p.elementor-icon-box-description:first-child{
  grid-row:1;margin:0 0 6px;font-size:15px;font-weight:600;letter-spacing:.02em;color:#a81751}
.country-hub > section.hub-section:first-of-type > .wrap > p:nth-of-type(2){grid-row:2;margin:0 0 4px;font-size:15px;color:#64748b}
.country-hub > section.hub-section:first-of-type > .wrap > h1{
  grid-row:3;margin:6px 0 10px !important;font-family:Barlow,sans-serif !important;
  font-size:clamp(2rem,1.25rem + 2.6vw,3.25rem) !important;line-height:1.08 !important;font-weight:600 !important;
  letter-spacing:-.01em;color:#2D2E5F !important;max-width:none}
.country-hub > section.hub-section:first-of-type > .wrap > h1 + h3{
  grid-row:4;margin:0 0 12px !important;font-size:clamp(1.2rem,1rem + .7vw,1.5rem) !important;line-height:1.3 !important;font-weight:500 !important;color:#2D2E5F}
.country-hub > section.hub-section:first-of-type > .wrap > h1 + h3 + p{grid-row:5;margin:0 0 18px;max-width:72ch}

/* primary hero CTAs */
.country-hub > section.hub-section:first-of-type > .wrap > a[href="#explore"]{grid-column:1;grid-row:6}
.country-hub > section.hub-section:first-of-type > .wrap > a[href="#explore"] + a{grid-column:2;grid-row:6}
.country-hub > section.hub-section:first-of-type > .wrap > a[href="#explore"],
.country-hub > section.hub-section:first-of-type > .wrap > a[href="#explore"] + a{
  justify-self:stretch;margin:0 !important;display:inline-flex;align-items:center;justify-content:center;text-align:center}

/* side panel: background box, flag, tagline, demo and pricing CTAs */
.country-hub > section.hub-section:first-of-type > .wrap::before{
  content:"";grid-column:4;grid-row:1 / 7;align-self:stretch;min-height:320px;
  border:1px solid #e4dfed;border-radius:20px;background:rgba(255,255,255,.86);box-shadow:0 10px 30px rgba(45,46,95,.07)}
.country-hub > section.hub-section:first-of-type > .wrap > img.hub-flag{
  grid-column:4;grid-row:1 / 7;align-self:start;justify-self:start;position:relative;z-index:1;
  width:auto;height:44px;max-width:88px;margin:24px 24px 0 !important}
.country-hub > section.hub-section:first-of-type > .wrap > img.hub-flag + h3{display:none !important}
.country-hub > section.hub-section:first-of-type > .wrap > img.hub-flag ~ p{
  grid-column:4;grid-row:1 / 7;align-self:start;position:relative;z-index:1;margin:84px 24px 0 !important;font-size:15px;color:#475569}
.country-hub > section.hub-section:first-of-type > .wrap > img.hub-flag ~ p + a,
.country-hub > section.hub-section:first-of-type > .wrap > img.hub-flag ~ p + a + a{
  grid-column:4;grid-row:1 / 7;align-self:end;justify-self:stretch;position:relative;z-index:1;
  display:flex !important;align-items:center;justify-content:center;box-sizing:border-box;height:46px;min-height:46px;
  margin:0 24px 24px !important;padding:0 16px;border-radius:999px;text-align:center;white-space:nowrap}
.country-hub > section.hub-section:first-of-type > .wrap > img.hub-flag ~ p + a{
  margin-bottom:82px !important;background:#2D2E5F;color:#fff;border:1px solid #2D2E5F;text-decoration:none;font-weight:600;font-size:15px}
.country-hub > section.hub-section:first-of-type > .wrap > img.hub-flag ~ p + a:hover,
.country-hub > section.hub-section:first-of-type > .wrap > img.hub-flag ~ p + a:focus-visible{background:#a81751;border-color:#a81751;color:#fff}
.country-hub > section.hub-section:first-of-type > .wrap > img.hub-flag ~ p + a .elementor-button-text{color:inherit}

/* regulator cards: own full-width grid row below the hero text */
.country-hub > section.hub-section:first-of-type > .wrap > article.hub-regulator-card{
  grid-column:auto;grid-row:7;align-self:stretch;display:flex;flex-direction:column;width:auto;margin:32px 0 0 !important;
  padding:20px;border-radius:18px;box-sizing:border-box}
.country-hub > section.hub-section:first-of-type > .wrap > article.hub-regulator-card:nth-of-type(n+5){grid-row:8;margin-top:24px !important}
.country-hub .hub-regulator-card .hub-regulator-mark{display:none}
.country-hub .hub-regulator-card h3.fw-cards__name{margin:0 0 4px !important;font-size:22px;font-weight:600}
.country-hub .hub-regulator-card .fw-cards__full{margin:0 0 14px;font-size:15px}
.country-hub .hub-regulator-card .fw-cards__label{margin:auto 0 2px;padding-top:12px;border-top:1px solid #ece8f3;font-size:13px;font-weight:600;color:#2D2E5F}
.country-hub .hub-regulator-card .fw-cards__industries{margin:0;font-size:15px}

@media (max-width:1023px){
  .country-hub > section.hub-section:first-of-type > .wrap{grid-template-columns:repeat(2,minmax(0,1fr))}
  .country-hub > section.hub-section:first-of-type > .wrap > *{grid-column:1 / -1;grid-row:auto !important}
  .country-hub > section.hub-section:first-of-type > .wrap::before{display:none}
  .country-hub > section.hub-section:first-of-type > .wrap > a[href="#explore"]{grid-column:1}
  .country-hub > section.hub-section:first-of-type > .wrap > a[href="#explore"] + a{grid-column:2}
  .country-hub > section.hub-section:first-of-type > .wrap > img.hub-flag{grid-column:1 / -1;height:36px;margin:28px 0 0 !important}
  .country-hub > section.hub-section:first-of-type > .wrap > img.hub-flag ~ p{grid-column:1 / -1;margin:10px 0 14px !important}
  .country-hub > section.hub-section:first-of-type > .wrap > img.hub-flag ~ p + a{grid-column:1;margin:0 !important}
  .country-hub > section.hub-section:first-of-type > .wrap > img.hub-flag ~ p + a + a{grid-column:2;margin:0 !important}
  .country-hub > section.hub-section:first-of-type > .wrap > article.hub-regulator-card{grid-column:auto;margin:20px 0 0 !important}
}
@media (max-width:599px){
  .country-hub > section.hub-section:first-of-type > .wrap{grid-template-columns:minmax(0,1fr)}
  .country-hub > section.hub-section:first-of-type > .wrap > a[href="#explore"],
  .country-hub > section.hub-section:first-of-type > .wrap > a[href="#explore"] + a,
  .country-hub > section.hub-section:first-of-type > .wrap > img.hub-flag ~ p + a,
  .country-hub > section.hub-section:first-of-type > .wrap > img.hub-flag ~ p + a + a{grid-column:1 / -1}
  .country-hub > section.hub-section:first-of-type > .wrap > a[href="#explore"] + a{margin-top:10px !important}
  .country-hub > section.hub-section:first-of-type > .wrap > img.hub-flag ~ p + a + a{margin-top:10px !important}
  .country-hub > section.hub-section:first-of-type > .wrap > article.hub-regulator-card{grid-column:1 / -1;margin:14px 0 0 !important}
  .country-hub > section.hub-section:first-of-type > .wrap > article.hub-regulator-card:first-of-type{margin-top:28px !important}
}

/* ---------- Flags: thin outline so white fields keep their shape ---------- */
.country-hub img.hub-flag{object-fit:contain;box-shadow:0 0 0 1px rgba(15,23,42,.14);border-radius:2px;background:transparent}
.country-hub img.hub-flag[src$="/np.svg"]{box-shadow:none;border-radius:0}

/* ---------- Supervisory priorities: card grid, numbers via counter ---------- */
.country-hub .hub-section:has(> .wrap > h3 + .hub-step-number) > .wrap{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;counter-reset:hubprio}
.country-hub .hub-section:has(> .wrap > h3 + .hub-step-number) > .wrap > *{grid-column:1 / -1;margin-bottom:0}
.country-hub .hub-section:has(> .wrap > h3 + .hub-step-number) > .wrap > p:last-of-type{margin-bottom:8px}
.country-hub .hub-section:has(> .wrap > h3 + .hub-step-number) > .wrap > .hub-step-number{display:none}
.country-hub .hub-section:has(> .wrap > h3 + .hub-step-number) > .wrap > h3{
  grid-column:auto;margin:0 !important;padding:18px 20px 20px;border:1px solid #e4dfed;border-radius:16px;background:rgba(255,255,255,.86);
  font-size:18px !important;line-height:1.35;counter-increment:hubprio}
.country-hub .hub-section:has(> .wrap > h3 + .hub-step-number) > .wrap > h3::before{content:counter(hubprio,decimal-leading-zero);display:block;margin-bottom:8px;color:#a81751;font-size:15px;font-weight:600}

/* ---------- Connected operating model: three step cards ---------- */
.country-hub .hub-section:has(> .wrap > .hub-step-number + h3 + p) > .wrap{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:16px;row-gap:0}
.country-hub .hub-section:has(> .wrap > .hub-step-number + h3 + p) > .wrap > *{grid-column:1 / -1}
.country-hub .hub-section:has(> .wrap > .hub-step-number + h3 + p) > .wrap > h2 + p{margin-bottom:22px}
.country-hub .hub-section:has(> .wrap > .hub-step-number + h3 + p) > .wrap > .hub-step-number{
  grid-row:4;margin:0;padding:18px 20px 0;border:1px solid #e4dfed;border-bottom:0;border-radius:16px 16px 0 0;background:#fff;display:block}
.country-hub .hub-section:has(> .wrap > .hub-step-number + h3 + p) > .wrap > h3{
  grid-row:5;margin:0 !important;padding:8px 20px 0;border-left:1px solid #e4dfed;border-right:1px solid #e4dfed;background:#fff !important;font-size:19px !important}
.country-hub .hub-section:has(> .wrap > .hub-step-number + h3 + p) > .wrap > h3 + p{
  grid-row:6;margin:0;padding:8px 20px 20px;border:1px solid #e4dfed;border-top:0;border-radius:0 0 16px 16px;background:#fff;max-width:none}
.country-hub .hub-section:has(> .wrap > .hub-step-number + h3 + p) > .wrap > .hub-step-number:nth-of-type(1),
.country-hub .hub-section:has(> .wrap > .hub-step-number + h3 + p) > .wrap > h3:nth-of-type(1),
.country-hub .hub-section:has(> .wrap > .hub-step-number + h3 + p) > .wrap > h3:nth-of-type(1) + p{grid-column:1}
.country-hub .hub-section:has(> .wrap > .hub-step-number + h3 + p) > .wrap > .hub-step-number:nth-of-type(2),
.country-hub .hub-section:has(> .wrap > .hub-step-number + h3 + p) > .wrap > h3:nth-of-type(2),
.country-hub .hub-section:has(> .wrap > .hub-step-number + h3 + p) > .wrap > h3:nth-of-type(2) + p{grid-column:2}
.country-hub .hub-section:has(> .wrap > .hub-step-number + h3 + p) > .wrap > .hub-step-number:nth-of-type(3),
.country-hub .hub-section:has(> .wrap > .hub-step-number + h3 + p) > .wrap > h3:nth-of-type(3),
.country-hub .hub-section:has(> .wrap > .hub-step-number + h3 + p) > .wrap > h3:nth-of-type(3) + p{grid-column:3}

/* ---------- Product briefs: three columns ---------- */
.country-hub .hub-section:has(> .wrap > h2.tvp-heading) > .wrap{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:24px;row-gap:0}
.country-hub .hub-section:has(> .wrap > h2.tvp-heading) > .wrap > *{grid-column:1 / -1}
.country-hub .hub-section:has(> .wrap > h2.tvp-heading) > .wrap > .tvp-intro{margin-bottom:24px}
.country-hub .hub-section:has(> .wrap > h2.tvp-heading) > .wrap > img.hub-product-logo{grid-row:4;align-self:end;justify-self:start;height:30px;width:auto;margin:0 0 6px}
.country-hub .hub-section:has(> .wrap > h2.tvp-heading) > .wrap > h3{grid-row:5;margin:8px 0 6px !important}
.country-hub .hub-section:has(> .wrap > h2.tvp-heading) > .wrap > h3 + p{grid-row:6;margin:0 0 8px;font-size:15px}
.country-hub .hub-section:has(> .wrap > h2.tvp-heading) > .wrap > h3 + p + ul{grid-row:7;margin:0}
.country-hub .hub-section:has(> .wrap > h2.tvp-heading) > .wrap > img.hub-product-logo:nth-of-type(1),
.country-hub .hub-section:has(> .wrap > h2.tvp-heading) > .wrap > h3:nth-of-type(1),
.country-hub .hub-section:has(> .wrap > h2.tvp-heading) > .wrap > h3:nth-of-type(1) + p,
.country-hub .hub-section:has(> .wrap > h2.tvp-heading) > .wrap > h3:nth-of-type(1) + p + ul{grid-column:1}
.country-hub .hub-section:has(> .wrap > h2.tvp-heading) > .wrap > img.hub-product-logo:nth-of-type(2),
.country-hub .hub-section:has(> .wrap > h2.tvp-heading) > .wrap > h3:nth-of-type(2),
.country-hub .hub-section:has(> .wrap > h2.tvp-heading) > .wrap > h3:nth-of-type(2) + p,
.country-hub .hub-section:has(> .wrap > h2.tvp-heading) > .wrap > h3:nth-of-type(2) + p + ul{grid-column:2}
.country-hub .hub-section:has(> .wrap > h2.tvp-heading) > .wrap > img.hub-product-logo:nth-of-type(3),
.country-hub .hub-section:has(> .wrap > h2.tvp-heading) > .wrap > h3:nth-of-type(3),
.country-hub .hub-section:has(> .wrap > h2.tvp-heading) > .wrap > h3:nth-of-type(3) + p,
.country-hub .hub-section:has(> .wrap > h2.tvp-heading) > .wrap > h3:nth-of-type(3) + p + ul{grid-column:3}

/* ---------- Closing product strip (logo + title x3) ---------- */
.country-hub .hub-section:has(> .wrap > img.hub-product-logo:first-child) > .wrap{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:24px;row-gap:0}
.country-hub .hub-section:has(> .wrap > img.hub-product-logo:first-child) > .wrap > img.hub-product-logo{grid-row:1;align-self:end;justify-self:start;height:30px;width:auto;margin:0}
.country-hub .hub-section:has(> .wrap > img.hub-product-logo:first-child) > .wrap > h3{grid-row:2;margin:10px 0 0 !important}
.country-hub .hub-section:has(> .wrap > img.hub-product-logo:first-child) > .wrap > img:nth-of-type(1),
.country-hub .hub-section:has(> .wrap > img.hub-product-logo:first-child) > .wrap > h3:nth-of-type(1){grid-column:1}
.country-hub .hub-section:has(> .wrap > img.hub-product-logo:first-child) > .wrap > img:nth-of-type(2),
.country-hub .hub-section:has(> .wrap > img.hub-product-logo:first-child) > .wrap > h3:nth-of-type(2){grid-column:2}
.country-hub .hub-section:has(> .wrap > img.hub-product-logo:first-child) > .wrap > img:nth-of-type(3),
.country-hub .hub-section:has(> .wrap > img.hub-product-logo:first-child) > .wrap > h3:nth-of-type(3){grid-column:3}

@media (max-width:767px){
  .country-hub .hub-section:has(> .wrap > h3 + .hub-step-number) > .wrap{grid-template-columns:minmax(0,1fr);gap:10px}
  .country-hub .hub-section:has(> .wrap > h3 + .hub-step-number) > .wrap > h3{padding:14px 16px}
  .country-hub .hub-section:has(> .wrap > .hub-step-number + h3 + p) > .wrap,
  .country-hub .hub-section:has(> .wrap > h2.tvp-heading) > .wrap,
  .country-hub .hub-section:has(> .wrap > img.hub-product-logo:first-child) > .wrap{display:block}
  .country-hub .hub-section:has(> .wrap > .hub-step-number + h3 + p) > .wrap > .hub-step-number{margin-top:12px}
  .country-hub .hub-section:has(> .wrap > h2.tvp-heading) > .wrap > img.hub-product-logo{display:block;margin:28px 0 4px}
  .country-hub .hub-section:has(> .wrap > img.hub-product-logo:first-child) > .wrap > img.hub-product-logo{display:block;margin:20px 0 0}
  .country-hub .hub-section:has(> .wrap > img.hub-product-logo:first-child) > .wrap > img.hub-product-logo:first-child{margin-top:0}
}

/* ---------- Mapping table: product logo links ---------- */
.country-hub .platform-fit > div{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.country-hub .platform-fit > div > br,.country-hub .platform-fit a.product-logo > br{display:none}
.country-hub .platform-fit a.product-logo{display:inline-flex;align-items:center;text-decoration:none !important;border-bottom:0}

/* ---------- Explore another country hub ---------- */
.country-hub .hub-related > .wrap{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:10px}
.country-hub .hub-related > .wrap > :not(a){grid-column:1 / -1;order:-1}
.country-hub .hub-related a.hub-country-link{width:auto;margin:0 !important;min-height:56px;padding:10px 14px}
.country-hub .hub-related a.hub-country-link .e-con-inner,
.country-hub .hub-related a.hub-country-link .e-con-inner > div{display:flex;align-items:center;gap:10px;width:100%;min-width:0;margin:0;padding:0}
.country-hub .hub-related a.hub-country-link .e-con-inner > div:first-child{flex:1 1 auto}
.country-hub .hub-related a.hub-country-link .e-con-inner > div:last-child{flex:0 0 auto;width:auto}
.country-hub .hub-related .elementor-widget-image-box{width:100%}
.country-hub .hub-related .elementor-image-box-wrapper{display:flex;align-items:center;justify-content:flex-start;gap:12px;text-align:left;margin:0}
.country-hub .hub-related .elementor-image-box-img{margin:0 !important;flex:0 0 auto;width:auto !important;line-height:0}
.country-hub .hub-related .elementor-image-box-img img.hub-flag{width:auto;height:24px;max-width:44px;margin:0}
.country-hub .hub-related .elementor-image-box-content{min-width:0;text-align:left}
.country-hub .hub-related .elementor-image-box-title{margin:0 !important;font-size:16px !important;line-height:1.3}
.country-hub .hub-related .elementor-image-box-description{display:none}
@media (max-width:599px){
  .country-hub .hub-related > .wrap{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .country-hub .hub-related a.hub-country-link{min-height:48px;padding:8px 10px}
  .country-hub .hub-related a.hub-country-link .e-con-inner > div:last-child{display:none}
  .country-hub .hub-related .elementor-image-box-wrapper{gap:8px}
  .country-hub .hub-related .elementor-image-box-img img.hub-flag{height:18px;max-width:32px}
  .country-hub .hub-related .elementor-image-box-title{font-size:14px !important;overflow-wrap:anywhere}
}
/* alphabetical order of country cards */
.country-hub .hub-related a.hub-country-link[href*="en-af/"]{order:1}
.country-hub .hub-related a.hub-country-link[href*="en-dz/"]{order:2}
.country-hub .hub-related a.hub-country-link[href*="en-ao/"]{order:3}
.country-hub .hub-related a.hub-country-link[href*="en-au/"]{order:4}
.country-hub .hub-related a.hub-country-link[href*="en-bh/"]{order:5}
.country-hub .hub-related a.hub-country-link[href*="en-bd/"]{order:6}
.country-hub .hub-related a.hub-country-link[href*="en-bt/"]{order:7}
.country-hub .hub-related a.hub-country-link[href*="en-cn/"]{order:8}
.country-hub .hub-related a.hub-country-link[href*="en-cd/"]{order:9}
.country-hub .hub-related a.hub-country-link[href*="en-eg/"]{order:10}
.country-hub .hub-related a.hub-country-link[href*="en-et/"]{order:11}
.country-hub .hub-related a.hub-country-link[href*="en-fr/"]{order:12}
.country-hub .hub-related a.hub-country-link[href*="en-de/"]{order:13}
.country-hub .hub-related a.hub-country-link[href*="en-gh/"]{order:14}
.country-hub .hub-related a.hub-country-link[href*="en-in/"]{order:15}
.country-hub .hub-related a.hub-country-link[href*="en-id/"]{order:16}
.country-hub .hub-related a.hub-country-link[href*="en-it/"]{order:17}
.country-hub .hub-related a.hub-country-link[href*="en-jp/"]{order:18}
.country-hub .hub-related a.hub-country-link[href*="en-jo/"]{order:19}
.country-hub .hub-related a.hub-country-link[href*="en-ke/"]{order:20}
.country-hub .hub-related a.hub-country-link[href*="en-kw/"]{order:21}
.country-hub .hub-related a.hub-country-link[href*="en-mv/"]{order:22}
.country-hub .hub-related a.hub-country-link[href*="en-ma/"]{order:23}
.country-hub .hub-related a.hub-country-link[href*="en-np/"]{order:24}
.country-hub .hub-related a.hub-country-link[href*="en-nl/"]{order:25}
.country-hub .hub-related a.hub-country-link[href*="en-ng/"]{order:26}
.country-hub .hub-related a.hub-country-link[href*="en-om/"]{order:27}
.country-hub .hub-related a.hub-country-link[href*="en-pk/"]{order:28}
.country-hub .hub-related a.hub-country-link[href*="en-ph/"]{order:29}
.country-hub .hub-related a.hub-country-link[href*="en-pl/"]{order:30}
.country-hub .hub-related a.hub-country-link[href*="en-qa/"]{order:31}
.country-hub .hub-related a.hub-country-link[href*="en-ru/"]{order:32}
.country-hub .hub-related a.hub-country-link[href*="en-sa/"]{order:33}
.country-hub .hub-related a.hub-country-link[href*="en-sg/"]{order:34}
.country-hub .hub-related a.hub-country-link[href*="en-za/"]{order:35}
.country-hub .hub-related a.hub-country-link[href*="en-kr/"]{order:36}
.country-hub .hub-related a.hub-country-link[href*="en-es/"]{order:37}
.country-hub .hub-related a.hub-country-link[href*="en-lk/"]{order:38}
.country-hub .hub-related a.hub-country-link[href*="en-ch/"]{order:39}
.country-hub .hub-related a.hub-country-link[href*="en-tw/"]{order:40}
.country-hub .hub-related a.hub-country-link[href*="en-th/"]{order:41}
.country-hub .hub-related a.hub-country-link[href*="en-tr/"]{order:42}
.country-hub .hub-related a.hub-country-link[href*="en-ae/"]{order:43}
.country-hub .hub-related a.hub-country-link[href*="en-gb/"]{order:44}
.country-hub .hub-related a.hub-country-link[href*="en-vn/"]{order:45}