/*
Theme Name: NexSas-Child
Template:   nexsas
Theme URI:  https://nextsaas-wp-dark.pixels71.com/
Author:     Pixels71
Author URI: https://themeforest.net/user/pixels71
Description: NexSas child theme — all custom CSS lives here (single source of truth).
Version:    1.3.2
Requires at least: 5.0
Tested up to: 6.9
Requires PHP: 7.0
License:    GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nexsas-child
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready


/* check editing - will delete after */ 



/* ============================================================
   GLOBAL — first container top padding
   190px desktop / 150px mobile
   whitelist approach: only page-level Elementor templates
   mega menus, popups, headers, footers naturally excluded
   ============================================================ */

.elementor-location-single > .e-con:first-child > .e-con-inner,
  .elementor-location-archive > .e-con:first-child > .e-con-inner,
  .elementor-location-error_404 > .e-con:first-child > .e-con-inner,
  .elementor[data-elementor-type="wp-page"] > .e-con:first-child > .e-con-inner,
  body.single-careers .elementor > .e-con:first-child > .e-con-inner {
  padding-top: 190px !important;
}

@media (max-width: 767px) {
  .elementor-location-single > .e-con:first-child > .e-con-inner,
  .elementor-location-archive > .e-con:first-child > .e-con-inner,
  .elementor-location-error_404 > .e-con:first-child > .e-con-inner,
  .elementor[data-elementor-type="wp-page"] > .e-con:first-child > .e-con-inner,
  body.single-careers .elementor > .e-con:first-child > .e-con-inner {
    padding-top: 150px !important;
  }
}

/* Kill padding on mega menu containers (any nested .e-con-inner inside .menu_th) */
body .menu_th .e-con-inner,
body #menu_th .e-con-inner {
  padding-top: 0 !important;
  padding-bottom: 0 !important;

}
/* Kill padding on mega menu containers (any nested .e-con-inner inside .menu_en) */
body .menu_en .e-con-inner,
body #menu_en .e-con-inner {
  padding-top: 0 !important;
  padding-bottom: 0 !important;

}

/* ============================================================
   WORDPRESS DEFAULTS
   ============================================================ */



html {
  scroll-behavior: auto !important;
}

.alignleft  { float: left;  margin-right: 1.5em; }
.alignright { float: right; margin-left:  1.5em; }
.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.bypostauthor    { font-weight: bold; }
.gallery-caption { font-style: italic; text-align: center; }

.screen-reader-text {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}


/* ============================================================
   TYPOGRAPHY — language-scoped fonts
   ============================================================ */

/* TH — Noto Sans Thai for everything (except admin bar / icons / counters) */
html[lang^="th"] body,
html[lang^="th"] body *:not(#wpadminbar):not(#wpadminbar *):not(i):not(svg):not(.fa):not(.material-icons):not(.ab-icon):not(.elementor-counter-number):not(.elementor-counter-number-suffix) {
  font-family: "Noto Sans Thai", sans-serif !important;
}
html[lang^="th"] body .elementor-counter-number,
html[lang^="th"] body .elementor-counter-number-suffix {
  font-family: "Inter", sans-serif !important;
}

/* EN — Inter for everything (except admin bar / icons) */
html[lang^="en"] body,
html[lang^="en"] body *:not(#wpadminbar):not(#wpadminbar *):not(i):not(svg):not(.fa):not(.material-icons):not(.ab-icon) {
  font-family: "Inter", sans-serif !important;
}
html[lang^="en"] body h1,
html[lang^="en"] body h2,
html[lang^="en"] body h3,
html[lang^="en"] body .nextsaas_heading,
html[lang^="en"] body .elementor-heading-title{
    letter-spacing: -0.06em !important;
}
strong {
    font-weight: 600 !important;
}
/* Default paragraph size (site-wide, unstyled paragraphs only) */
body:not(.elementor-editor-active) p:not([class]):not([style]) {
  font-size: 18px !important;
}
@media (max-width: 767px) {
  html[lang^="th"] body:not(.elementor-editor-active) p:not([class]):not([style]) {
    font-size: 20px !important;
  }
  .admin-bar .nextsaas-header {
    top: 0 !important;
  }
}

/* All paragraphs use the theme's secondary color */
p {
  color: var(--color-secondary);
}


/* ============================================================
   LAYOUT — global Elementor container scale
   `zoom` (not `transform: scale`) so the layout box shrinks too,
   otherwise the scale leaves big empty bands top & bottom of every section.
   ============================================================ */

.e-con.e-flex > .e-con-inner {
  zoom: 0.9;
}


/* ============================================================
   HEADER / NAV / LOGO
   ============================================================ */

/* Menu link — no border */
.nav-item-link {
  border: none !important;
}

/* Fixed logo size */
.main-logo,
.mobile-logo,
header .sidebar figure {
  max-width: 140px !important;
}

/* Header layout (desktop) */
@media (min-width: 1024px) {
  .nextsaas-header.header-four div.justify-between {
    justify-content: space-evenly;
  }
  .nextsaas-header.header-four div.gap-\[76px\] {
    gap: 180px;
  }

  /* Sub-menu width */
  .submenu-wrapper {
    width: 880px !important;
    max-width: 880px !important;
  }
}

/* Mega-menu hover bridge — prevents flicker between trigger and panel */
.mega-menu {
  position: relative;
}
.mega-menu > .sub-menu {
  top: 100% !important;
  margin-top: 0 !important;
}
.mega-menu::after {
  content: "";
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  height: 20px;
}


/* ============================================================
   LANGUAGE SWITCHER
   ============================================================ */

.lang-item-th-th {
  display: inline-flex !important;
  align-items: center;
}
.lang-item-th-th::after {
  content: '|';
  margin: 0 -13px;
  opacity: 0.4;
  font-weight: 400;
}
@media (max-width: 767px) {
  .lang-item-th-th::after {
    display: none;
  }
}
.current-lang a {
  font-weight: 700 !important;
}
.lang-item-en {
  margin-left: -2px !important;
}


/* ============================================================
   BUTTONS
   ============================================================ */

button,
a.btn {
  border-radius: 5px !important;
}


/* ============================================================
   COUNTERS
   ============================================================ */

.elementor-counter-number {
  letter-spacing: 0.08em !important;
}


/* ============================================================
   TEAM CARDS
   ============================================================ */

.nextsaas-team-name a {
  pointer-events: none;
  cursor: default;
}
.nextsaas-team-hover-card {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
  position: absolute;
  bottom: 60px;
}
.nextsaas-team-designation {
  font-size: 18px !important;
}


/* ============================================================
   RELATED BLOGS THUMBNAIL
   ============================================================ */

.related-blog .elementor-post__thumbnail img {
  top: calc(50% + 1px) !important;
}


/* ============================================================
   CAREER SINGLE POSTS + LANDING PAGES
   scope: body.single-careers + EN landing (id 39665) + TH landing (id 7363)
   ============================================================ */

/* Text color — applies to root + all common text elements */
body.single-careers,
body.page-id-39665,
body.page-id-7363 {
  color: #333333;
}
body.single-careers :is(h1, h2, h3, h4, h5, h6, p, li),
body.page-id-39665  :is(h1, h2, h3, h4, h5, h6, p, li),
body.page-id-7363   :is(h1, h2, h3, h4, h5, h6, p, li) {
  color: #333333;
}

/* Heading widget spacing */
body.single-careers .elementor-widget-heading {
  margin-bottom: 12px !important;
}

/* ── EN typography ── */
body.single-careers .elementor-widget-text-editor p,
body.single-careers .elementor-widget-text-editor li {
  font-size: 18px !important;
  line-height: 1.35 !important;
}
body.single-careers .elementor-widget-text-editor h2 {
  font-size: 29px !important;
  line-height: 1.55 !important;
  margin-top: 25px !important;
  margin-bottom: 25px !important;
	font-weight:600 !important;
}
body.single-careers .elementor-widget-text-editor h3 {
  font-size: 24px !important;
  line-height: 1.3 !important;
  margin-top: 24px !important;
  margin-bottom: 20px !important;
}

/* ── TH typography overrides (looser line-height for tone marks) ── */
html[lang^="th"] body.single-careers .elementor-widget-text-editor p,
html[lang^="th"] body.single-careers .elementor-widget-text-editor li {
  font-size: 18px !important;
  line-height: 1.75 !important;
}
html[lang^="th"] body.single-careers .elementor-widget-text-editor h2 {
  line-height: 1.5 !important;
	font-weight:600 !important;
}
html[lang^="th"] body.single-careers .elementor-widget-text-editor h3 {
  line-height: 1.45 !important;
}


/* ============================================================
   RESTORE LIST BULLETS — text-editor widgets on career pages
   theme reset strips list-style: this puts disc/decimal back
   ============================================================ */

body.single-careers .elementor-widget-text-editor ul,
body.single-careers .elementor-widget-text-editor ul[role="list"] {
  list-style: disc outside !important;
  padding-left: 3.7em !important;
  margin: 0 0 1em 0 !important;
}
body.single-careers .elementor-widget-text-editor ul li,
body.single-careers .elementor-widget-text-editor ul[role="list"] li {
  list-style: disc outside !important;
  display: list-item !important;
  margin-bottom: 8px !important;
  line-height: 1.35 !important;
}

body.single-careers .elementor-widget-text-editor ol {
  list-style: decimal outside !important;
  padding-left: 1.5em !important;
  margin: 0 0 1em 0 !important;
}
body.single-careers .elementor-widget-text-editor ol li {
  list-style: decimal outside !important;
  display: list-item !important;
  margin-bottom: 8px !important;
  line-height: 1.35 !important;
}

/* Thai list rows need more line-height */
html[lang^="th"] body.single-careers .elementor-widget-text-editor ul li,
html[lang^="th"] body.single-careers .elementor-widget-text-editor ul[role="list"] li,
html[lang^="th"] body.single-careers .elementor-widget-text-editor ol li {
  line-height: 1.25 !important;
}

/* ── HubSpot form — Hashed Analytic style (darker fields) ── */

/* Inputs / textareas / checkboxes */
[data-hsfc-id=Renderer] .hsfc-TextInput,
[data-hsfc-id=Renderer] .hsfc-TextareaInput,
[data-hsfc-id=Renderer] .hsfc-Select__Input,
[data-hsfc-id=Renderer] .hsfc-CheckboxFieldGroup__Options label > input {
  background-color: #e6e8e3 !important;   /* darker — was #f3f4f2 */
  border: 1px solid transparent !important;
  border-radius: 0.5rem !important;
  padding: 0.75rem 0.9rem !important;
  font-size: 1rem !important;
  color: #131313 !important;
  box-shadow: none !important;
  transition: border-color 0.15s, background 0.15s;
}

[data-hsfc-id=Renderer] .hsfc-TextareaInput {
  min-height: 140px;
  resize: vertical;
}

/* Focus — lighten on focus for contrast */
[data-hsfc-id=Renderer] .hsfc-TextInput:focus,
[data-hsfc-id=Renderer] .hsfc-TextareaInput:focus,
[data-hsfc-id=Renderer] .hsfc-Select__Input:focus {
  outline: none !important;
  border-color: #000 !important;
  background-color: #f3f4f2 !important;
}

/* Placeholder */
[data-hsfc-id=Renderer] .hsfc-TextInput::placeholder,
[data-hsfc-id=Renderer] .hsfc-TextareaInput::placeholder {
  color: #4e4e4e !important;
}

/* Labels */
[data-hsfc-id=Renderer] .hsfc-FieldLabel {
  color: #131313 !important;
  font-weight: 500 !important;
  font-size: 0.95rem !important;
  margin-bottom: 0.4rem !important;
}

[data-hsfc-id=Renderer] .hsfc-FieldLabel__Required {
  color: #131313 !important;
}

[data-hsfc-id=Renderer] .hsfc-RichText {
  color: #4e4e4e !important;
  font-size: 0.85rem !important;
}

/* Submit button */
[data-hsfc-id=Renderer] .hsfc-Button {
  background-color: #000 !important;
  color: #fff !important;
  border: 1px solid #000 !important;
  border-radius: 0.75rem !important;
  font-weight: 400 !important;
  padding: 0.85rem 1.75rem !important;
  font-size: 1rem !important;
  transition: background 0.15s, color 0.15s;
}
[data-hsfc-id=Renderer] .hsfc-Button:hover {
  background-color: #fff !important;
  color: #000 !important;
}

[data-hsfc-id=Renderer] .hsfc-Step .hsfc-Step__Content {
  padding: 0 !important;
  background: none !important;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

[data-hsfc-id=Renderer] .hsfc-FieldError {
  color: #131313 !important;
  font-size: 0.8rem !important;
  font-weight: 500 !important;
}

.hsfc-NavigationRow__Alerts { display: none !important; }
.hsfc-NavigationRow { margin-top: 0.5rem !important; }