/* ==========================================================
   Inner page hero (.ob2--hero) in the home banner format — UI only.
   Solid theme colour on the left, full photo on the right that fades
   softly into the colour, white text. Colour comes from --hc
   (blue by default, orange in the Data Security module).
   Markup and content are unchanged.
   ========================================================== */

/* base: theme colour panel, no white background / waves / curve band */
html body .ob2.ob2--hero {
  background-color: rgb(var(--hc)) !important;
  background-image: none !important;
  border-bottom: 0 !important;
}
html body .ob2.ob2--hero::before,
html body .ob2.ob2--hero::after { display: none !important; }

/* text: white, like the home banner */
html body .ob2.ob2--hero h1.ob2__title,
html body .ob2.ob2--hero h1.ob2__title span { color: #ffffff !important; -webkit-text-fill-color: #ffffff !important; }
html body .ob2.ob2--hero h1.ob2__title { text-shadow: 0 2px 18px rgba(0, 0, 0, .12); }

/* breadcrumb: white glass pill */
html body .ob2.ob2--hero .ob2__crumb {
  background: rgba(255, 255, 255, .14) !important;
  border: 1px solid rgba(255, 255, 255, .28) !important;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
html body .ob2.ob2--hero .ob2__crumb a,
html body .ob2.ob2--hero .ob2__crumb span,
html body .ob2.ob2--hero .ob2__crumb > i { color: #ffffff !important; -webkit-text-fill-color: #ffffff !important; }
html body .ob2.ob2--hero .ob2__crumb a:hover { opacity: .85; }

/* subtle dotted texture over the colour (same feel as the home banner) */
html body .ob2.ob2--hero .ob2__inner { position: relative; z-index: 2; }

/* ---------- desktop / laptop ---------- */
@media (min-width: 992px) {
  /* photo fills the right side, no curve */
  html body .ob2.ob2--hero .ob2__visual,
  html body .ob2.ob2--hero.ob2--director .ob2__visual,
  html body .ob2.ob2--hero:not(.ob2--director) .ob2__visual {
    width: 63% !important;
    clip-path: none !important;
    -webkit-clip-path: none !important;
    background: rgb(var(--hc)) !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }
  /* soft left edge, same fade as the home banner */
  html body .ob2.ob2--hero .ob2__photo {
    background-size: cover !important;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .6) 100px, #000 200px) !important;
            mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .6) 100px, #000 200px) !important;
    filter: none !important;
    opacity: 1;
  }
  html body .ob2.ob2--hero .ob2__visual::after {
    background: linear-gradient(90deg, rgba(var(--hc), .92) 0, rgba(var(--hc), .75) 110px, rgba(var(--hc), .4) 190px, rgba(var(--hc), .15) 260px, rgba(var(--hc), 0) 330px) !important;
  }
  /* small dot grid on the colour panel */
  html body .ob2.ob2--hero .ob2__inner::before {
    content: ""; position: absolute; z-index: -1; left: -40px; top: 18px; width: 220px; height: 140px; pointer-events: none;
    background: radial-gradient(rgba(255, 255, 255, .28) 1.3px, transparent 1.8px) 0 0 / 16px 16px;
    -webkit-mask-image: linear-gradient(135deg, #000, transparent 75%); mask-image: linear-gradient(135deg, #000, transparent 75%);
  }
}

/* ---------- tablet / mobile ---------- */
@media (max-width: 991px) {
  html body .ob2.ob2--hero { background-size: auto !important; }
  html body .ob2.ob2--hero .ob2__copy { color: #ffffff; }
  html body .ob2.ob2--hero .ob2__visual { background: rgb(var(--hc)) !important; }
  html body .ob2.ob2--hero .ob2__visual::after { background: linear-gradient(180deg, rgba(var(--hc), .55) 0%, rgba(var(--hc), .35) 100%) !important; }
}

/* Data Security slider hero: keep the top-right white glow, use the home-banner fade on the left */
@media (min-width: 992px) {
  html body .ob2.ob2--hero.ob2--slider .ob2__visual::after {
    background:
      radial-gradient(ellipse 560px 190px at 100% 0%, rgba(255, 255, 255, .92) 0%, rgba(255, 236, 214, .8) 38%, rgba(255, 150, 50, .3) 68%, rgba(255, 128, 0, 0) 92%),
      linear-gradient(90deg, rgba(var(--hc), .92) 0, rgba(var(--hc), .75) 110px, rgba(var(--hc), .4) 190px, rgba(var(--hc), .15) 260px, rgba(var(--hc), 0) 330px) !important;
  }
  html body .ob2.ob2--hero.ob2--slider .ob2__visual .ob2__slide {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .6) 100px, #000 200px) !important;
            mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .6) 100px, #000 200px) !important;
  }
  /* first slide photo has a plain white wall on its left: zoom a little towards the people */
  html body .ob2.ob2--hero.ob2--slider .ob2__visual .ob2__slide[data-tab="#home"] { background-size: 155% auto !important; background-position: 100% 38% !important; }
}

/* product logos in the hero (Oil & Gas product pages): white card so the logo reads on the theme colour */
html body .ob2.ob2--hero .ob2__logo {
  box-sizing: content-box !important;
  padding: 14px 26px !important;
  background: rgba(255, 255, 255, .96) !important;
  border-radius: 20px !important;
  box-shadow: 0 18px 40px -18px rgba(0, 30, 90, .55), 0 0 0 6px rgba(255, 255, 255, .18), 0 0 46px rgba(255, 255, 255, .35) !important;
}
@media (max-width: 991px) {
  html body .ob2.ob2--hero .ob2__logo { padding: 10px 18px !important; border-radius: 16px !important; margin-left: auto; margin-right: auto; }
}

/* ==========================================================
   Product hero with headline + CTAs (.ob2--cta, e.g. PCMS)
   Same height as the home banner (484px on desktop), home-style pill buttons.
   ========================================================== */
html body .ob2.ob2--hero.ob2--cta :is(h1, h2).ob2__headline {
  margin: 18px 0 12px !important; max-width: 580px;
  color: #ffffff !important; -webkit-text-fill-color: #ffffff !important;
  font-family: Manrope, sans-serif !important;
  font-size: clamp(28px, 2.7vw, 38px) !important; line-height: 1.14 !important; font-weight: 800 !important; letter-spacing: -.02em;
  text-shadow: 0 2px 18px rgba(0, 20, 70, .22);
}
html body .ob2.ob2--hero.ob2--cta :is(h1, h2).ob2__headline span { color: #bfe0ff !important; -webkit-text-fill-color: #bfe0ff !important; }
html body .ob2.ob2--hero.ob2--cta p.ob2__sub {
  margin: 0 0 22px !important; max-width: 540px; padding: 0 !important;
  color: rgba(255, 255, 255, .9) !important; font-size: 16px !important; line-height: 1.6 !important; font-weight: 500 !important;
}
html body .ob2.ob2--hero.ob2--cta p.ob2__sub::before { display: none !important; }
html body .ob2.ob2--hero.ob2--cta .ob2__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
html body .ob2.ob2--hero.ob2--cta .ob2__btn {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  border-radius: 999px; font-family: Manrope, sans-serif; font-size: 15px; font-weight: 800; line-height: 1.2; letter-spacing: .01em;
  text-decoration: none; white-space: nowrap;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease, background-color .3s ease, border-color .3s ease;
}
html body .ob2.ob2--hero.ob2--cta .ob2__btn i {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 13px;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
/* primary: glossy white pill, same as the home "Know More" button */
html body .ob2.ob2--hero.ob2--cta .ob2__btn--primary {
  padding: 6px 6px 6px 22px; color: #123a9c !important;
  border: 1px solid rgba(255, 255, 255, .95);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .55) 46%, rgba(255, 255, 255, 0) 50%),
    linear-gradient(180deg, #f7faff 0%, #e4edff 55%, #cfdeff 100%);
  box-shadow: 0 16px 32px -14px rgba(0, 20, 90, .85), 0 0 0 5px rgba(255, 255, 255, .16), inset 0 1px 0 #fff, inset 0 -4px 10px rgba(0, 109, 255, .22);
}
html body .ob2.ob2--hero.ob2--cta .ob2__btn--primary i {
  color: #fff; background: linear-gradient(180deg, rgba(255, 255, 255, .5) 0%, rgba(255, 255, 255, 0) 52%), linear-gradient(#006dff, #006dff);
  box-shadow: 0 8px 16px -6px rgba(0, 109, 255, .9), inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 -2px 4px rgba(0, 20, 90, .35);
}
html body .ob2.ob2--hero.ob2--cta .ob2__btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 40px -14px rgba(0, 20, 90, .95), 0 0 0 7px rgba(255, 255, 255, .24), inset 0 1px 0 #fff, inset 0 -4px 10px rgba(0, 109, 255, .26);
}
html body .ob2.ob2--hero.ob2--cta .ob2__btn--primary:hover i { transform: translateX(3px) rotate(-45deg); }
/* secondary: glass pill */
html body .ob2.ob2--hero.ob2--cta .ob2__btn--ghost {
  padding: 6px 22px 6px 6px; color: #ffffff !important;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .45);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
html body .ob2.ob2--hero.ob2--cta .ob2__btn--ghost i { color: #fff; background: rgba(255, 255, 255, .18); }
html body .ob2.ob2--hero.ob2--cta .ob2__btn--ghost:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .2); border-color: #ffffff; }
html body .ob2.ob2--hero.ob2--cta .ob2__btn--ghost:hover i { transform: translateY(2px); }
html body .ob2.ob2--hero.ob2--cta .ob2__btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* desktop: fixed height like the home banner, compact logo card, content centred vertically */
@media (min-width: 992px) {
  html body .ob2.ob2--hero.ob2--cta { height: 484px !important; min-height: 484px !important; }
  html body .ob2.ob2--hero.ob2--cta .ob2__inner { height: 100% !important; padding-top: 0 !important; padding-bottom: 0 !important; display: flex !important; align-items: center !important; }
  html body .ob2.ob2--hero.ob2--cta .ob2__copy { padding: 0 !important; max-width: 600px !important; }
  html body .ob2.ob2--hero.ob2--cta .ob2__crumb { margin-bottom: 16px !important; }
  html body .ob2.ob2--hero.ob2--logo.ob2--cta .ob2__logo { height: 64px !important; padding: 10px 20px !important; border-radius: 16px !important; }
}
@media (max-width: 991px) {
  html body .ob2.ob2--hero.ob2--cta :is(h1, h2).ob2__headline,
  html body .ob2.ob2--hero.ob2--cta p.ob2__sub { margin-left: auto !important; margin-right: auto !important; text-align: center; }
  html body .ob2.ob2--hero.ob2--cta :is(h1, h2).ob2__headline { font-size: 27px !important; }
  html body .ob2.ob2--hero.ob2--cta p.ob2__sub { font-size: 15px !important; }
  html body .ob2.ob2--hero.ob2--cta .ob2__actions { justify-content: center; }
}
@media (max-width: 420px) {
  html body .ob2.ob2--hero.ob2--cta .ob2__btn { font-size: 14px; }
}/* "Explore features" button: stop below the sticky header */
#features { scroll-margin-top: 130px; }
/* product hero logos: wide logos (e.g. SmartGasNet) capped in width so they don't dominate the banner */
html body .ob2.ob2--hero.ob2--logo.ob2--cta .ob2__logo { max-width: 280px !important; height: auto !important; max-height: 64px !important; width: auto !important; object-fit: contain; }
@media (max-width: 991px) { html body .ob2.ob2--hero.ob2--logo.ob2--cta .ob2__logo { max-width: 230px !important; max-height: 52px !important; } }
/* logo directly followed by the description (no headline): keep a gap */
html body .ob2.ob2--hero.ob2--cta .ob2__title + p.ob2__sub { margin-top: 18px !important; }
/* product hero description: bigger, easier to read */
html body .ob2.ob2--hero.ob2--cta p.ob2__sub { font-size: 19px !important; line-height: 1.55 !important; max-width: 580px; }
@media (max-width: 1199px) { html body .ob2.ob2--hero.ob2--cta p.ob2__sub { font-size: 17px !important; } }
@media (max-width: 991px) { html body .ob2.ob2--hero.ob2--cta p.ob2__sub { font-size: 16px !important; } }
/* People & Workplace home hero: slider headings = same size as the Oil & Gas hero heading (desktop) */
@media (min-width: 992px) {
  html body .hm-hero h2.hm-hs-title:not(#_) { font-size: clamp(24px, 2.15vw, 36px) !important; line-height: 1.15 !important; letter-spacing: -.02em !important; }
}
/* ===== PROTO chat widget (chat.unistal.com): replace its navy (--p1 #262F7E) with the section theme colour ===== */
html body #proto-root { --p1: #006dff !important; }                                   /* blue: home, Oil & Gas, Custom Development, other pages */
html body #proto-root .pw-launch { box-shadow: 0 10px 28px rgba(0, 109, 255, .38) !important; }
html:has(link[href*="protegent-edr.css"]) body #proto-root { --p1: #ff8000 !important; }   /* orange: Data Security pages */
html:has(link[href*="protegent-edr.css"]) body #proto-root .pw-launch { box-shadow: 0 10px 28px rgba(255, 128, 0, .38) !important; }
html:has(link[href*="/hrms"]) body #proto-root { --p1: #ed2024 !important; }              /* red: People & Workplace pages */
html:has(link[href*="/hrms"]) body #proto-root .pw-launch { box-shadow: 0 10px 28px rgba(237, 32, 36, .35) !important; }
/* PROTO welcome area: darker theme gradient + soft white circle so the white text always reads well */
html body #proto-root { --pw-dark: #0a3a9e; }
html:has(link[href*="protegent-edr.css"]) body #proto-root { --pw-dark: #b45300; --p2: #8a3f00 !important; }
html:has(link[href*="/hrms"]) body #proto-root { --pw-dark: #a3121a; --p2: #14334f !important; }
html body #proto-root .pw-hero { background: linear-gradient(135deg, var(--pw-dark) 0%, var(--p1) 100%) !important; }
html body #proto-root .pw-hero::before { background: rgba(255, 255, 255, .14) !important; }
html body #proto-root .pw-hero h2 { color: #fff !important; text-shadow: 0 1px 2px rgba(0, 0, 0, .18); }
html body #proto-root .pw-hero p { color: rgba(255, 255, 255, .92) !important; }
