/* ============================================================
   GLOBALS.CSS — v0.18.7 (based on v0.17.0) "Option 2" (client-approved spec).
   Every GM text role takes font family / size / weight / line height
   from Elementor → Site Settings → Global Fonts ("GM …" entries) and the
   colours from Global Colors ("GM …"). Change them there → whole site.
   Values in a widget's own Style tab still win for that widget.
   Fallbacks below = the spec numbers (used until Site Settings load).
   ============================================================ */

:root {
  --gm-g-h1: 64px;
  --gm-g-h2: 52px;
  --gm-g-h3: 30px;
  --gm-g-box: 22px;
  --gm-g-sub: 20px;
  --gm-g-lead: 24px;
  --gm-g-body: 20px;
  --gm-g-card: 20px;
  --gm-g-cta: 36px;
  --gm-g-btn: 18px;
  --gm-g-tab: 18px;
}

/* Elementor puts the Site Settings variables on <body class="elementor-kit-…">,
   so everything that reads them is defined on body (not :root). */
body {
  --gm-g-family: var(--e-global-typography-gmfont-font-family, "Kanit");
  /* plugin font tokens follow the GM Font family (Kanit for the whole site) */
  --gm-font-th: var(--gm-g-family), "Kanit", sans-serif;
  --gm-font-en: var(--gm-g-family), "Kanit", sans-serif;
  --gm-g-head: var(--e-global-color-gmhead, #0b0b0b);
  --gm-g-hl: var(--e-global-color-gmhl, #0b0b0b);
  --gm-g-subc: var(--e-global-color-gmsubc, #d72638);
  --gm-g-text: var(--e-global-color-gmtext, #3d3d3d);
}

/* Kanit on English pages too (spec: "Kanit for the whole site") */
html[lang^="en"] body {
  --gm-font-th: var(--gm-g-family), "Kanit", sans-serif;
  --gm-font-en: var(--gm-g-family), "Kanit", sans-serif;
}

@media (max-width: 1024px) {
  :root {
    --gm-g-h1: 48px;
    --gm-g-h2: 40px;
    --gm-g-h3: 26px;
    --gm-g-box: 20px;
    --gm-g-sub: 18px;
    --gm-g-lead: 20px;
    --gm-g-body: 18px;
    --gm-g-card: 18px;
    --gm-g-cta: 30px;
    --gm-g-btn: 17px;
    --gm-g-tab: 17px;
  }
}

@media (max-width: 767px) {
  :root {
    --gm-g-h1: 36px;
    --gm-g-h2: 30px;
    --gm-g-h3: 22px;
    --gm-g-box: 18px;
    --gm-g-sub: 16px;
    --gm-g-lead: 18px;
    --gm-g-body: 17px;
    --gm-g-card: 16px;
    --gm-g-cta: 24px;
    --gm-g-btn: 16px;
    --gm-g-tab: 16px;
  }
}

/* H1 */
.gm-hero__title.gm-hero__title.gm-hero__title.gm-hero__title,
.gm-shero__title.gm-shero__title.gm-shero__title.gm-shero__title,
.gm-ptitle__title.gm-ptitle__title.gm-ptitle__title.gm-ptitle__title,
.gm-trt__ptitle.gm-trt__ptitle.gm-trt__ptitle.gm-trt__ptitle,
.gm-nhead__title.gm-nhead__title.gm-nhead__title.gm-nhead__title,
.gm-phead__title.gm-phead__title.gm-phead__title.gm-phead__title,
.gm-pfeat__page-title.gm-pfeat__page-title.gm-pfeat__page-title.gm-pfeat__page-title,
.gm-sres__hero-title.gm-sres__hero-title.gm-sres__hero-title.gm-sres__hero-title,
.gm-shead__title.gm-shead__title.gm-shead__title.gm-shead__title {
  font-family: var(--e-global-typography-gmh1-font-family, var(--gm-g-family)), "Kanit", sans-serif;
  font-size: var(--e-global-typography-gmh1-font-size, var(--gm-g-h1));
  font-weight: var(--e-global-typography-gmh1-font-weight, 500);
  line-height: var(--e-global-typography-gmh1-line-height, 1.2);
}

/* H2 */
.gm-head__title.gm-head__title.gm-head__title.gm-head__title,
.gm-abnet__title.gm-abnet__title.gm-abnet__title.gm-abnet__title,
.gm-abtl__title.gm-abtl__title.gm-abtl__title.gm-abtl__title,
.gm-acerts__title.gm-acerts__title.gm-acerts__title.gm-acerts__title,
.gm-aft__title.gm-aft__title.gm-aft__title.gm-aft__title,
.gm-airl__title.gm-airl__title.gm-airl__title.gm-airl__title,
.gm-astory__title.gm-astory__title.gm-astory__title.gm-astory__title,
.gm-atypes__title.gm-atypes__title.gm-atypes__title.gm-atypes__title,
.gm-avalues__title.gm-avalues__title.gm-avalues__title.gm-avalues__title,
.gm-avideo__title.gm-avideo__title.gm-avideo__title.gm-avideo__title,
.gm-bsched__title.gm-bsched__title.gm-bsched__title.gm-bsched__title,
.gm-bsteps__title.gm-bsteps__title.gm-bsteps__title.gm-bsteps__title,
.gm-cchan__title.gm-cchan__title.gm-cchan__title.gm-cchan__title,
.gm-cterm__title.gm-cterm__title.gm-cterm__title.gm-cterm__title,
.gm-faq__title.gm-faq__title.gm-faq__title.gm-faq__title,
.gm-fee__title.gm-fee__title.gm-fee__title.gm-fee__title,
.gm-news__title.gm-news__title.gm-news__title.gm-news__title,
.gm-ngrid__title.gm-ngrid__title.gm-ngrid__title.gm-ngrid__title,
.gm-nlatest__title.gm-nlatest__title.gm-nlatest__title.gm-nlatest__title,
.gm-pgrid__title.gm-pgrid__title.gm-pgrid__title.gm-pgrid__title,
.gm-pmeth__title.gm-pmeth__title.gm-pmeth__title.gm-pmeth__title,
.gm-prb__title.gm-prb__title.gm-prb__title.gm-prb__title,
.gm-prel__title.gm-prel__title.gm-prel__title.gm-prel__title,
.gm-promos__title.gm-promos__title.gm-promos__title.gm-promos__title,
.gm-qband__title.gm-qband__title.gm-qband__title.gm-qband__title,
.gm-sb__title.gm-sb__title.gm-sb__title.gm-sb__title,
.gm-sc__title.gm-sc__title.gm-sc__title.gm-sc__title,
.gm-stats__title.gm-stats__title.gm-stats__title.gm-stats__title,
.gm-tgal__title.gm-tgal__title.gm-tgal__title.gm-tgal__title,
.gm-tshow__title.gm-tshow__title.gm-tshow__title.gm-tshow__title,
.gm-why__title.gm-why__title.gm-why__title.gm-why__title,
.gm-zig__title.gm-zig__title.gm-zig__title.gm-zig__title {
  font-family: var(--e-global-typography-gmh2-font-family, var(--gm-g-family)), "Kanit", sans-serif;
  font-size: var(--e-global-typography-gmh2-font-size, var(--gm-g-h2));
  font-weight: var(--e-global-typography-gmh2-font-weight, 500);
  line-height: var(--e-global-typography-gmh2-line-height, 1.25);
}

/* H3 */
.gm-prm__title.gm-prm__title.gm-prm__title.gm-prm__title,
.gm-pra__title.gm-pra__title.gm-pra__title.gm-pra__title,
.gm-sc__name.gm-sc__name.gm-sc__name.gm-sc__name,
.gm-pcard__title.gm-pcard__title.gm-pcard__title.gm-pcard__title,
.gm-pfeat__big-title.gm-pfeat__big-title.gm-pfeat__big-title.gm-pfeat__big-title,
.gm-news__feat-title.gm-news__feat-title.gm-news__feat-title.gm-news__feat-title,
.gm-help__title.gm-help__title.gm-help__title.gm-help__title,
.gm-groups__title.gm-groups__title.gm-groups__title.gm-groups__title {
  font-family: var(--e-global-typography-gmh3-font-family, var(--gm-g-family)), "Kanit", sans-serif;
  font-size: var(--e-global-typography-gmh3-font-size, var(--gm-g-h3));
  font-weight: var(--e-global-typography-gmh3-font-weight, 500);
  line-height: var(--e-global-typography-gmh3-line-height, 1.35);
}

/* BOX */
.gm-faq__q.gm-faq__q.gm-faq__q.gm-faq__q,
.gm-supfaq__q.gm-supfaq__q.gm-supfaq__q.gm-supfaq__q,
.gm-online__acc-btn.gm-online__acc-btn.gm-online__acc-btn.gm-online__acc-btn,
.gm-news__item-title.gm-news__item-title.gm-news__item-title.gm-news__item-title {
  font-family: var(--e-global-typography-gmbox-font-family, var(--gm-g-family)), "Kanit", sans-serif;
  font-size: var(--e-global-typography-gmbox-font-size, var(--gm-g-box));
  font-weight: var(--e-global-typography-gmbox-font-weight, 500);
  line-height: var(--e-global-typography-gmbox-line-height, 1.4);
}

/* SUB */
.gm-head__eyebrow.gm-head__eyebrow.gm-head__eyebrow.gm-head__eyebrow,
.gm-shero__eyebrow.gm-shero__eyebrow.gm-shero__eyebrow.gm-shero__eyebrow,
.gm-online__label.gm-online__label.gm-online__label.gm-online__label {
  font-family: var(--e-global-typography-gmsub-font-family, var(--gm-g-family)), "Kanit", sans-serif;
  font-size: var(--e-global-typography-gmsub-font-size, var(--gm-g-sub));
  font-weight: var(--e-global-typography-gmsub-font-weight, 500);
  line-height: var(--e-global-typography-gmsub-line-height, 1.5);
}

/* LEAD */
.gm-hero__text.gm-hero__text.gm-hero__text.gm-hero__text,
.gm-shero__text.gm-shero__text.gm-shero__text.gm-shero__text,
.gm-ptitle__sub.gm-ptitle__sub.gm-ptitle__sub.gm-ptitle__sub {
  font-family: var(--e-global-typography-gmlead-font-family, var(--gm-g-family)), "Kanit", sans-serif;
  font-size: var(--e-global-typography-gmlead-font-size, var(--gm-g-lead));
  font-weight: var(--e-global-typography-gmlead-font-weight, 300);
  line-height: var(--e-global-typography-gmlead-line-height, 1.7);
}

/* BODY */
.gm-head__text.gm-head__text.gm-head__text.gm-head__text,
.gm-faq__a.gm-faq__a.gm-faq__a.gm-faq__a,
.gm-supfaq__a.gm-supfaq__a.gm-supfaq__a.gm-supfaq__a,
.gm-online__text.gm-online__text.gm-online__text.gm-online__text {
  font-family: var(--e-global-typography-gmbody-font-family, var(--gm-g-family)), "Kanit", sans-serif;
  font-size: var(--e-global-typography-gmbody-font-size, var(--gm-g-body));
  font-weight: var(--e-global-typography-gmbody-font-weight, 300);
  line-height: var(--e-global-typography-gmbody-line-height, 1.7);
}

/* CARD */
.gm-prm__points.gm-prm__points.gm-prm__points.gm-prm__points,
.gm-pcard__text.gm-pcard__text.gm-pcard__text.gm-pcard__text,
.gm-pcard__dates.gm-pcard__dates.gm-pcard__dates.gm-pcard__dates,
.gm-ncard__text.gm-ncard__text.gm-ncard__text.gm-ncard__text,
.gm-ncard__date.gm-ncard__date.gm-ncard__date.gm-ncard__date,
.gm-news__feat-text.gm-news__feat-text.gm-news__feat-text.gm-news__feat-text,
.gm-news__feat-date.gm-news__feat-date.gm-news__feat-date.gm-news__feat-date,
.gm-news__item-date.gm-news__item-date.gm-news__item-date.gm-news__item-date,
.gm-help__text.gm-help__text.gm-help__text.gm-help__text,
.gm-hero__key-text.gm-hero__key-text.gm-hero__key-text.gm-hero__key-text,
.gm-pra__text.gm-pra__text.gm-pra__text.gm-pra__text,
.gm-groups__desc.gm-groups__desc.gm-groups__desc.gm-groups__desc,
.gm-stats__label.gm-stats__label.gm-stats__label.gm-stats__label,
.gm-why__label.gm-why__label.gm-why__label.gm-why__label,
.gm-aband__label.gm-aband__label.gm-aband__label.gm-aband__label {
  font-family: var(--e-global-typography-gmcard-font-family, var(--gm-g-family)), "Kanit", sans-serif;
  font-size: var(--e-global-typography-gmcard-font-size, var(--gm-g-card));
  font-weight: var(--e-global-typography-gmcard-font-weight, 300);
  line-height: var(--e-global-typography-gmcard-line-height, 1.7);
}

/* CTA */
.gm-cta__title.gm-cta__title.gm-cta__title.gm-cta__title {
  font-family: var(--e-global-typography-gmcta-font-family, var(--gm-g-family)), "Kanit", sans-serif;
  font-size: var(--e-global-typography-gmcta-font-size, var(--gm-g-cta));
  font-weight: var(--e-global-typography-gmcta-font-weight, 500);
  line-height: var(--e-global-typography-gmcta-line-height, 1.3);
}

/* COLOURS — headings one colour (spec), not on red / photo backgrounds */
.gm-hero__title.gm-hero__title.gm-hero__title.gm-hero__title,
.gm-shero__title.gm-shero__title.gm-shero__title.gm-shero__title,
.gm-ptitle__title.gm-ptitle__title.gm-ptitle__title.gm-ptitle__title,
.gm-trt__ptitle.gm-trt__ptitle.gm-trt__ptitle.gm-trt__ptitle,
.gm-nhead__title.gm-nhead__title.gm-nhead__title.gm-nhead__title,
.gm-phead__title.gm-phead__title.gm-phead__title.gm-phead__title,
.gm-pfeat__page-title.gm-pfeat__page-title.gm-pfeat__page-title.gm-pfeat__page-title,
.gm-sres__hero-title.gm-sres__hero-title.gm-sres__hero-title.gm-sres__hero-title,
.gm-shead__title.gm-shead__title.gm-shead__title.gm-shead__title,
.gm-head__title.gm-head__title.gm-head__title.gm-head__title,
.gm-abnet__title.gm-abnet__title.gm-abnet__title.gm-abnet__title,
.gm-abtl__title.gm-abtl__title.gm-abtl__title.gm-abtl__title,
.gm-acerts__title.gm-acerts__title.gm-acerts__title.gm-acerts__title,
.gm-aft__title.gm-aft__title.gm-aft__title.gm-aft__title,
.gm-airl__title.gm-airl__title.gm-airl__title.gm-airl__title,
.gm-astory__title.gm-astory__title.gm-astory__title.gm-astory__title,
.gm-atypes__title.gm-atypes__title.gm-atypes__title.gm-atypes__title,
.gm-avalues__title.gm-avalues__title.gm-avalues__title.gm-avalues__title,
.gm-avideo__title.gm-avideo__title.gm-avideo__title.gm-avideo__title,
.gm-bsched__title.gm-bsched__title.gm-bsched__title.gm-bsched__title,
.gm-bsteps__title.gm-bsteps__title.gm-bsteps__title.gm-bsteps__title,
.gm-cchan__title.gm-cchan__title.gm-cchan__title.gm-cchan__title,
.gm-cterm__title.gm-cterm__title.gm-cterm__title.gm-cterm__title,
.gm-faq__title.gm-faq__title.gm-faq__title.gm-faq__title,
.gm-fee__title.gm-fee__title.gm-fee__title.gm-fee__title,
.gm-news__title.gm-news__title.gm-news__title.gm-news__title,
.gm-ngrid__title.gm-ngrid__title.gm-ngrid__title.gm-ngrid__title,
.gm-nlatest__title.gm-nlatest__title.gm-nlatest__title.gm-nlatest__title,
.gm-pgrid__title.gm-pgrid__title.gm-pgrid__title.gm-pgrid__title,
.gm-pmeth__title.gm-pmeth__title.gm-pmeth__title.gm-pmeth__title,
.gm-prb__title.gm-prb__title.gm-prb__title.gm-prb__title,
.gm-prel__title.gm-prel__title.gm-prel__title.gm-prel__title,
.gm-promos__title.gm-promos__title.gm-promos__title.gm-promos__title,
.gm-sb__title.gm-sb__title.gm-sb__title.gm-sb__title,
.gm-sc__title.gm-sc__title.gm-sc__title.gm-sc__title,
.gm-tgal__title.gm-tgal__title.gm-tgal__title.gm-tgal__title,
.gm-zig__title.gm-zig__title.gm-zig__title.gm-zig__title,
.gm-prm__title.gm-prm__title.gm-prm__title.gm-prm__title,
.gm-pra__title.gm-pra__title.gm-pra__title.gm-pra__title,
.gm-sc__name.gm-sc__name.gm-sc__name.gm-sc__name,
.gm-pcard__title.gm-pcard__title.gm-pcard__title.gm-pcard__title,
.gm-groups__title.gm-groups__title.gm-groups__title.gm-groups__title,
.gm-faq__q.gm-faq__q.gm-faq__q.gm-faq__q,
.gm-supfaq__q.gm-supfaq__q.gm-supfaq__q.gm-supfaq__q,
.gm-online__acc-btn.gm-online__acc-btn.gm-online__acc-btn.gm-online__acc-btn,
.gm-news__item-title.gm-news__item-title.gm-news__item-title.gm-news__item-title {
  color: var(--gm-g-head);
}

/* highlighted words inside headings follow "GM Highlight words" (default = heading colour) */
.gm-hero__title .gm-hl,
.gm-shero__title .gm-hl,
.gm-ptitle__title .gm-hl,
.gm-trt__ptitle .gm-hl,
.gm-nhead__title .gm-hl,
.gm-phead__title .gm-hl,
.gm-pfeat__page-title .gm-hl,
.gm-sres__hero-title .gm-hl,
.gm-shead__title .gm-hl,
.gm-head__title .gm-hl,
.gm-abnet__title .gm-hl,
.gm-abtl__title .gm-hl,
.gm-acerts__title .gm-hl,
.gm-aft__title .gm-hl,
.gm-airl__title .gm-hl,
.gm-astory__title .gm-hl,
.gm-atypes__title .gm-hl,
.gm-avalues__title .gm-hl,
.gm-avideo__title .gm-hl,
.gm-bsched__title .gm-hl,
.gm-bsteps__title .gm-hl,
.gm-cchan__title .gm-hl,
.gm-cterm__title .gm-hl,
.gm-faq__title .gm-hl,
.gm-fee__title .gm-hl,
.gm-news__title .gm-hl,
.gm-ngrid__title .gm-hl,
.gm-nlatest__title .gm-hl,
.gm-pgrid__title .gm-hl,
.gm-pmeth__title .gm-hl,
.gm-prb__title .gm-hl,
.gm-prel__title .gm-hl,
.gm-promos__title .gm-hl,
.gm-sb__title .gm-hl,
.gm-sc__title .gm-hl,
.gm-tgal__title .gm-hl,
.gm-zig__title .gm-hl,
.gm-prm__title .gm-hl,
.gm-pra__title .gm-hl,
.gm-sc__name .gm-hl,
.gm-pcard__title .gm-hl,
.gm-groups__title .gm-hl,
.gm-faq__q .gm-hl,
.gm-supfaq__q .gm-hl,
.gm-online__acc-btn .gm-hl,
.gm-news__item-title .gm-hl {
  color: var(--gm-g-hl);
}

.gm-head__eyebrow.gm-head__eyebrow.gm-head__eyebrow.gm-head__eyebrow,
.gm-shero__eyebrow.gm-shero__eyebrow.gm-shero__eyebrow.gm-shero__eyebrow,
.gm-online__label.gm-online__label.gm-online__label.gm-online__label {
  color: var(--gm-g-subc);
}

/* body & card text one colour (incl. dates) */
.gm-hero__text.gm-hero__text.gm-hero__text.gm-hero__text,
.gm-shero__text.gm-shero__text.gm-shero__text.gm-shero__text,
.gm-ptitle__sub.gm-ptitle__sub.gm-ptitle__sub.gm-ptitle__sub,
.gm-head__text.gm-head__text.gm-head__text.gm-head__text,
.gm-faq__a.gm-faq__a.gm-faq__a.gm-faq__a,
.gm-supfaq__a.gm-supfaq__a.gm-supfaq__a.gm-supfaq__a,
.gm-online__text.gm-online__text.gm-online__text.gm-online__text,
.gm-prm__points.gm-prm__points.gm-prm__points.gm-prm__points,
.gm-pcard__text.gm-pcard__text.gm-pcard__text.gm-pcard__text,
.gm-pcard__dates.gm-pcard__dates.gm-pcard__dates.gm-pcard__dates,
.gm-ncard__text.gm-ncard__text.gm-ncard__text.gm-ncard__text,
.gm-ncard__date.gm-ncard__date.gm-ncard__date.gm-ncard__date,
.gm-news__item-date.gm-news__item-date.gm-news__item-date.gm-news__item-date,
.gm-pra__text.gm-pra__text.gm-pra__text.gm-pra__text,
.gm-hero__key-text.gm-hero__key-text.gm-hero__key-text.gm-hero__key-text,
.gm-vg__text.gm-vg__text.gm-vg__text.gm-vg__text,
.gm-vg__date.gm-vg__date.gm-vg__date.gm-vg__date,
.gm-scard__text.gm-scard__text.gm-scard__text.gm-scard__text {
  color: var(--gm-g-text);
}

/* bold words in FAQ answers */
.gm-faq__a strong,
.gm-faq__a b,
.gm-supfaq__a strong,
.gm-supfaq__a b {
  font-weight: 600;
}

/* ---------- BUTTONS (all .gm-btn, spec "Buttons") ---------- */
.gm-btn.gm-btn:not(.gm-btn--sm) {
  min-height: var(--gm-s-btn-h-d, 56px);
  min-width: var(--gm-s-btn-minw-d, 160px);
  padding: var(--gm-s-btn-py-d, 14px) var(--gm-s-btn-px-d, 32px);
  font-family: var(--e-global-typography-gmbtn-font-family, var(--gm-g-family)), "Kanit", sans-serif;
  font-size: var(--e-global-typography-gmbtn-font-size, var(--gm-g-btn));
  font-weight: var(--e-global-typography-gmbtn-font-weight, 500);
  line-height: var(--e-global-typography-gmbtn-line-height, 1.4);
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.gm-btn.gm-btn--outline.gm-btn--outline:not(.gm-btn--sm) {
  border-width: var(--gm-s-btn-border, 2px);
  padding: calc(var(--gm-s-btn-py-d, 14px) - var(--gm-s-btn-border, 2px) + 1px) calc(var(--gm-s-btn-px-d, 32px) - var(--gm-s-btn-border, 2px) + 1px);
}

.gm-btn.gm-btn:not(.gm-btn--sm) .gm-icon,
.gm-btn.gm-btn:not(.gm-btn--sm) > svg {
  width: var(--gm-s-btn-arrow, 22px);
  height: var(--gm-s-btn-arrow, 22px);
}

@media (hover: hover) {
  .gm-btn.gm-btn:hover,
  .gm-btn.gm-btn:focus-visible {
    transform: translateY(calc(-1 * var(--gm-s-btn-lift, 2px)));
    box-shadow: 0 6px 16px var(--gm-s-btn-shadow, rgba(215, 38, 56, 0.25));
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .gm-btn.gm-btn:not(.gm-btn--sm) {
    min-height: var(--gm-s-btn-h-t, 56px);
  }
}

@media (max-width: 767px) {
  .gm-btn.gm-btn:not(.gm-btn--sm) {
    min-height: var(--gm-s-btn-h-m, 52px);
    min-width: var(--gm-s-btn-minw-m, 0px);
    padding: var(--gm-s-btn-py-m, 12px) var(--gm-s-btn-px-m, 24px);
  }
  .gm-btn.gm-btn--outline.gm-btn--outline:not(.gm-btn--sm) {
    padding: calc(var(--gm-s-btn-py-m, 12px) - var(--gm-s-btn-border, 2px) + 1px) calc(var(--gm-s-btn-px-m, 24px) - var(--gm-s-btn-border, 2px) + 1px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .gm-btn.gm-btn:hover,
  .gm-btn.gm-btn:focus-visible {
    transform: none;
  }
}

/* ---------- TABS (spec "Tabs") ---------- */
/* Inactive tabs: colour + weight from Tools → GM Global Styles.
   Active tab weight, size, font and line height: Site Settings → "GM Tabs". */
.gm-promos .gm-promos__tabs .gm-promos__tab.gm-promos__tab:not(.is-active),
.gm-pill.gm-pill.gm-pill:not(.is-active),
.gm-news .gm-news__tabs .gm-news__tab.gm-news__tab:not(.is-active),
.gm-online .gm-online__tabs .gm-online__tab:not(.is-active) .gm-online__tab-text {
  color: var(--gm-s-tab-color, var(--gm-g-head));
  font-weight: var(--gm-s-tab-weight, 500);
}

.gm-promos .gm-promos__tabs .gm-promos__tab.gm-promos__tab.is-active,
.gm-pill.gm-pill.gm-pill.is-active,
.gm-news .gm-news__tabs .gm-news__tab.gm-news__tab.is-active,
.gm-online .gm-online__tabs .gm-online__tab.is-active .gm-online__tab-text {
  font-weight: var(--e-global-typography-gmtab-font-weight, 500);
}

.gm-promos .gm-promos__tabs .gm-promos__tab.gm-promos__tab,
.gm-pill.gm-pill.gm-pill,
.gm-news .gm-news__tabs .gm-news__tab.gm-news__tab,
.gm-online .gm-online__tabs .gm-online__tab .gm-online__tab-text {
  font-family: var(--e-global-typography-gmtab-font-family, var(--gm-g-family)), "Kanit", sans-serif;
  font-size: var(--e-global-typography-gmtab-font-size, var(--gm-g-tab));
}

/* line height only when it is filled in Site Settings → GM Tabs (body class from PHP) */
body.gm-tab-lh .gm-promos .gm-promos__tabs .gm-promos__tab.gm-promos__tab,
body.gm-tab-lh .gm-pill.gm-pill.gm-pill,
body.gm-tab-lh .gm-news .gm-news__tabs .gm-news__tab.gm-news__tab,
body.gm-tab-lh .gm-online .gm-online__tabs .gm-online__tab .gm-online__tab-text,
body.gm-tab-lh .gm-faq .gm-faq__tabs .gm-faq__tab.gm-faq__tab {
  line-height: var(--e-global-typography-gmtab-line-height);
}

/* FAQ category tabs: 18px, 54px click area, inactive 400 / active 600 */
.gm-faq .gm-faq__tabs .gm-faq__tab.gm-faq__tab {
  padding: var(--gm-s-faqtab-py, 14px) var(--gm-s-faqtab-px, 16px);
  font-size: var(--e-global-typography-gmtab-font-size, var(--gm-g-tab));
  font-weight: var(--gm-s-faqtab-w, 400);
  color: var(--gm-s-tab-color, var(--gm-g-head));
}

.gm-faq .gm-faq__tabs .gm-faq__tab.gm-faq__tab.is-active {
  font-weight: var(--gm-s-faqtab-w-on, 600);
  color: var(--gm-red-600);
}

/* Support FAQ category tabs (big tabs with icons): only the weights follow */
.gm-supfaq .gm-supfaq__tabs .gm-supfaq__tab.gm-supfaq__tab {
  font-weight: var(--gm-s-faqtab-w, 400);
}

.gm-supfaq .gm-supfaq__tabs .gm-supfaq__tab.gm-supfaq__tab.is-active {
  font-weight: var(--gm-s-faqtab-w-on, 600);
}

/* ---------- SPACING (spec "Spacing") ---------- */
/* H1 → text under H1: 24px */
.gm-hero .gm-hero__text.gm-hero__text,
.gm-shero .gm-shero__text.gm-shero__text,
.gm-ptitle .gm-ptitle__sub.gm-ptitle__sub,
.gm-shead .gm-shead__sub.gm-shead__sub,
.gm-phero .gm-phero__lead.gm-phero__lead {
  margin-top: var(--gm-s-h1gap, 24px);
}

/* hero columns text : image = 1.2 : 1, gap 64px (desktop) */
@media (min-width: 1025px) {
  .gm-hero:not(.gm-hero--equal) .gm-hero__grid.gm-hero__grid,
  .gm-shero:not(.gm-shero--top) .gm-shero__grid.gm-shero__grid {
    grid-template-columns: minmax(0, var(--gm-s-hero-ratio, 1.2fr)) minmax(0, 1fr);
    column-gap: var(--gm-s-hero-gap, 64px);
  }
}

/* Section padding (top and bottom): 80px desktop, 64px tablet, 48px phone.
   Only the content sections (heroes, banners and CTAs keep their own). */
.gm-abnet.gm-abnet,
.gm-abtl.gm-abtl,
.gm-acerts.gm-acerts,
.gm-aft.gm-aft,
.gm-airl.gm-airl,
.gm-astory.gm-astory,
.gm-atypes.gm-atypes,
.gm-avalues.gm-avalues,
.gm-avideo.gm-avideo,
.gm-bsched.gm-bsched,
.gm-bsteps.gm-bsteps,
.gm-cchan.gm-cchan,
.gm-cterm.gm-cterm,
.gm-faq.gm-faq,
.gm-fee.gm-fee,
.gm-news.gm-news,
.gm-ngrid.gm-ngrid,
.gm-nlatest.gm-nlatest,
.gm-pgrid.gm-pgrid,
.gm-pmeth.gm-pmeth,
.gm-prb.gm-prb,
.gm-prel.gm-prel,
.gm-promos.gm-promos,
.gm-tgal.gm-tgal,
.gm-zig.gm-zig,
.gm-prm.gm-prm,
.gm-pra.gm-pra,
.gm-help.gm-help,
.gm-groups.gm-groups,
.gm-supgrid.gm-supgrid,
.gm-supfaq.gm-supfaq,
.gm-trt.gm-trt,
.gm-vg.gm-vg,
.gm-online.gm-online,
.gm-services.gm-services,
.gm-bc.gm-bc,
.gm-mos.gm-mos,
.gm-tshow.gm-tshow,
.gm-cmap.gm-cmap,
.gm-srel.gm-srel {
  padding-top: var(--gm-s-sec-pad-d, 80px);
  padding-bottom: var(--gm-s-sec-pad-d, 80px);
}

@media (max-width: 1024px) {
  .gm-abnet.gm-abnet,
  .gm-abtl.gm-abtl,
  .gm-acerts.gm-acerts,
  .gm-aft.gm-aft,
  .gm-airl.gm-airl,
  .gm-astory.gm-astory,
  .gm-atypes.gm-atypes,
  .gm-avalues.gm-avalues,
  .gm-avideo.gm-avideo,
  .gm-bsched.gm-bsched,
  .gm-bsteps.gm-bsteps,
  .gm-cchan.gm-cchan,
  .gm-cterm.gm-cterm,
  .gm-faq.gm-faq,
  .gm-fee.gm-fee,
  .gm-news.gm-news,
  .gm-ngrid.gm-ngrid,
  .gm-nlatest.gm-nlatest,
  .gm-pgrid.gm-pgrid,
  .gm-pmeth.gm-pmeth,
  .gm-prb.gm-prb,
  .gm-prel.gm-prel,
  .gm-promos.gm-promos,
  .gm-tgal.gm-tgal,
  .gm-zig.gm-zig,
  .gm-prm.gm-prm,
  .gm-pra.gm-pra,
  .gm-help.gm-help,
  .gm-groups.gm-groups,
  .gm-supgrid.gm-supgrid,
  .gm-supfaq.gm-supfaq,
  .gm-trt.gm-trt,
  .gm-vg.gm-vg,
  .gm-online.gm-online,
  .gm-services.gm-services,
  .gm-bc.gm-bc,
  .gm-mos.gm-mos,
  .gm-tshow.gm-tshow,
  .gm-cmap.gm-cmap,
  .gm-srel.gm-srel {
    padding-top: var(--gm-s-sec-pad-t, 64px);
    padding-bottom: var(--gm-s-sec-pad-t, 64px);
  }
}

@media (max-width: 767px) {
  .gm-abnet.gm-abnet,
  .gm-abtl.gm-abtl,
  .gm-acerts.gm-acerts,
  .gm-aft.gm-aft,
  .gm-airl.gm-airl,
  .gm-astory.gm-astory,
  .gm-atypes.gm-atypes,
  .gm-avalues.gm-avalues,
  .gm-avideo.gm-avideo,
  .gm-bsched.gm-bsched,
  .gm-bsteps.gm-bsteps,
  .gm-cchan.gm-cchan,
  .gm-cterm.gm-cterm,
  .gm-faq.gm-faq,
  .gm-fee.gm-fee,
  .gm-news.gm-news,
  .gm-ngrid.gm-ngrid,
  .gm-nlatest.gm-nlatest,
  .gm-pgrid.gm-pgrid,
  .gm-pmeth.gm-pmeth,
  .gm-prb.gm-prb,
  .gm-prel.gm-prel,
  .gm-promos.gm-promos,
  .gm-tgal.gm-tgal,
  .gm-zig.gm-zig,
  .gm-prm.gm-prm,
  .gm-pra.gm-pra,
  .gm-help.gm-help,
  .gm-groups.gm-groups,
  .gm-supgrid.gm-supgrid,
  .gm-supfaq.gm-supfaq,
  .gm-trt.gm-trt,
  .gm-vg.gm-vg,
  .gm-online.gm-online,
  .gm-services.gm-services,
  .gm-bc.gm-bc,
  .gm-mos.gm-mos,
  .gm-tshow.gm-tshow,
  .gm-cmap.gm-cmap,
  .gm-srel.gm-srel {
    padding-top: var(--gm-s-sec-pad-m, 48px);
    padding-bottom: var(--gm-s-sec-pad-m, 48px);
  }
}

@media (max-width: 1024px) {
  .gm-hero .gm-hero__text.gm-hero__text,
  .gm-shero .gm-shero__text.gm-shero__text,
  .gm-ptitle .gm-ptitle__sub.gm-ptitle__sub,
  .gm-shead .gm-shead__sub.gm-shead__sub,
  .gm-phero .gm-phero__lead.gm-phero__lead {
    margin-top: var(--gm-s-h1gap-t, 20px);
  }
}

@media (max-width: 767px) {
  .gm-hero .gm-hero__text.gm-hero__text,
  .gm-shero .gm-shero__text.gm-shero__text,
  .gm-ptitle .gm-ptitle__sub.gm-ptitle__sub,
  .gm-shead .gm-shead__sub.gm-shead__sub,
  .gm-phero .gm-phero__lead.gm-phero__lead {
    margin-top: var(--gm-s-h1gap-m, 16px);
  }
}

/* Section title → content (only when "Apply" is ticked in Tools → GM Global
   Styles; it adds this space UNDER every section title, on top of each
   widget's own spacing — check the pages after turning it on). */
body.gm-title-gap .gm-head__title,
body.gm-title-gap .gm-abnet__title,
body.gm-title-gap .gm-abtl__title,
body.gm-title-gap .gm-acerts__title,
body.gm-title-gap .gm-aft__title,
body.gm-title-gap .gm-airl__title,
body.gm-title-gap .gm-astory__title,
body.gm-title-gap .gm-atypes__title,
body.gm-title-gap .gm-avalues__title,
body.gm-title-gap .gm-avideo__title,
body.gm-title-gap .gm-bsched__title,
body.gm-title-gap .gm-bsteps__title,
body.gm-title-gap .gm-cchan__title,
body.gm-title-gap .gm-cterm__title,
body.gm-title-gap .gm-faq__title,
body.gm-title-gap .gm-fee__title,
body.gm-title-gap .gm-news__title,
body.gm-title-gap .gm-ngrid__title,
body.gm-title-gap .gm-nlatest__title,
body.gm-title-gap .gm-pgrid__title,
body.gm-title-gap .gm-pmeth__title,
body.gm-title-gap .gm-prb__title,
body.gm-title-gap .gm-prel__title,
body.gm-title-gap .gm-promos__title,
body.gm-title-gap .gm-tgal__title,
body.gm-title-gap .gm-qband__title,
body.gm-title-gap .gm-sb__title,
body.gm-title-gap .gm-sc__title,
body.gm-title-gap .gm-stats__title,
body.gm-title-gap .gm-tshow__title,
body.gm-title-gap .gm-why__title,
body.gm-title-gap .gm-zig__title {
  margin-bottom: var(--gm-s-title-gap-d, 48px);
}

@media (max-width: 1024px) {
  body.gm-title-gap .gm-head__title,
  body.gm-title-gap .gm-abnet__title,
  body.gm-title-gap .gm-abtl__title,
  body.gm-title-gap .gm-acerts__title,
  body.gm-title-gap .gm-aft__title,
  body.gm-title-gap .gm-airl__title,
  body.gm-title-gap .gm-astory__title,
  body.gm-title-gap .gm-atypes__title,
  body.gm-title-gap .gm-avalues__title,
  body.gm-title-gap .gm-avideo__title,
  body.gm-title-gap .gm-bsched__title,
  body.gm-title-gap .gm-bsteps__title,
  body.gm-title-gap .gm-cchan__title,
  body.gm-title-gap .gm-cterm__title,
  body.gm-title-gap .gm-faq__title,
  body.gm-title-gap .gm-fee__title,
  body.gm-title-gap .gm-news__title,
  body.gm-title-gap .gm-ngrid__title,
  body.gm-title-gap .gm-nlatest__title,
  body.gm-title-gap .gm-pgrid__title,
  body.gm-title-gap .gm-pmeth__title,
  body.gm-title-gap .gm-prb__title,
  body.gm-title-gap .gm-prel__title,
  body.gm-title-gap .gm-promos__title,
  body.gm-title-gap .gm-tgal__title,
  body.gm-title-gap .gm-qband__title,
body.gm-title-gap .gm-sb__title,
body.gm-title-gap .gm-sc__title,
body.gm-title-gap .gm-stats__title,
body.gm-title-gap .gm-tshow__title,
body.gm-title-gap .gm-why__title,
body.gm-title-gap .gm-zig__title {
    margin-bottom: var(--gm-s-title-gap-t, 40px);
  }
}

@media (max-width: 767px) {
  body.gm-title-gap .gm-head__title,
  body.gm-title-gap .gm-abnet__title,
  body.gm-title-gap .gm-abtl__title,
  body.gm-title-gap .gm-acerts__title,
  body.gm-title-gap .gm-aft__title,
  body.gm-title-gap .gm-airl__title,
  body.gm-title-gap .gm-astory__title,
  body.gm-title-gap .gm-atypes__title,
  body.gm-title-gap .gm-avalues__title,
  body.gm-title-gap .gm-avideo__title,
  body.gm-title-gap .gm-bsched__title,
  body.gm-title-gap .gm-bsteps__title,
  body.gm-title-gap .gm-cchan__title,
  body.gm-title-gap .gm-cterm__title,
  body.gm-title-gap .gm-faq__title,
  body.gm-title-gap .gm-fee__title,
  body.gm-title-gap .gm-news__title,
  body.gm-title-gap .gm-ngrid__title,
  body.gm-title-gap .gm-nlatest__title,
  body.gm-title-gap .gm-pgrid__title,
  body.gm-title-gap .gm-pmeth__title,
  body.gm-title-gap .gm-prb__title,
  body.gm-title-gap .gm-prel__title,
  body.gm-title-gap .gm-promos__title,
  body.gm-title-gap .gm-tgal__title,
  body.gm-title-gap .gm-qband__title,
body.gm-title-gap .gm-sb__title,
body.gm-title-gap .gm-sc__title,
body.gm-title-gap .gm-stats__title,
body.gm-title-gap .gm-tshow__title,
body.gm-title-gap .gm-why__title,
body.gm-title-gap .gm-zig__title {
    margin-bottom: var(--gm-s-title-gap-m, 32px);
  }
}


/* ==========================================================================
   v0.18.0 — more widgets follow Site Settings (GM fonts + GM colours)
   These headings / texts were not connected before. Same rule as above:
   a value set in a widget's own Style tab (or a Global Font picked there)
   still wins for that widget.
   ========================================================================== */

/* gmh1 */
.gm-phero__title.gm-phero__title.gm-phero__title.gm-phero__title {
  font-family: var(--e-global-typography-gmh1-font-family, var(--gm-g-family)), "Kanit", sans-serif;
  font-size: var(--e-global-typography-gmh1-font-size, var(--gm-g-h1));
  font-weight: var(--e-global-typography-gmh1-font-weight, 500);
  line-height: var(--e-global-typography-gmh1-line-height, 1.2);
}

/* gmh2 */
.gm-services__title.gm-services__title.gm-services__title.gm-services__title,
.gm-banner__title.gm-banner__title.gm-banner__title.gm-banner__title,
.gm-cinfo__title.gm-cinfo__title.gm-cinfo__title.gm-cinfo__title,
.gm-cmap__title.gm-cmap__title.gm-cmap__title.gm-cmap__title,
.gm-bc__title.gm-bc__title.gm-bc__title.gm-bc__title,
.gm-pfeat__title.gm-pfeat__title.gm-pfeat__title.gm-pfeat__title,
.gm-nrel__title.gm-nrel__title.gm-nrel__title.gm-nrel__title,
.gm-srel__title.gm-srel__title.gm-srel__title.gm-srel__title,
.gm-supfaq__title.gm-supfaq__title.gm-supfaq__title.gm-supfaq__title,
.gm-trt__title.gm-trt__title.gm-trt__title.gm-trt__title,
.gm-vg__title.gm-vg__title.gm-vg__title.gm-vg__title,
.gm-prsh__title.gm-prsh__title.gm-prsh__title.gm-prsh__title {
  font-family: var(--e-global-typography-gmh2-font-family, var(--gm-g-family)), "Kanit", sans-serif;
  font-size: var(--e-global-typography-gmh2-font-size, var(--gm-g-h2));
  font-weight: var(--e-global-typography-gmh2-font-weight, 500);
  line-height: var(--e-global-typography-gmh2-line-height, 1.25);
}

/* gmh3 */
.gm-ncard__title.gm-ncard__title.gm-ncard__title.gm-ncard__title,
.gm-zig__name.gm-zig__name.gm-zig__name.gm-zig__name,
.gm-mos__title.gm-mos__title.gm-mos__title.gm-mos__title,
.gm-tshow__name.gm-tshow__name.gm-tshow__name.gm-tshow__name,
.gm-atypes__ptitle.gm-atypes__ptitle.gm-atypes__ptitle.gm-atypes__ptitle,
.gm-pmeth__name.gm-pmeth__name.gm-pmeth__name.gm-pmeth__name,
.gm-cterm__name.gm-cterm__name.gm-cterm__name.gm-cterm__name,
.gm-bsteps__name.gm-bsteps__name.gm-bsteps__name.gm-bsteps__name,
.gm-bsched__name.gm-bsched__name.gm-bsched__name.gm-bsched__name,
.gm-avalues__name.gm-avalues__name.gm-avalues__name.gm-avalues__name,
.gm-scard__title.gm-scard__title.gm-scard__title.gm-scard__title,
.gm-nlatest__name.gm-nlatest__name.gm-nlatest__name.gm-nlatest__name {
  font-family: var(--e-global-typography-gmh3-font-family, var(--gm-g-family)), "Kanit", sans-serif;
  font-size: var(--e-global-typography-gmh3-font-size, var(--gm-g-h3));
  font-weight: var(--e-global-typography-gmh3-font-weight, 500);
  line-height: var(--e-global-typography-gmh3-line-height, 1.35);
}

/* gmbox */
.gm-aft__q.gm-aft__q.gm-aft__q.gm-aft__q,
.gm-pfeat__item-title.gm-pfeat__item-title.gm-pfeat__item-title.gm-pfeat__item-title,
.gm-prsh__name.gm-prsh__name.gm-prsh__name.gm-prsh__name,
.gm-prb__name.gm-prb__name.gm-prb__name.gm-prb__name {
  font-family: var(--e-global-typography-gmbox-font-family, var(--gm-g-family)), "Kanit", sans-serif;
  font-size: var(--e-global-typography-gmbox-font-size, var(--gm-g-box));
  font-weight: var(--e-global-typography-gmbox-font-weight, 500);
  line-height: var(--e-global-typography-gmbox-line-height, 1.4);
}

/* gmsub */
.gm-tgal__eyebrow.gm-tgal__eyebrow.gm-tgal__eyebrow.gm-tgal__eyebrow {
  font-family: var(--e-global-typography-gmsub-font-family, var(--gm-g-family)), "Kanit", sans-serif;
  font-size: var(--e-global-typography-gmsub-font-size, var(--gm-g-sub));
  font-weight: var(--e-global-typography-gmsub-font-weight, 500);
  line-height: var(--e-global-typography-gmsub-line-height, 1.5);
}

/* gmlead */
.gm-shead__sub.gm-shead__sub.gm-shead__sub.gm-shead__sub,
.gm-phero__lead.gm-phero__lead.gm-phero__lead.gm-phero__lead {
  font-family: var(--e-global-typography-gmlead-font-family, var(--gm-g-family)), "Kanit", sans-serif;
  font-size: var(--e-global-typography-gmlead-font-size, var(--gm-g-lead));
  font-weight: var(--e-global-typography-gmlead-font-weight, 300);
  line-height: var(--e-global-typography-gmlead-line-height, 1.7);
}

/* gmbody */
.gm-online__acc-desc.gm-online__acc-desc.gm-online__acc-desc.gm-online__acc-desc,
.gm-aft__a.gm-aft__a.gm-aft__a.gm-aft__a,
.gm-zig__text.gm-zig__text.gm-zig__text.gm-zig__text,
.gm-mos__text.gm-mos__text.gm-mos__text.gm-mos__text,
.gm-pmeth__text.gm-pmeth__text.gm-pmeth__text.gm-pmeth__text,
.gm-bsteps__text.gm-bsteps__text.gm-bsteps__text.gm-bsteps__text,
.gm-bsteps__intro.gm-bsteps__intro.gm-bsteps__intro.gm-bsteps__intro,
.gm-abnet__text.gm-abnet__text.gm-abnet__text.gm-abnet__text,
.gm-acerts__text.gm-acerts__text.gm-acerts__text.gm-acerts__text,
.gm-astory__text.gm-astory__text.gm-astory__text.gm-astory__text,
.gm-abtl__text.gm-abtl__text.gm-abtl__text.gm-abtl__text,
.gm-cinfo__text.gm-cinfo__text.gm-cinfo__text.gm-cinfo__text,
.gm-cchan__text.gm-cchan__text.gm-cchan__text.gm-cchan__text,
.gm-fee__intro.gm-fee__intro.gm-fee__intro.gm-fee__intro,
.gm-why__text.gm-why__text.gm-why__text.gm-why__text,
.gm-qband__text.gm-qband__text.gm-qband__text.gm-qband__text,
.gm-banner__text.gm-banner__text.gm-banner__text.gm-banner__text,
.gm-stats__text.gm-stats__text.gm-stats__text.gm-stats__text,
.gm-services__desc.gm-services__desc.gm-services__desc.gm-services__desc,
.gm-vg__text.gm-vg__text.gm-vg__text.gm-vg__text,
.gm-ssteps__body.gm-ssteps__body.gm-ssteps__body.gm-ssteps__body {
  font-family: var(--e-global-typography-gmbody-font-family, var(--gm-g-family)), "Kanit", sans-serif;
  font-size: var(--e-global-typography-gmbody-font-size, var(--gm-g-body));
  font-weight: var(--e-global-typography-gmbody-font-weight, 300);
  line-height: var(--e-global-typography-gmbody-line-height, 1.7);
}

/* gmcard */
.gm-news__feat-excerpt.gm-news__feat-excerpt.gm-news__feat-excerpt.gm-news__feat-excerpt,
.gm-prb__text.gm-prb__text.gm-prb__text.gm-prb__text,
.gm-prsh__text.gm-prsh__text.gm-prsh__text.gm-prsh__text,
.gm-sc__text.gm-sc__text.gm-sc__text.gm-sc__text,
.gm-bc__text.gm-bc__text.gm-bc__text.gm-bc__text,
.gm-nlatest__text.gm-nlatest__text.gm-nlatest__text.gm-nlatest__text,
.gm-scard__text.gm-scard__text.gm-scard__text.gm-scard__text {
  font-family: var(--e-global-typography-gmcard-font-family, var(--gm-g-family)), "Kanit", sans-serif;
  font-size: var(--e-global-typography-gmcard-font-size, var(--gm-g-card));
  font-weight: var(--e-global-typography-gmcard-font-weight, 300);
  line-height: var(--e-global-typography-gmcard-line-height, 1.7);
}

/* colours (only parts on white / light backgrounds) */
.gm-cinfo__title.gm-cinfo__title.gm-cinfo__title.gm-cinfo__title,
.gm-cmap__title.gm-cmap__title.gm-cmap__title.gm-cmap__title,
.gm-bc__title.gm-bc__title.gm-bc__title.gm-bc__title,
.gm-pfeat__title.gm-pfeat__title.gm-pfeat__title.gm-pfeat__title,
.gm-nrel__title.gm-nrel__title.gm-nrel__title.gm-nrel__title,
.gm-srel__title.gm-srel__title.gm-srel__title.gm-srel__title,
.gm-supfaq__title.gm-supfaq__title.gm-supfaq__title.gm-supfaq__title,
.gm-trt__title.gm-trt__title.gm-trt__title.gm-trt__title,
.gm-vg__title.gm-vg__title.gm-vg__title.gm-vg__title,
.gm-prsh__title.gm-prsh__title.gm-prsh__title.gm-prsh__title,
.gm-why__title.gm-why__title.gm-why__title.gm-why__title,
.gm-tshow__title.gm-tshow__title.gm-tshow__title.gm-tshow__title,
.gm-phero__title.gm-phero__title.gm-phero__title.gm-phero__title,
.gm-ncard__title.gm-ncard__title.gm-ncard__title.gm-ncard__title,
.gm-zig__name.gm-zig__name.gm-zig__name.gm-zig__name,
.gm-mos__title.gm-mos__title.gm-mos__title.gm-mos__title,
.gm-tshow__name.gm-tshow__name.gm-tshow__name.gm-tshow__name,
.gm-atypes__ptitle.gm-atypes__ptitle.gm-atypes__ptitle.gm-atypes__ptitle,
.gm-pmeth__name.gm-pmeth__name.gm-pmeth__name.gm-pmeth__name,
.gm-cterm__name.gm-cterm__name.gm-cterm__name.gm-cterm__name,
.gm-bsteps__name.gm-bsteps__name.gm-bsteps__name.gm-bsteps__name,
.gm-bsched__name.gm-bsched__name.gm-bsched__name.gm-bsched__name,
.gm-avalues__name.gm-avalues__name.gm-avalues__name.gm-avalues__name,
.gm-scard__title.gm-scard__title.gm-scard__title.gm-scard__title,
.gm-nlatest__name.gm-nlatest__name.gm-nlatest__name.gm-nlatest__name,
.gm-aft__q.gm-aft__q.gm-aft__q.gm-aft__q,
.gm-pfeat__item-title.gm-pfeat__item-title.gm-pfeat__item-title.gm-pfeat__item-title,
.gm-prsh__name.gm-prsh__name.gm-prsh__name.gm-prsh__name,
.gm-prb__name.gm-prb__name.gm-prb__name.gm-prb__name {
  color: var(--gm-g-head);
}

.gm-online__acc-desc.gm-online__acc-desc.gm-online__acc-desc.gm-online__acc-desc,
.gm-aft__a.gm-aft__a.gm-aft__a.gm-aft__a,
.gm-zig__text.gm-zig__text.gm-zig__text.gm-zig__text,
.gm-mos__text.gm-mos__text.gm-mos__text.gm-mos__text,
.gm-pmeth__text.gm-pmeth__text.gm-pmeth__text.gm-pmeth__text,
.gm-bsteps__text.gm-bsteps__text.gm-bsteps__text.gm-bsteps__text,
.gm-bsteps__intro.gm-bsteps__intro.gm-bsteps__intro.gm-bsteps__intro,
.gm-abnet__text.gm-abnet__text.gm-abnet__text.gm-abnet__text,
.gm-acerts__text.gm-acerts__text.gm-acerts__text.gm-acerts__text,
.gm-astory__text.gm-astory__text.gm-astory__text.gm-astory__text,
.gm-abtl__text.gm-abtl__text.gm-abtl__text.gm-abtl__text,
.gm-cinfo__text.gm-cinfo__text.gm-cinfo__text.gm-cinfo__text,
.gm-cchan__text.gm-cchan__text.gm-cchan__text.gm-cchan__text,
.gm-fee__intro.gm-fee__intro.gm-fee__intro.gm-fee__intro,
.gm-why__text.gm-why__text.gm-why__text.gm-why__text,
.gm-why__label.gm-why__label.gm-why__label.gm-why__label,
.gm-ssteps__body.gm-ssteps__body.gm-ssteps__body.gm-ssteps__body,
.gm-news__feat-excerpt.gm-news__feat-excerpt.gm-news__feat-excerpt.gm-news__feat-excerpt,
.gm-news__feat-date.gm-news__feat-date.gm-news__feat-date.gm-news__feat-date,
.gm-prb__text.gm-prb__text.gm-prb__text.gm-prb__text,
.gm-prsh__text.gm-prsh__text.gm-prsh__text.gm-prsh__text,
.gm-sc__text.gm-sc__text.gm-sc__text.gm-sc__text,
.gm-bc__text.gm-bc__text.gm-bc__text.gm-bc__text,
.gm-nlatest__text.gm-nlatest__text.gm-nlatest__text.gm-nlatest__text,
.gm-pcard__to.gm-pcard__to.gm-pcard__to.gm-pcard__to,
.gm-groups__desc.gm-groups__desc.gm-groups__desc.gm-groups__desc,
.gm-shead__sub.gm-shead__sub.gm-shead__sub.gm-shead__sub,
.gm-phero__lead.gm-phero__lead.gm-phero__lead.gm-phero__lead {
  color: var(--gm-g-text);
}

.gm-tgal__eyebrow.gm-tgal__eyebrow.gm-tgal__eyebrow.gm-tgal__eyebrow {
  color: var(--gm-g-subc);
}

/* v0.18.0 — hover / open / red-card colours win again over the GM colours above */
.gm-online .gm-online__acc .gm-online__acc-btn.gm-online__acc-btn.gm-online__acc-btn:hover {
  color: var(--gm-red-600);
}
.gm-online .gm-online__acc .gm-online__acc-btn.gm-online__acc-btn.gm-online__acc-btn:focus {
  color: var(--gm-red-600);
}
.gm-online .gm-online__acc.is-open .gm-online__acc-btn.gm-online__acc-btn.gm-online__acc-btn {
  color: var(--gm-red-600);
}
.gm-promos .gm-promos__tabs .gm-promos__tab.gm-promos__tab.gm-promos__tab:not(.is-active):hover {
  color: var(--gm-red-600);
}
.gm-promos .gm-promos__tabs .gm-promos__tab.gm-promos__tab.gm-promos__tab:not(.is-active):focus {
  color: var(--gm-red-600);
}
.gm-news .gm-news__tabs .gm-news__tab.gm-news__tab.gm-news__tab:not(.is-active):hover {
  color: var(--gm-red-600);
}
.gm-news .gm-news__tabs .gm-news__tab.gm-news__tab.gm-news__tab:not(.is-active):focus {
  color: var(--gm-red-600);
}
.gm-news .gm-news__feat--red .gm-news__feat-excerpt.gm-news__feat-excerpt.gm-news__feat-excerpt {
  color: var(--gm-grey-50);
}
.gm-news .gm-news__feat--red .gm-news__feat-date.gm-news__feat-date.gm-news__feat-date {
  color: var(--gm-grey-200);
}
.gm-news .gm-news__item:hover .gm-news__item-title.gm-news__item-title.gm-news__item-title {
  color: var(--gm-red-600);
}
.gm-faq .gm-faq__tabs .gm-faq__tab.gm-faq__tab.gm-faq__tab:not(.is-active):hover {
  color: var(--gm-grey-950);
}
.gm-faq .gm-faq__tabs .gm-faq__tab.gm-faq__tab.gm-faq__tab:not(.is-active):focus {
  color: var(--gm-grey-950);
}
.gm-faq .gm-faq__item .gm-faq__q.gm-faq__q.gm-faq__q:hover {
  color: var(--gm-red-600);
}
.gm-faq .gm-faq__item .gm-faq__q.gm-faq__q.gm-faq__q:focus {
  color: var(--gm-red-600);
}
.gm-pills .gm-pill.gm-pill.gm-pill:not(.is-active):hover {
  color: var(--gm-red-600);
}
.gm-pills button.gm-pill.gm-pill.gm-pill:not(.is-active):hover {
  color: var(--gm-red-600);
}
.gm-pills button.gm-pill.gm-pill.gm-pill:not(.is-active):focus {
  color: var(--gm-red-600);
}
.gm-pfeat .gm-pfeat__item:hover .gm-pfeat__item-title.gm-pfeat__item-title.gm-pfeat__item-title {
  color: var(--gm-red-600);
}
.gm-ncard:hover .gm-ncard__title.gm-ncard__title.gm-ncard__title {
  color: var(--gm-red-600);
}
.gm-nlatest .gm-nlatest__card:hover .gm-nlatest__name.gm-nlatest__name.gm-nlatest__name {
  color: var(--gm-red-600);
}
.gm-aft .gm-aft__item .gm-aft__q.gm-aft__q.gm-aft__q:hover {
  color: var(--gm-red-600);
}
.gm-aft .gm-aft__item .gm-aft__q.gm-aft__q.gm-aft__q:focus {
  color: var(--gm-red-600);
}
.gm-supfaq .gm-supfaq__item .gm-supfaq__q.gm-supfaq__q.gm-supfaq__q:hover {
  color: var(--gm-red-600);
}
.gm-supfaq .gm-supfaq__item .gm-supfaq__q.gm-supfaq__q.gm-supfaq__q:focus {
  color: var(--gm-red-600);
}
.gm-scard:hover .gm-scard__title.gm-scard__title.gm-scard__title {
  color: var(--gm-red-600);
}
.gm-scard:focus-visible .gm-scard__title.gm-scard__title.gm-scard__title {
  color: var(--gm-red-600);
}

/* ==========================================================================
   v0.18.0 — client feedback (GM Tour Feedback slides 107–119)
   ========================================================================== */

/* slides 107 + 113: header "เข้าสู่ระบบ" and the "ดูโซลูชัน" button on the
   customer-group cards hover like "Contact Sales" (move up + red shadow,
   numbers from Tools → GM Global Styles → Buttons) */
.gm-header .gm-header__login.gm-header__login {
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

@media (hover: hover) {
  .gm-header .gm-header__login.gm-header__login:hover,
  .gm-header .gm-header__login.gm-header__login:focus-visible,
  .gm-groups .gm-groups__card.is-active .gm-groups__btn.gm-groups__btn:hover,
  .gm-groups .gm-groups__card.is-active .gm-groups__btn.gm-groups__btn:focus-visible {
    transform: translateY(calc(-1 * var(--gm-s-btn-lift, 2px)));
    box-shadow: 0 6px 16px var(--gm-s-btn-shadow, rgba(215, 38, 56, 0.25));
  }
}

@media (prefers-reduced-motion: reduce) {
  .gm-header .gm-header__login.gm-header__login:hover,
  .gm-groups .gm-groups__card.is-active .gm-groups__btn.gm-groups__btn:hover {
    transform: none;
  }
}

/* slide 109: every GM Online tab icon looks the same size as the airplane.
   gm-online.js measures the drawing inside each icon image and sets
   --gm-ic-scale, so icons with no empty space around them are shrunk. */
.gm-online .gm-online__tab .gm-online__tab-icon {
  transform: scale(var(--gm-ic-scale, 1));
  transform-origin: 50% 50%;
}

/* slide 111: GM Online accordion hover looks like the open FAQ item
   (red border + red title) */
@media (hover: hover) {
  .gm-online .gm-online__acc:hover {
    border-color: var(--gm-red-600);
  }
  .gm-online .gm-online__acc:hover .gm-online__acc-btn.gm-online__acc-btn.gm-online__acc-btn {
    color: var(--gm-red-600);
  }
}

/* slide 117: big news card as tall as the list next to it */
@media (min-width: 1101px) {
  .gm-news .gm-news__row:not(.gm-news__row--single) {
    align-items: stretch;
  }
  .gm-news .gm-news__row:not(.gm-news__row--single) .gm-news__feat {
    height: auto;
    min-height: 504px;
  }
  /* v0.18.1: the photo keeps its own square size (504 − 2 × 24 padding);
     only the grey box grows. Without this the photo grew to its full size. */
  .gm-news .gm-news__row:not(.gm-news__row--single) .gm-news__feat-media {
    height: calc(504px - 48px);
    align-self: flex-start;
  }
}

/* slide 119: help cards — the white cards use the GM colours, and the card
   under the mouse turns red with white text (colours run through the card's
   own --title / --text variables, so the red state always wins) */
.gm-help .gm-help__card:not(.is-hot) {
  --title: var(--gm-g-head);
  --text: var(--gm-g-text);
}

.gm-help.gm-help--follow .gm-help__grid:hover .gm-help__card.is-hot:not(:hover) {
  --title: var(--gm-g-head);
  --text: var(--gm-g-text);
}

.gm-help.gm-help--follow .gm-help__card:hover,
.gm-help.gm-help--follow .gm-help__card:focus-within {
  --title: var(--gm-white);
  --text: var(--gm-white);
}

/* v0.18.1: help-card buttons never stick out of the card — a long label
   (e.g. English "Inquire about service fees.") goes onto two lines instead.
   Only these buttons; every other button keeps one line as before. */
.gm-help .gm-help__btn.gm-help__btn {
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

/* v0.18.5: About page hero + red stat band (GM About Stat Band), Figma look.
   For a hero directly followed by the stat band only (other pages are not
   affected):
   - desktop: the text column gets 80px room under the buttons (the band is
     pulled up 80px, so the buttons stay visible)
   - 1280px and wider: the image box is placed like Figma (768 x 587 on a
     1344 page: 57.1% of the content width, right edge 48px past the content,
     bottom at the hero bottom so the band covers the base of the building).
     The image fills the box (cover, anchored at the bottom). Use the Figma
     export "bg_removal" building PNG; the plane goes in "Floating pictures"
     (positions are % of this box). */
@media (min-width: 1025px) {
  .elementor-widget-gm-hero:has(+ .elementor-widget-gm-about-band) .gm-hero .gm-hero__content {
    position: relative;
    z-index: 1;
    padding-bottom: 80px;
  }
  .elementor-widget-gm-hero:has(+ .elementor-widget-gm-about-band) .gm-hero .gm-hero__media {
    align-self: end;
    margin-bottom: -40px; /* the hero's own bottom padding */
  }
}

@media (min-width: 1280px) {
  .elementor-widget-gm-hero:has(+ .elementor-widget-gm-about-band) .gm-hero .gm-hero__grid {
    position: relative;
  }
  .elementor-widget-gm-hero:has(+ .elementor-widget-gm-about-band) .gm-hero .gm-hero__media {
    position: static;
    align-self: stretch;
    margin-bottom: 0;
  }
  .elementor-widget-gm-hero:has(+ .elementor-widget-gm-about-band) .gm-hero .gm-hero__stage {
    position: absolute;
    right: calc(-1 * var(--gm-gutter, 48px));
    bottom: -40px; /* down to the hero bottom (hero bottom padding) */
    width: 57.1428%; /* 768 of 1344 (Figma) */
    max-width: none;
    height: auto;
    aspect-ratio: 768 / 587;
  }
  .elementor-widget-gm-hero:has(+ .elementor-widget-gm-about-band) .gm-hero .gm-hero__img {
    position: static;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: 50% 100%;
    transform: none;
  }
}

/* ==========================================================================
   v0.18.6 — Training center + Travel agent feedback (slides 123–125)
   ========================================================================== */

/* slide 123: "คำถามที่พบบ่อย (FAQ)" button in the red question band hovers
   like the hero buttons (move up + shadow, numbers from Tools → GM Global
   Styles → Buttons). Only GM Question Band. */
.gm-qband .gm-qband__btn.gm-qband__btn {
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

@media (hover: hover) {
  .gm-qband .gm-qband__btn.gm-qband__btn:hover,
  .gm-qband .gm-qband__btn.gm-qband__btn:focus-visible {
    transform: translateY(calc(-1 * var(--gm-s-btn-lift, 2px)));
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  }
}

@media (prefers-reduced-motion: reduce) {
  .gm-qband .gm-qband__btn.gm-qband__btn:hover {
    transform: none;
  }
}

/* slide 124: Training topic buttons use the same spacing as the Support FAQ
   category buttons (gap between buttons, icon size, phone padding).
   Only GM Training Topics. */
.gm-trt .gm-trt__tabs.gm-trt__tabs {
  gap: 16px;
}

.gm-trt .gm-trt__tab .gm-trt__ico.gm-trt__ico,
.gm-trt .gm-trt__tab .gm-trt__ico--img.gm-trt__ico--img {
  width: 48px;
  height: 48px;
}

@media (max-width: 767px) {
  .gm-trt .gm-trt__tabs.gm-trt__tabs {
    gap: 16px;
  }
  .gm-trt .gm-trt__tabs .gm-trt__tab.gm-trt__tab {
    gap: 16px;
    padding: 16px;
  }
  .gm-trt .gm-trt__tab .gm-trt__ico.gm-trt__ico,
  .gm-trt .gm-trt__tab .gm-trt__ico--img.gm-trt__ico--img {
    width: 40px;
    height: 40px;
  }
}

/* slide 125 (Travel agent): the "ดูฟีเจอร์ทั้งหมด" button in the red banner
   (GM Banner) was cut off — the box had a fixed 624px height on desktop and
   the spec text sizes need more room. Desktop only (tablet / phone already
   grow): the box is at least 624px and grows with its text, 64px space under
   the button, and the laptop picture moves down by the same amount so it
   still sits at the bottom edge. Only GM Banner. */
@media (min-width: 1025px) {
  .gm-banner .gm-banner__box.gm-banner__box {
    height: auto;
    min-height: 624px;
  }
  .gm-banner .gm-banner__copy.gm-banner__copy {
    padding-bottom: 64px;
  }
  .gm-banner .gm-banner__img.gm-banner__img {
    top: calc(96px + (100% - 624px));
  }
}

/* v0.18.7 — slide (Training center): the "ดูเพิ่มเติม" button on the video
   guide cards (GM Video Guides) looks like the promotion card button — the
   standard GM button (height, padding, min width, border, arrow from Tools →
   GM Global Styles → Buttons) instead of the small button. Text style is
   unchanged (GM Buttons). Only GM Video Guides. */
.gm-vg .gm-vg__more.gm-vg__more.gm-btn--sm {
  min-height: var(--gm-s-btn-h-d, 56px);
  min-width: var(--gm-s-btn-minw-d, 160px);
  padding: calc(var(--gm-s-btn-py-d, 14px) - var(--gm-s-btn-border, 2px) + 1px) calc(var(--gm-s-btn-px-d, 32px) - var(--gm-s-btn-border, 2px) + 1px);
  border-width: var(--gm-s-btn-border, 2px);
  border-radius: var(--gm-radius-btn, 40px);
  gap: 8px;
  line-height: var(--e-global-typography-gmbtn-line-height, 1.4);
}

.gm-vg .gm-vg__more.gm-vg__more.gm-btn--sm svg {
  width: var(--gm-s-btn-arrow, 22px);
  height: var(--gm-s-btn-arrow, 22px);
}

@media (min-width: 768px) and (max-width: 1024px) {
  .gm-vg .gm-vg__more.gm-vg__more.gm-btn--sm {
    min-height: var(--gm-s-btn-h-t, 56px);
  }
}

@media (max-width: 767px) {
  .gm-vg .gm-vg__more.gm-vg__more.gm-btn--sm {
    min-height: var(--gm-s-btn-h-m, 52px);
    min-width: var(--gm-s-btn-minw-m, 0px);
    padding: calc(var(--gm-s-btn-py-m, 12px) - var(--gm-s-btn-border, 2px) + 1px) calc(var(--gm-s-btn-px-m, 24px) - var(--gm-s-btn-border, 2px) + 1px);
  }
}
