/**
 * Theme Name:     Proform Builds
 * Author:         Elegant Themes
 * Template:       Divi
 * Text Domain:	   proform-builds
 * Description:    Smart. Flexible. Beautiful. Divi is the most powerful theme in our collection.
 */
.et_pb_accordion .et_pb_toggle_open .et_pb_toggle_title:before {
  content: "\21" !important;
  display: block !important;
}
span.mobile_menu_bar.mobile_menu_bar_toggle {
  padding: 0 !important;
}

#main-header,
#main-header.et-fixed-header {
  box-shadow: none !important;
}

@media only screen and (min-width: 480px) {
  .et_pb_portfolio_item {
    margin-bottom: 5% !important;
    margin-right: 5.5% !important;
    width: 47.25% !important;
  }
  .et_pb_portfolio_item:nth-child(2n) {
    margin-right: 0 !important;
  }
}

/* Menu Item Customization */
#top-menu li.secondary {
  display: none;
}
#main-header #mobile_menu li.secondary a {
  font-size: 1rem;
  text-transform: uppercase;
}
#mobile_menu hr {
  border: 0;
  border-bottom: 1px solid #999;
  display: none;
  margin: 2rem auto;
  max-width: 90px;
}
#et_mobile_nav_menu #mobile_menu .et_pb_social_media_follow {
  align-items: center;
  display: flex !important;
  display: none;
  flex-direction: row;
  justify-content: center;
  margin-top: 1rem;
  padding: 0;
}
#main-header #et_mobile_nav_menu #mobile_menu .et_pb_social_media_follow li {
  display: inline;
}
/* Navigation Link Underline and Hover */
#top-menu-nav #top-menu a {
  padding: 1rem 0;
}
#top-menu-nav #top-menu a:after {
  background: #fff;
  bottom: 0.5rem;
  content: "";
  display: block;
  height: 1px;
  position: absolute;
  transform: scaleX(0);
  transform-origin: 50%;
  transition: all 0.3s;
  width: 100%;
}
#top-menu-nav #top-menu a:hover {
  color: #000;
  opacity: 1;
}
#top-menu-nav #top-menu a:hover:after,
#top-menu-nav #top-menu li.current-menu-item a:after {
  background: #000;
  transform: scaleX(1);
}
.home header:not(.et-fixed-header) #top-menu-nav #top-menu a:hover {
  color: #fff;
}
.home header:not(.et-fixed-header) #top-menu-nav #top-menu a:hover:after {
  background: #fff;
}

/* Adjusting navigation spacing */
#main-header #et-top-navigation {
  padding: 1.85rem 0;
  transition: none;
}

/* Logo image swap on Home page */
.home .logo_container a {
  display: inline-block;
  height: 100%;
  position: relative;
  width: auto;
}
#main-header #logo {
  transition: opacity 0.3s ease-in-out;
}
.home .logo_container #logo {
  opacity: 0;
}
.et-fixed-header .logo_container #logo {
  opacity: 1;
}
.home .logo_container a::before {
  background: url("https://proform.jhchoistudio.com/wp-content/uploads/2024/03/proform_modified_logo_white_stacked_White.png") no-repeat;
  background-size: contain;
  content: "";
  height: 100%;
  left: 0;
  max-height: 84px;
  opacity: 1;
  position: absolute;
  top: 0;
  transition: all 0.3s ease-in-out;
  width: 100%;
}
.home .et-fixed-header .logo_container a:hover::before {
  opacity: 0;
}
.home .et-fixed-header .logo_container img {
  opacity: 1;
  transition: all 0.3s ease-in-out;
}
.home #top-menu a {
  color: #fff;
}

/* Mobile Navigation */
@media (max-width: 980px) {
  body.opened {
    overflow: hidden;
  }
  #main-header.et-fixed-header {
    background: #fff;
    position: fixed;
    transition: background 0.3s ease-in-out;
  }
  #main-header .container.et_menu_container {
    width: 90%;
  }
  #main-header .logo_container a {
    display: block;
    height: calc(100% - 1rem);
    position: absolute;
    top: 0.5rem;
  }
  #main-header #logo {
    max-height: 100%;
    max-width: unset;
  }
  .home header:not(.et-fixed-header) .mobile_menu_bar:before {
    color: #fff;
    transition: color 0.3s;
  }

  /* Opened Menu Styling */
  #et_mobile_nav_menu .mobile_nav.opened .mobile_menu_bar:before {
    color: #000;
    content: "\4d";
  }
  #et_mobile_nav_menu ul#mobile_menu {
    background-color: #fff;
    border: none;
    height: 100vh;
    overflow-y: scroll;
    padding: 6.5rem 8vw 0;
    position: fixed;
    top: 0;
    width: 100vw;
    z-index: 99;
  }
  .logged-in #et_mobile_nav_menu ul#mobile_menu {
    padding-top: 9rem;
  }
  #main-header .logo_container,
  .et_header_style_left #main-header #et-top-navigation .mobile_menu_bar {
    z-index: 100;
  }
  #main-header li a:hover {
    background-color: transparent;
    opacity: 1;
  }
  body.opened #top-menu-nav #top-menu a:after {
    opacity: 0;
    transition: all 0.3s ease-in-out;
  }
  body.opened #main-header #logo {
    opacity: 1;
  }
  #mobile_menu li,
  #mobile_menu hr {
    display: block;
    opacity: 0;
  }
  #mobile_menu[style="display: block;"] li,
  #mobile_menu[style="display: block;"] hr {
    animation: fadeIn 0.25s forwards;
  }
  @keyframes fadeIn {
    to {
      opacity: 1;
    }
  }
  #mobile_menu li a {
    border: none;
    font-size: 1.35rem;
    font-weight: normal;
    padding-bottom: 0.75rem;
    text-align: center;
  }
}
@media (max-width: 600px) {
  .logged-in #main-header.et-fixed-header {
    top: 0 !important;
  }
}

/** Fix Spacing Under Images */
@media (max-width: 980px) {
  .et_pb_main_blurb_image,
  .et_pb_post .entry-featured-image-url {
    margin-bottom: 0.75rem;
  }
}

/** Remove Sidebar on all pages */
/*** Remove the divider line between content and sidebar ***/
#main-content .container:before {
  background: none;
}

/*** Hide Sidebar ***/
#sidebar {
  display: none;
}

/*** Expand the content area to fullwidth ***/
@media (min-width: 981px) {
  #left-area {
    float: none !important;
    padding: 23px 0px 0px !important;
    width: 100%;
  }
}

/** Center content **/
.archive.category #content-area {
  align-items: center;
  display: flex;
  justify-content: center;
  width: 100%;
}
.archive.category #left-area {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}
.archive.category .et_pb_post {
  margin-right: 2rem;
  width: calc(50% - 2rem);
}
.archive.category .pagination {
  margin-bottom: 4rem;
  width: 100%;
}

/** Work Page Enhancements **/
.page-id-743 .et_pb_ajax_pagination_container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.page-id-743 #page-container .et_pb_portfolio_item {
  margin-right: 3% !important;
  width: 48.5% !important;
}

.page-id-743 #page-container .et_pb_portfolio_item:nth-child(2n) {
  margin-right: 0 !important;
}
@media only screen and (max-width: 480px) {
  .page-id-743 #page-container .et_pb_portfolio_item {
    margin-right: 0% !important;
    width: 100% !important;
  }
}

/* About Page Enhancements */
/* About Page Team */
.page-id-60 .et_pb_main_blurb_image, .single-team .et_pb_main_blurb_image{
  margin-bottom: 0.75rem !important;
}
.page-id-60 .et_pb_module_header, .single-team .et_pb_module_header{
  padding-bottom: 0.25rem !important;
}
.page-id-60 #team .et_pb_module, .single-team #team .et_pb_module {
  margin-bottom: 2rem !important;
}
@media (max-width: 980px) {
  .page-id-60 #team .et_pb_row, .single-team #team .et_pb_row {
    padding: 0 !important;
  }
}

/* Better list styling */
.entry-content ul ul {
  list-style-type: circle;
  margin-left: 1rem;
  padding-bottom: 0 !important;
}
