/* Replace Divi ETmodules icon font with Unicode / CSS so the site works without modules.woff */

/*
 * Divi sets .et-waypoint { opacity: 0 } until frontend JS adds .et-animated on scroll.
 * scripts.min.js is not deployed on static hosting, so waypoints never become visible.
 */
.et-waypoint:not(.et_pb_counters) {
  opacity: 1 !important;
}

/* Konferensha 2015: ~40% text / 60% image on desktop; stack (image under) on mobile */
.pap-konferensha-photo .et_pb_text_inner {
  padding-bottom: 0 !important;
}
.pap-konferensha-photo__figure {
  margin: 0;
  max-width: 100%;
  text-align: right;
}
.pap-konferensha-photo__figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}
@media (min-width: 981px) {
  .pap-konferensha-intro-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    gap: 1.25rem;
  }
  .pap-konferensha-intro-row .et_pb_column {
    float: none !important;
  }
  /* 40% text / 60% image of row width; gap subtracted so nothing overflows */
  .pap-konferensha-intro-row .et_pb_column_0 {
    flex: 0 0 calc((100% - 1.25rem) * 0.4);
    max-width: calc((100% - 1.25rem) * 0.4);
    width: auto !important;
    margin-right: 0 !important;
  }
  .pap-konferensha-intro-row .et_pb_column_1 {
    flex: 0 0 calc((100% - 1.25rem) * 0.6);
    max-width: calc((100% - 1.25rem) * 0.6);
    width: auto !important;
    margin-right: 0 !important;
  }
}
@media (max-width: 980px) {
  .pap-konferensha-intro-row {
    display: flex !important;
    flex-direction: column !important;
  }
  .pap-konferensha-intro-row .et_pb_column {
    float: none !important;
  }
  .pap-konferensha-intro-row .et_pb_column_0 {
    order: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .pap-konferensha-intro-row .et_pb_column_1 {
    order: 2 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 1.25rem !important;
  }
  .pap-konferensha-photo__figure {
    text-align: center;
  }
}

/* Homepage intro: real list (Divi reset clears ul defaults) */
.pap-home-goals {
  list-style: disc;
  padding-left: 1.35em;
  margin: 0 0 1em;
}
.pap-home-goals li {
  margin-bottom: 0.45em;
  padding-bottom: 0;
}

/* Hide "Lenk" from site navigation, keep /lenk/ page accessible directly */
#top-menu #menu-item-171,
#et-top-navigation #menu-item-171,
.mobile_menu #menu-item-171 {
  display: none !important;
}

/* Static export misses Divi scroll JS; ensure content clears sticky header */
body.et_fixed_nav #page-container {
  padding-top: 92px !important;
}
body.et_fixed_nav.page:not(.home):not(.page-id-246) #page-container {
  padding-top: 108px !important;
}
@media (max-width: 980px) {
  body.et_fixed_nav #page-container {
    padding-top: 80px !important;
  }
  body.et_fixed_nav.page:not(.home):not(.page-id-246) #page-container {
    padding-top: 80px !important;
  }
}

/* Normalize first content row spacing across all pages */
body.et_fixed_nav #main-content .et_builder_inner_content > .et_pb_section:first-child > .et_pb_row:first-child {
  padding-top: 40px !important;
}

/* Match homepage/open-content rounded first content container on other pages */
body.et_fixed_nav.page:not(.home):not(.page-id-246) #main-content .et_builder_inner_content > .et_pb_section:first-child > .et_pb_row:first-child {
  background-color: #fff !important;
  border-radius: 0 0 20px 20px !important;
  overflow: hidden !important;
}

/* Homepage feature blurbs: inline SVG icons (no ETmodules) */
.et_pb_blurb_0 .et-pb-icon,
.et_pb_blurb_1 .et-pb-icon,
.et_pb_blurb_2 .et-pb-icon {
  font-family: inherit !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f77707;
  line-height: 0;
}
.et_pb_blurb_0 .et-pb-icon > svg,
.et_pb_blurb_1 .et-pb-icon > svg,
.et_pb_blurb_2 .et-pb-icon > svg {
  display: block;
  width: 54px;
  height: 54px;
}

/* Parent menu dropdown indicator (was content:"3" + ETmodules) */
#top-menu .menu-item-has-children > a:first-child::after,
#et-secondary-nav .menu-item-has-children > a:first-child::after,
.et-menu .menu-item-has-children > a:first-child::after,
.et-menu-nav .menu-item-has-children > a:first-child::after {
  font-family: inherit !important;
  font-weight: 600 !important;
  content: "\25BE" !important;
  font-size: 0.75em !important;
  line-height: 1 !important;
  -webkit-font-smoothing: antialiased;
}

#top-menu li .menu-item-has-children > a:first-child::after,
.et-menu li li.menu-item-has-children > a:first-child::after {
  right: 20px !important;
  top: 6px !important;
}

/* Mega menu: keep Divi rule hiding nested arrows */
#top-menu li.mega-menu .menu-item-has-children > a:first-child::after,
.et_pb_fullwidth_menu li.mega-menu .menu-item-has-children > a:first-child::after,
.et_pb_menu li.mega-menu .menu-item-has-children > a:first-child::after {
  display: none !important;
}

/* Mobile menu toggle (was content:"\61" + ETmodules) */
.mobile_menu_bar::before,
.mobile_menu_bar::after,
.et_toggle_slide_menu::after {
  font-family: inherit !important;
  content: "\2630" !important;
  font-weight: normal !important;
}

/* Search icon (was content:"\55" + ETmodules) */
#et_search_icon {
  position: relative;
}
#et_search_icon::before {
  font-family: inherit !important;
  content: "" !important;
  position: absolute;
  left: 0;
  top: 2px;
  width: 9px;
  height: 9px;
  border: 2px solid currentColor;
  border-radius: 50%;
  box-sizing: border-box;
}
#et_search_icon::after {
  content: "" !important;
  position: absolute;
  left: 10px;
  top: 11px;
  width: 2px;
  height: 7px;
  background: currentColor;
  transform: rotate(-45deg);
  border-radius: 1px;
}

/* Search close (was ETmodules) */
span.et_close_search_field::after {
  font-family: inherit !important;
  content: "\00D7" !important;
  font-size: 28px !important;
  line-height: 1 !important;
}

/* Vimeo embeds: plain .pap-video / .pap-video-frame (no Divi overlay / FitVids) */
.pap-video {
  width: 100%;
  max-width: 100%;
  margin: 0 0 1.25rem;
}
.pap-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
  border-radius: 4px;
  overflow: hidden;
}
@supports not (aspect-ratio: 1 / 1) {
  .pap-video-frame::before {
    content: "";
    display: block;
    padding-top: 56.25%;
  }
}
.pap-video-frame::after {
  content: "\25B6";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 34px;
  line-height: 72px;
  text-align: center;
  pointer-events: none;
  transition: opacity 160ms ease;
}
.pap-video-frame iframe {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* On hover, fade the visual cue so player controls are easier to read */
.pap-video-frame:hover::after {
  opacity: 0.5;
}

.pap-video-frame.is-playing::after {
  opacity: 0;
}

