/*
Theme Name: Smarty Child
Template: smarty
*/
@media (max-width: 991px) {
  .header-holder { position: relative; }
  .header, .top-bar { display: none; }
  .top-bar-mobile, .header-mobile { display: block; }
  .stm-nav__menu > li { padding: 0; }

  .header-mobile { background: linear-gradient(180deg, #011b3a 0%, #0b2a52 100%); }
  .header-mobile .logo img { max-width: 150px; }
  .header-mobile .header-mobile__control-line,
  .header-mobile .header-mobile__control-line::before,
  .header-mobile .header-mobile__control-line::after { background: #fff; }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .header_view-style_3 .stm-nav__menu_type_header { margin-right: -12px; }
  .header_view-style_3 .stm-nav__menu_type_header > .menu-item {
    margin: 0 12px;
    font-size: 15px;
  }
  .header .logo { max-width: 20%; }
}

/* Wrap the menu rather than dropping the logo */
@media (min-width: 992px) {
  .header_view-style_3 .header__content {
    display: flex;
    align-items: center;
    min-height: 100px;
  }
  .header_view-style_3 .header__content::after { display: none; }   /* old float clearfix */

  .header_view-style_3 .header__content .logo {
    order: -1;               /* logo comes after the menu in the HTML */
    flex: 0 0 auto;
    float: none;
    height: auto;
    line-height: 1;
    max-width: 220px;
    margin-right: auto;
    padding: 15px 30px 15px 0;
  }
  .header_view-style_3 .stm-nav_type_header {
    float: none;
    flex: 1 1 auto;
  }
  .header_view-style_3 .stm-nav__menu_type_header {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .header_view-style_3 .stm-nav__menu_type_header > .menu-item > a {
    height: auto;
    line-height: 1.3;
    padding: 12px 0;
  }
}

/* Fix admin bar on small screens */
@media screen and (max-width: 600px) {
  body.admin-bar #wpadminbar { top: -46px; }
}

/* Move search bar into hamburger menu on mobile */
.stm-nav__menu_type_mobile-header .menu-item-search { padding: 12px 15px; background: #fff; }
.menu-item-search .stm-search-form { display: flex; }
.menu-item-search .stm-search-form__field {
  flex: 1; height: 44px; padding: 0 12px; border: 1px solid #e6e6e6; border-right: 0;
}
.menu-item-search .stm-search-form__submit {
  width: 44px; border: 0; background: #2e437e; color: #fff;
}
.menu-item-search .stm-search-form__submit-text { display: none; }

/* Remove the separate white search bar; hide the whole bar only if search was its only item */
.top-bar-mobile__search { display: none; }
.top-bar-mobile:has(> .top-bar-mobile__search:only-child) { display: none; }

/* Fix clipped headings */
.post_view_single .entry-title { margin-top: 0; }

/* Fix Header image on events */
.single-stm_event .stm-page-head,
.post-type-archive-stm_event .stm-page-head {
  background-image: url('/wp-content/uploads/2026/04/ECA-Website-2026-94.jpg');
  background-size: cover;
  background-position: center;
}
