/*
Theme Name: Profixt 2
Theme URI: https://profixt.com/
Description: Standalone Profixt training centre theme with bilingual navigation, course dates, forms and custom responsive layouts.
Author: Profixt
Version: 0.48.3
Text Domain: profixt-2
*/


/*
 * Keep the complete header visible while scrolling.
 */
#masthead,
.site-header {
    position: sticky;
    top: 0;
    z-index: 99999;
}

.admin-bar #masthead,
.admin-bar .site-header {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar #masthead,
    .admin-bar .site-header {
        top: 46px;
    }
}


/* v0.28.0 standalone theme baseline — no parent theme dependency. */
html{box-sizing:border-box;background:#0e1215}
*,*::before,*::after{box-sizing:inherit}
body{margin:0;background:#0e1215;color:#fff}
img{max-width:100%;height:auto}
.site{min-height:100vh;background:#0e1215}
.site-main{display:block;min-width:0}
.content-area{width:100%;min-width:0}
.entry-content{margin:0}
.entry-content::after{content:"";display:table;clear:both}
.profixt-standalone-header-inner{width:min(100% - 32px,1500px);margin-inline:auto;display:grid;grid-template-columns:auto 1fr;align-items:center;gap:28px;min-height:76px}
.site-header-main-section-left{display:flex;align-items:center;min-width:0}
.site-header-main-section-right{display:flex;align-items:center;justify-content:flex-end;gap:18px;min-width:0}
.site-branding{display:flex;align-items:center;min-width:0}
.primary-menu-container{min-width:0}
.primary-menu-container>ul{display:flex;align-items:center;gap:clamp(10px,1.2vw,22px);list-style:none;margin:0;padding:0}
.primary-menu-container li{position:relative}
.primary-menu-container a,.primary-menu-container button{font:inherit}
.profixt280-mobile-language{display:none}
@media(max-width:820px){
  .profixt-standalone-header-inner{width:100%;grid-template-columns:minmax(0,1fr) auto;gap:8px;min-height:66px;padding-inline:16px}
  .site-header-main-section-right{position:relative;gap:8px!important}
  .profixt280-mobile-language{display:inline-flex!important;align-items:center;justify-content:center;gap:5px;width:auto;min-width:48px;height:38px;padding:0 8px;border:1px solid rgba(255,255,255,.16);border-radius:7px;background:rgba(255,255,255,.04);color:#fff;text-decoration:none;flex:0 0 auto}
  .profixt280-mobile-language .p260-lang__flag{display:block;width:20px;height:13px;object-fit:cover;border-radius:2px}
  .profixt280-mobile-language .p258-lang__code{font-size:10px;line-height:1;font-weight:850;letter-spacing:.02em}
  .profixt165-mobile-toggle{position:static!important;inset:auto!important;transform:none!important;margin:0!important;flex:0 0 44px!important}
  .profixt272-mobile-language{display:none!important}
  .profixt165-mobile-drawer .profixt-language-button,
  .profixt165-mobile-drawer .profixt-language-switcher{display:none!important}
}


/* v0.40.9 — mobile dropdown interaction + layout fix.
 * Full-row dropdown buttons (e.g. Courses) must remain full width.
 * Only the split arrow beside linked parents (IRATA/About/Contact) is compact. */
@media (max-width: 820px) {
  .profixt165-mobile-menu > .menu-item-has-children {
    position: relative !important;
  }

  .profixt165-mobile-menu > .menu-item-has-children > .profixt-courses-menu__toggle:not(.profixt-courses-menu__toggle--split) {
    position: static !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 52px !important;
    padding: 14px 4px !important;
    justify-content: space-between !important;
    white-space: nowrap !important;
  }

  .profixt165-mobile-menu > .menu-item-has-children > .profixt-menu-parent-split {
    position: relative !important;
    display: flex !important;
    width: 100% !important;
    min-height: 52px !important;
    align-items: stretch !important;
  }

  .profixt165-mobile-menu > .menu-item-has-children > .profixt-menu-parent-split > .profixt-menu-parent-link {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 52px !important;
    padding: 14px 56px 14px 4px !important;
  }

  .profixt165-mobile-menu > .menu-item-has-children > .profixt-menu-parent-split > .profixt-courses-menu__toggle--split {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    width: 52px !important;
    min-width: 52px !important;
    height: 52px !important;
    min-height: 52px !important;
    padding: 0 !important;
    justify-content: center !important;
    z-index: 2 !important;
  }

  .profixt165-mobile-menu > .menu-item-has-children.is-open > .sub-menu {
    display: block !important;
  }
}

/* v0.40.13 — EdgeRope partner logo */
.p413-preview-canvas--edgerope{background:#0b0f14;}
.p413-preview-logo--edgerope{width:min(88%,560px);height:auto;max-height:125px;object-fit:contain;}


/* v0.40.14 — deterministic mobile dropdown baseline. JS applies inline
   !important display state after interaction, so historical dropdown rules
   cannot override mobile taps. */
@media (max-width: 820px) {
  #profixt165-mobile-drawer .profixt165-mobile-menu .menu-item-has-children > .sub-menu {
    display: none !important;
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    pointer-events: auto !important;
  }
  #profixt165-mobile-drawer .profixt165-mobile-menu .menu-item-has-children.is-open > .sub-menu {
    display: block !important;
  }
  #profixt165-mobile-drawer .profixt165-mobile-menu .profixt-menu-parent-split {
    display: flex !important;
    width: 100% !important;
    align-items: stretch !important;
  }
  #profixt165-mobile-drawer .profixt165-mobile-menu .profixt-menu-parent-split > .profixt-menu-parent-link {
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }
  #profixt165-mobile-drawer .profixt165-mobile-menu .profixt-menu-parent-split > .profixt-courses-menu__toggle--split {
    flex: 0 0 52px !important;
    width: 52px !important;
    min-width: 52px !important;
    padding-inline: 0 !important;
    justify-content: center !important;
  }
}

/* v0.40.16 — German language switcher uses real flag artwork. */
.profixt-language-toggle{display:inline-flex!important;align-items:center!important;gap:6px!important;white-space:nowrap!important;}
.p415-lang-flag{display:inline-block!important;width:22px!important;height:15px!important;max-width:none!important;object-fit:cover!important;border-radius:2px!important;vertical-align:middle!important;}
.profixt-language-submenu a{display:flex!important;align-items:center!important;gap:8px!important;}
@media(max-width:820px){
  .profixt280-mobile-language .p260-lang__flag{width:20px!important;height:13px!important;object-fit:cover!important;}
}


/* v0.40.17 — three-language switcher: BG / EN / DE, desktop + mobile. */
.profixt-language-button{position:relative!important;}
.profixt-language-toggle{display:inline-flex!important;align-items:center!important;gap:6px!important;background:transparent!important;border:0!important;color:inherit!important;cursor:pointer!important;}
.profixt-language-submenu{min-width:155px!important;z-index:99999!important;}
.profixt-language-submenu a{display:flex!important;align-items:center!important;gap:9px!important;}
.profixt-mobile-language-menu{position:relative!important;display:none!important;}
.profixt-mobile-language-toggle{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:5px!important;min-width:48px!important;height:38px!important;padding:0 8px!important;border:1px solid rgba(255,255,255,.16)!important;border-radius:7px!important;background:rgba(255,255,255,.04)!important;color:#fff!important;cursor:pointer!important;}
.profixt-mobile-language-submenu{position:absolute!important;right:0!important;top:44px!important;min-width:145px!important;padding:6px!important;background:#171717!important;border:1px solid rgba(255,255,255,.15)!important;border-radius:8px!important;box-shadow:0 10px 30px rgba(0,0,0,.35)!important;z-index:100000!important;}
.profixt-mobile-language-submenu[hidden]{display:none!important;}
.profixt-mobile-language-submenu a{display:flex!important;align-items:center!important;gap:8px!important;padding:9px 10px!important;color:#fff!important;text-decoration:none!important;white-space:nowrap!important;}
.profixt-mobile-language-submenu a:hover{background:rgba(255,255,255,.08)!important;}
@media (max-width: 1024px){.profixt-mobile-language-menu{display:inline-block!important;flex:0 0 auto!important;}.profixt280-mobile-language{display:inline-block!important;}.profixt280-mobile-language > a{display:none!important;}}
@media (min-width:1025px){.profixt-mobile-language-menu{display:none!important;}}


/* v0.40.19 — clean, compact desktop language selector. */
@media (min-width:1025px){
  #masthead .primary-menu-container .profixt-language-button{position:relative!important;display:flex!important;align-items:center!important;margin-left:4px!important;}
  #masthead .primary-menu-container .profixt-language-button>.profixt-language-toggle{
    display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;
    min-height:38px!important;height:38px!important;min-width:70px!important;width:auto!important;padding:0 11px!important;
    border:1px solid rgba(255,255,255,.16)!important;border-radius:9px!important;background:rgba(255,255,255,.045)!important;
    color:inherit!important;line-height:1!important;font:inherit!important;cursor:pointer!important;box-shadow:none!important;
  }
  #masthead .primary-menu-container .profixt-language-button>.profixt-language-toggle:hover,
  #masthead .primary-menu-container .profixt-language-button.is-open>.profixt-language-toggle{background:rgba(255,255,255,.10)!important;}
  #masthead .primary-menu-container .profixt-language-button>.profixt-language-toggle>span:last-child{display:block!important;width:7px!important;height:7px!important;border-right:1.5px solid currentColor!important;border-bottom:1.5px solid currentColor!important;transform:rotate(45deg) translateY(-2px)!important;margin-left:1px!important;}
  #masthead .primary-menu-container .profixt-language-button>.profixt-language-submenu{
    display:none!important;position:absolute!important;right:0!important;left:auto!important;top:calc(100% + 8px)!important;
    min-width:172px!important;width:max-content!important;padding:6px!important;margin:0!important;
    background:#171717!important;border:1px solid rgba(255,255,255,.15)!important;border-radius:10px!important;
    box-shadow:0 14px 36px rgba(0,0,0,.35)!important;z-index:100005!important;
  }
  #masthead .primary-menu-container .profixt-language-button.is-open>.profixt-language-submenu{display:block!important;}
  #masthead .primary-menu-container .profixt-language-submenu>li{display:block!important;margin:0!important;padding:0!important;width:100%!important;}
  #masthead .primary-menu-container .profixt-language-submenu>li>a{display:flex!important;align-items:center!important;gap:10px!important;padding:9px 10px!important;border-radius:7px!important;white-space:nowrap!important;color:#fff!important;text-decoration:none!important;line-height:1.25!important;}
  #masthead .primary-menu-container .profixt-language-submenu>li>a:hover{background:rgba(255,255,255,.08)!important;}
  #masthead .primary-menu-container .profixt-language-submenu>.current-menu-item>a{background:rgba(255,255,255,.06)!important;}
}
