/* ============================================================
   PFSS shared site header — Evator header, ISOLATED (matches homepage 1:1).
   Markup: app/Views/expolive-frontend/partials/site-header.php
   - home-v2 uses Evator's FULL theme CSS/JS (overlay over the hero)
   - internal pages load THIS file + the small menu script in template/header.php
     (identical white-menu header, made sticky since there's no hero behind it)
   ============================================================ */

/* Evator variables — kept at the THEME DEFAULTS so internal pages match the homepage exactly */
:root {
    --evator-heading-font: "Montserrat", sans-serif;
    --evator-primary-color: #2A07F9;
    --evator-secondary-color: #ef5323;
    --evator-heading-color: #01030B;
    --evator-base-color: #0F0E0E;
    --evator-border-color: #EDEDED;
}

/* ---------- Evator .theme-btn (CTA) ---------- */
.theme-btn,
a.theme-btn {
  z-index: 1;
  color: white;
  font-size: 20px;
  cursor: pointer;
  -webkit-transition: 0.4s;
  -o-transition: 0.4s;
  transition: 0.4s;
  font-weight: 600;
  overflow: hidden;
  text-align: center;
  padding: 18px 50px;
  position: relative;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  font-family: var(--evator-heading-font);
  text-transform: capitalize;
  background: var(--evator-primary-color); }
  @media only screen and (max-width: 575px) {
    .theme-btn,
    a.theme-btn {
      font-size: 16px;
      padding: 14px 30px; } }
  @media only screen and (max-width: 375px) {
    .theme-btn,
    a.theme-btn {
      padding: 10px 25px; } }
  .theme-btn:before,
  a.theme-btn:before {
    width: 0;
    height: 0;
    opacity: 0;
    z-index: -1;
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    -webkit-transition: 0.5s;
    -o-transition: 0.5s;
    transition: 0.5s;
    border-radius: 50%;
    background: var(--evator-secondary-color); }
  .theme-btn i,
  a.theme-btn i {
    -webkit-transition: 0.4s;
    -o-transition: 0.4s;
    transition: 0.4s;
    margin-left: 10px; }
  .theme-btn:hover,
  a.theme-btn:hover {
    color: white;
    background: var(--evator-secondary-color); }
    .theme-btn:hover:before,
    a.theme-btn:hover:before {
      opacity: 1;
      width: 110%;
      height: 110%;
      border-radius: 0; }
  .theme-btn.style-two,
  a.theme-btn.style-two {
    border: 1px solid;
    color: var(--evator-primary-color);
    background: var(--evator-lighter-color); }
    .theme-btn.style-two:before,
    a.theme-btn.style-two:before {
      background: white; }
    .theme-btn.style-two:hover,
    a.theme-btn.style-two:hover {
      color: var(--evator-heading-color); }
  .theme-btn.style-three,
  a.theme-btn.style-three {
    background: var(--evator-secondary-color); }
    .theme-btn.style-three:before,
    a.theme-btn.style-three:before {
      background: var(--evator-primary-color); }
    .theme-btn.style-three:hover,
    a.theme-btn.style-three:hover {
      background: var(--evator-primary-color); }

/* ---------- Evator .main-header / .main-menu / .navigation ---------- */
.main-header {
  position: relative;
  left: 0px;
  top: 0px;
  z-index: 999;
  width: 100%;
  -webkit-transition: all 500ms ease;
  -o-transition: all 500ms ease;
  transition: all 500ms ease; }
  .main-header .header-upper {
    z-index: 5;
    width: 100%;
    position: relative;
    -webkit-transition: all 500ms ease;
    -o-transition: all 500ms ease;
    transition: all 500ms ease; }
  .main-header .logo-outer {
    -webkit-box-flex: 0;
    -ms-flex: none;
    flex: none; }
    @media only screen and (max-width: 991px) {
      .main-header .logo-outer {
        display: none; } }
  .main-header .logo {
    z-index: 9;
    padding: 2px 0;
    max-width: 170px;
    position: relative; }
  .main-header.menu-absolute .header-upper {
    position: absolute; }
  .main-header.fixed-header .header-upper {
    top: 0;
    left: 0;
    position: fixed;
    -webkit-animation: sticky  1s;
    animation: sticky  1s;
    -webkit-box-shadow: 0px 0px 30px 0px rgba(87, 95, 245, 0.1);
    box-shadow: 0px 0px 30px 0px rgba(87, 95, 245, 0.1); }
  @media only screen and (min-width: 992px) {
    .main-header.fixed-header .main-menu .navbar-collapse > ul > li {
      padding-top: 25px;
      padding-bottom: 25px; } }

@media only screen and (max-width: 991px) {
  .nav-outer {
    width: 100%; } }

/** Header Main Menu **/
@media only screen and (max-width: 991px) {
  .main-menu {
    width: 100%; } }

.main-menu .mobile-logo {
  max-width: 170px;
  margin-right: auto; }
  @media only screen and (max-width: 575px) {
    .main-menu .mobile-logo {
      max-width: 150px; } }

@media only screen and (max-width: 991px) {
  .main-menu .collapse {
    overflow: auto; } }

.main-menu .navbar-collapse {
  top: 100%; }
  .main-menu .navbar-collapse > ul {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex; }
    @media only screen and (max-width: 991px) {
      .main-menu .navbar-collapse > ul {
        display: block;
        padding: 15px 0;
        background: #f9f9f9;
        -webkit-box-shadow: inset 0px 0px 30px 0px rgba(87, 95, 245, 0.1);
        box-shadow: inset 0px 0px 30px 0px rgba(87, 95, 245, 0.1); }
        .main-menu .navbar-collapse > ul > li:last-child {
          border-bottom: 1px solid var(--evator-border-color); } }
    .main-menu .navbar-collapse > ul > li > a {
      font-size: 24px; }
      @media only screen and (max-width: 1199px) {
        .main-menu .navbar-collapse > ul > li > a {
          font-size: 18px; } }
  @media only screen and (max-width: 991px) {
    .main-menu .navbar-collapse {
      left: 0;
      width: 100%;
      position: absolute;
      max-height: calc(100vh - 80px); } }
  .main-menu .navbar-collapse li {
    padding: 40px 20px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between; }
    @media only screen and (max-width: 1399px) {
      .main-menu .navbar-collapse li {
        padding-left: 10px;
        padding-right: 10px; } }
    @media only screen and (max-width: 991px) {
      .main-menu .navbar-collapse li {
        display: block;
        padding: 0 15px;
        border-top: 1px solid var(--evator-border-color); } }
    .main-menu .navbar-collapse li.dropdown .dropdown-btn {
      cursor: pointer;
      margin-left: 5px;
      margin-bottom: -3px;
      color: var(--evator-heading-color); }
      @media only screen and (max-width: 991px) {
        .main-menu .navbar-collapse li.dropdown .dropdown-btn {
          position: absolute;
          right: 10px;
          top: 0;
          width: 50px;
          height: 43px;
          border-left: 1px solid var(--evator-border-color);
          text-align: center;
          line-height: 43px; } }
    .main-menu .navbar-collapse li a {
      opacity: 1;
      display: block;
      font-weight: 500;
      position: relative;
      color: var(--evator-heading-color);
      font-family: var(--evator-heading-font);
      text-transform: capitalize;
      -webkit-transition: all 500ms ease;
      -o-transition: all 500ms ease;
      transition: all 500ms ease; }
      @media only screen and (max-width: 991px) {
        .main-menu .navbar-collapse li a {
          line-height: 1.2;
          padding: 10px 10px; } }
    .main-menu .navbar-collapse li.current > a, .main-menu .navbar-collapse li.current-menu-item > a {
      font-weight: 600; }
    .main-menu .navbar-collapse li li {
      border-top: 1px solid var(--evator-border-color); }
      .main-menu .navbar-collapse li li a {
        text-transform: capitalize; }
        .main-menu .navbar-collapse li li a:before {
          display: none; }
    .main-menu .navbar-collapse li .megamenu {
      position: absolute;
      left: 0px;
      top: 100%;
      width: 100%;
      z-index: 100;
      display: none;
      padding: 20px 0;
      background: #ffffff;
      -webkit-box-shadow: 2px 2px 5px 1px rgba(0, 0, 0, 0.05), -2px 0px 5px 1px rgba(0, 0, 0, 0.05);
      box-shadow: 2px 2px 5px 1px rgba(0, 0, 0, 0.05), -2px 0px 5px 1px rgba(0, 0, 0, 0.05); }
      .main-menu .navbar-collapse li .megamenu:after {
        display: block;
        clear: both;
        content: ""; }
      @media only screen and (max-width: 991px) {
        .main-menu .navbar-collapse li .megamenu {
          position: relative;
          -webkit-box-shadow: none;
          box-shadow: none;
          width: 100%; }
          .main-menu .navbar-collapse li .megamenu .container {
            max-width: 100%; }
          .main-menu .navbar-collapse li .megamenu .row {
            margin: 0px; } }
      .main-menu .navbar-collapse li .megamenu ul {
        display: block;
        position: relative;
        top: 0;
        width: 100%;
        -webkit-box-shadow: none;
        box-shadow: none; }
    .main-menu .navbar-collapse li ul {
      position: absolute;
      left: inherit;
      top: 100%;
      min-width: 250px;
      z-index: 100;
      display: none;
      background: white;
      -webkit-box-shadow: 2px 2px 5px 1px rgba(0, 0, 0, 0.05), -2px 0px 5px 1px rgba(0, 0, 0, 0.05);
      box-shadow: 2px 2px 5px 1px rgba(0, 0, 0, 0.05), -2px 0px 5px 1px rgba(0, 0, 0, 0.05); }
      @media only screen and (max-width: 991px) {
        .main-menu .navbar-collapse li ul {
          position: relative;
          display: none;
          width: 100%;
          -webkit-box-shadow: none;
          box-shadow: none;
          background: transparent; }
          .main-menu .navbar-collapse li ul:after {
            display: block;
            clear: both;
            content: ""; } }
  @media only screen and (max-width: 991px) and (max-width: 375px) {
    .main-menu .navbar-collapse li ul {
      min-width: auto; } }
      .main-menu .navbar-collapse li ul li {
        width: 100%;
        padding: 10px 20px; }
        @media only screen and (max-width: 991px) {
          .main-menu .navbar-collapse li ul li {
            padding: 0 15px; } }
        .main-menu .navbar-collapse li ul li ul {
          left: 100%;
          top: 0%; }
          @media only screen and (max-width: 991px) {
            .main-menu .navbar-collapse li ul li ul {
              left: auto; } }

.main-menu .navbar-header {
  display: none; }
  @media only screen and (max-width: 991px) {
    .main-menu .navbar-header {
      display: -webkit-box;
      display: -ms-flexbox;
      display: flex;
      -webkit-box-align: center;
      -ms-flex-align: center;
      align-items: center;
      -webkit-box-pack: start;
      -ms-flex-pack: start;
      justify-content: start; } }
  .main-menu .navbar-header .navbar-toggle {
    float: right;
    padding: 4px 0;
    cursor: pointer;
    background: transparent; }
    @media only screen and (min-width: 480px) and (max-width: 991px) {
      .main-menu .navbar-header .navbar-toggle {
        margin-right: 20px; } }
    .main-menu .navbar-header .navbar-toggle .icon-bar {
      background: var(--evator-base-color);
      height: 2px;
      width: 30px;
      display: block;
      margin: 7px 0; }

/* Header Number */
.header-number {
  color: white;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  margin-right: 40px;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center; }
  @media only screen and (max-width: 1299px) {
    .header-number {
      display: none; } }
  .header-number > i {
    font-size: 25px;
    margin-right: 15px;
    width: 60px;
    height: 60px;
    background: var(--evator-secondary-color);
    line-height: 60px;
    border-radius: 50%;
    text-align: center; }
  .header-number a {
    color: inherit;
    font-size: 20px;
    font-weight: 600;
    font-family: var(--evator-heading-font); }

/* Menu Btns */
.menu-btns {
  -webkit-box-flex: 0;
  -ms-flex: none;
  flex: none;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center; }
  @media only screen and (max-width: 479px) {
    .menu-btns {
      display: none; } }

/* White Menu */
@media only screen and (min-width: 992px) {
  .main-header.white-menu .navbar-collapse > ul > li > a,
  .main-header.white-menu .navbar-collapse > ul > li > .dropdown-btn {
    color: white; } }

.main-header.white-menu .header-upper {
  background: -webkit-gradient(linear, left top, left bottom, from(#000000), to(rgba(0, 0, 0, 0.2)));
  background: -webkit-linear-gradient(top, #000000 0%, rgba(0, 0, 0, 0.2) 100%);
  background: -o-linear-gradient(top, #000000 0%, rgba(0, 0, 0, 0.2) 100%);
  background: linear-gradient(180deg, #000000 0%, rgba(0, 0, 0, 0.2) 100%); }
  .main-header.white-menu .header-upper.bg-transparent {
    background: transparent; }

.main-header.white-menu .navbar-toggle .icon-bar {
  background: white; }

.main-header.white-menu.fixed-header .header-upper {
  background: #13384a !important; }


/* ============================================================
   PFSS overrides — make the white-menu header render correctly as a
   sticky bar on internal pages (no hero behind it).
   ============================================================ */
/* resets Evator's global stylesheet provides but this isolated file must restate */
.main-header a,
.main-header a:hover,
.main-header a:focus { text-decoration: none; }
.main-header .navigation li a { white-space: nowrap; }

/* sticky dark bar (same colours/text/button as the homepage header) */
.main-header.pfss-sticky { position: sticky; top: 0; z-index: 1030; }
.main-header.pfss-sticky .header-upper {
    position: relative;     /* in normal flow, not absolute */
    background: #0e2a38;     /* solid dark bar — no hero to show through on internal pages */
}
.main-header.pfss-sticky.shrink .header-upper { box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25); }

/* wide PFSS logo — override Evator's 170px cap, size by height, shrink on scroll */
.main-header .logo,
.main-header .mobile-logo { max-width: none; }
.main-header .logo img,
.main-header .mobile-logo img { height: 112px; width: auto; transition: height .35s ease; }
.main-header.pfss-sticky.shrink .logo img { height: 88px; }

/* desktop: reveal submenu on hover (Evator does this in JS; not loaded on internal pages) */
@media (min-width: 992px) {
    .main-menu .navbar-collapse li:hover > ul { display: block; }
    .main-header.pfss-sticky .navbar-collapse > ul > li {
        padding-top: 22px; padding-bottom: 22px; transition: padding .35s ease;
    }
    .main-header.pfss-sticky.shrink .navbar-collapse > ul > li {
        padding-top: 12px; padding-bottom: 12px;
    }
}

/* mobile: tap a parent row to open its submenu (.open toggled by the menu script) */
@media (max-width: 991.98px) {
    .main-menu .navbar-collapse li.dropdown.open > ul { display: block; }
    .main-header .logo img,
    .main-header .mobile-logo img { height: 92px; }
}

/* ============================================================
   Header layout/sizing overrides — moved here from fire-custom.css
   so this ONE file fully defines the header on every page.
   ============================================================ */
/* ---- Header menu: fit on ONE line with balanced spacing --- */
@media (min-width: 992px) {
    /* keep logo · menu · CTA on a single row */
    .main-header .header-inner { flex-wrap: nowrap; gap: 12px; }
    .main-header .nav-outer { flex: 1 1 auto; min-width: 0; }

    /* lay the menu out in one non-wrapping, centered row.
       float:none + width:100% are needed because Evator floats the <ul>,
       which makes it shrink-to-fit and left-align (defeating centering). */
    .main-header .nav-outer .navbar-collapse { width: 100%; float: none; }
    .main-header .navigation {
        display: flex !important;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: center;
        float: none !important;
        width: 100%;
    }
    .main-header .navigation > li { margin: 0 !important; }
    /* font-size needs !important to beat Evator's higher-specificity rule */
    .main-header .navigation > li > a {
        white-space: nowrap;          /* stop "ERP / Expo" breaking onto 2 lines */
        font-size: 14px !important;
        font-weight: 600 !important;
        line-height: 1.2;
        padding: 14px 13px !important;
        letter-spacing: .2px;
    }

    /* keep logo + CTA compact so they don't crowd / clip the menu */
    .main-header .logo img,
    .main-header .mobile-logo img { max-height: 92px; width: auto; }
    .main-header .menu-btns { flex: 0 0 auto; }
    .main-header .menu-btns .theme-btn {
        padding: 10px 18px !important;
        font-size: 13px !important;
        white-space: nowrap;
    }
}

/* Laptop / smaller desktops: tighten so it still fits one line */
@media (min-width: 992px) and (max-width: 1300px) {
    .main-header .navigation > li > a { font-size: 13px !important; padding: 14px 9px !important; }
    .main-header .menu-btns .theme-btn { padding: 9px 14px !important; font-size: 12px !important; }
    .main-header .header-inner { gap: 8px; }
}

/* ---- Header dropdown fix (desktop) ----------------------- */
/* Make submenus strictly hover-driven on desktop so they don't get
   "stuck" open. We force display:block to neutralise any inline
   display left by the theme's mobile slideToggle script, and use
   opacity/visibility (hover) to actually show/hide. */
@media (min-width: 992px) {
    .main-header .navigation li.dropdown > ul {
        display: block !important;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity .25s ease, visibility .25s ease, transform .25s ease;
        transform: translateY(10px);
    }
    .main-header .navigation li.dropdown:hover > ul {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }
    /* The mobile dropdown toggle button is not needed on desktop */
    .main-header .navigation li.dropdown .dropdown-btn {
        display: none !important;
    }
}

/* ---- Frosted sticky header on scroll --------------------- */
/* Evator adds .fixed-header on scroll (default = solid #222).
   Override it with a translucent, blurred ("frosted glass") bar so the
   page content scrolling underneath shows through, softly blurred. */
.main-header.fixed-header .header-upper,
.main-header.white-menu.fixed-header .header-upper {
    background: rgba(11, 30, 42, 0.55) !important;
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

/* Keep menu text/logo light on the dark frosted bar */
.main-header.fixed-header .navigation > li > a {
    color: #fff;
}
.main-header.fixed-header .navigation > li > a:hover {
    color: var(--theme-color, #ff5e3a);
}

/* Graceful fallback: if the browser can't blur, use a more opaque bar
   so text stays legible (no see-through-without-blur). */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .main-header.fixed-header .header-upper,
    .main-header.white-menu.fixed-header .header-upper {
        background: rgba(11, 30, 42, 0.92) !important;
    }
}

/* ============================================================
   Site-wide title font — Google font Montserrat on ALL headings/titles.
   (This file is loaded on every page — Fire pages + old template — so the
   rule applies site-wide. Overrides fx- Syne titles and Evator's heading font.
   Mono accent labels / subtitles keep their own fonts.)
   ============================================================ */
h1, h2, h3, h4, h5, h6,
.title, .section-title .title,
.hero-video-section .slider-content-inner .title,
.fx-why__title, .fx-about__title, .fx-card__title, .fx-about__ghost,
.footer-title, .speaker-item .content .name, .feature-item .title,
.event-two-item .title, .page-title, .main-heading, .main-subheading {
    font-family: 'Montserrat', sans-serif !important;
}

/* ============================================================
   UX branding: BLACK backgrounds → navy blue, site-wide.
   Evator's .bgc-black uses var(--evator-heading-color) (also the text color),
   so we override the background utility directly — text colours untouched.
   (.bgc-secondary stays var-driven; --evator-secondary-color is now orange.)
   ============================================================ */
.bgc-black { background-color: #13384a !important; }

/* Evator declares the colour vars on <body> (overriding :root), so set the
   secondary (pink) -> orange at body level too. This flips all theme-btn CTAs
   + .bgc-secondary backgrounds to orange. Primary/blue left untouched. */
body { --evator-secondary-color: #ef5323 !important; }
/* Hardcoded pink in Evator style.css -> orange (countdown chips keep their blue stop) */
.count-down li b { background: linear-gradient(180deg, rgba(239,83,35,.56) 0%, rgba(67,97,238,.56) 100%) !important; }
.project-shapes .shape.four, .project-shapes .shape.five { background-color: #ef5323 !important; }
