/*!
Theme Name: HealthFlex Child
Theme URI: http://plethorathemes.com/healthflex/
Description: Child theme for HealthFlex - Add your custom styles here
Author: Your Name
Author URI: https://yourwebsite.com
Template: healthflex
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: healthflex-child
*/

/*
=================================================================
CHILD THEME CUSTOM STYLES
=================================================================

Add your custom CSS below this line.
This file will not be overwritten when the parent theme is updated.

TIP: To override parent theme styles, you may need to use !important
due to the parent theme's extensive use of !important declarations.

=================================================================
*/

/* Your custom styles here */

/*
=================================================================
CUSTOM MEGA MENU STYLES (Page 4771)
=================================================================
*/

/* Desktop Styles */
.custom-mega-menu-container {
  /* position: relative;
  width: 100%; */
  position: absolute;
  top: 50%;
  transform: translate(0px, -50%);
  right: 45px;
  width: calc(100% - 300px);
}

.custom-mega-menu-wrapper {
  width: 100%;
}

.custom-mega-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: flex-end;
}

.custom-mega-menu > li {
  position: relative;
  margin: 0;
  padding: 0;
}

.custom-mega-menu > li > a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  text-decoration: none;
  color: #333;
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.custom-mega-menu > li > a:hover,
.custom-mega-menu > li.active > a {
  color: #08c;
}

.custom-mega-menu .menu-arrow {
  font-size: 10px;
  transition: transform 0.3s ease;
}

.custom-mega-menu > li.active .menu-arrow {
  transform: rotate(180deg);
}

/* Mega Menu Dropdown */
.mega-menu-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  background: #fff;
  border: 2px solid #d4a574;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  margin-top: 0px;
  padding: 30px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.custom-mega-menu > li.menu-item-has-children {
  position: static;
}

.custom-mega-menu > li.menu-item-has-children:hover .mega-menu-dropdown {
  opacity: 1;
}

.mega-menu-content {
  width: 100%;
}

.mega-menu-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.mega-menu-column {
  display: flex;
  flex-direction: column;
}

.mega-menu-column .column-title {
  display: block;
  text-decoration: none;
  color: #054c8c;
  font-weight: 600;
  font-size: 16px;
  transition: color 0.3s ease;
}

.mega-menu-column .column-title:hover {
  color: #08c;
}

/* Level 3 items */
.mega-menu-column .sub-menu {
  list-style: none;
  margin: 10px 0 0 0;
  padding: 0;
}

.mega-menu-column .sub-menu li {
  margin: 0;
  padding: 0;
}

.mega-menu-column .sub-menu li a {
  display: block;
  padding: 8px 0 8px 0px;
  text-decoration: none;
  color: #054c8c;
  font-size: 16px;
  font-weight: 400;
  transition: all 0.3s ease;
  position: relative;
}

.mega-menu-column .sub-menu li a:hover {
  color: #08c;
}

/* Mobile menu toggle (burger menu) */
.custom-mobile-menu-toggle {
  display: none;
  padding: 12px 20px;
  background: #08c;
  color: #fff;
  cursor: pointer;
  text-align: center;
  font-weight: 600;
  font-size: 16px;
  border-radius: 4px;
  margin: 10px 0;
  transition: background 0.3s ease;
}

.custom-mobile-menu-toggle:hover {
  background: #0077b3;
}

.custom-mobile-menu-toggle.active {
  background: #0077b3;
}

.custom-mobile-menu-toggle span::before {
  content: "☰ ";
  margin-right: 5px;
}

/*
=================================================================
MOBILE RESPONSIVE STYLES
=================================================================
*/

@media (max-width: 991px) {
  /* Hide mega menu by default on mobile */
  .custom-mega-menu-wrapper {
    display: none;
    width: 100%;
  }

  .custom-mega-menu-wrapper.active {
    display: block;
  }

  /* Show mobile toggle */
  .custom-mobile-menu-toggle {
    display: block;
  }

  /* Vertical layout for mobile */
  .custom-mega-menu {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    padding: 0;
  }

  .custom-mega-menu > li {
    width: 100%;
    border-bottom: 1px solid #eee;
  }

  .custom-mega-menu > li > a {
    padding: 15px 20px;
    width: 100%;
  }

  /* No dropdowns on mobile - show all items */
  .mega-menu-dropdown {
    display: block !important;
    position: static;
    width: 100%;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin: 0;
    background: #f9f9f9;
    transform: none;
    left: auto;
    opacity: 1 !important;
    max-width: none;
  }

  .custom-mega-menu > li.menu-item-has-children {
    position: relative;
  }

  /* Disable hover effects on mobile */
  .custom-mega-menu > li.menu-item-has-children:hover .mega-menu-dropdown {
    opacity: 1 !important;
  }

  .mega-menu-content {
    padding: 0;
  }

  .mega-menu-columns {
    display: block;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .mega-menu-column {
    width: 100%;
    border-bottom: 1px solid #ddd;
    padding: 0;
    margin: 0;
  }

  .mega-menu-column .column-header {
    border: none;
    padding: 0;
    margin: 0;
  }

  .mega-menu-column .column-title {
    padding: 12px 20px 12px 40px;
    background: #f9f9f9;
    font-size: 16px;
    display: block;
  }

  /* Level 3 items with more indentation */
  .mega-menu-column .sub-menu {
    background: #f0f0f0;
    margin: 0;
  }

  .mega-menu-column .sub-menu li {
    border-bottom: 1px solid #e5e5e5;
  }

  .mega-menu-column .sub-menu li a {
    padding: 10px 20px 10px 60px;
    font-size: 15px;
  }

  .mega-menu-column .sub-menu li a:before {
    left: 40px;
  }

  .mega-menu-column .sub-menu li a:hover {
    padding-left: 65px;
    background: #e8e8e8;
  }

  /* Hide arrow on mobile */
  .custom-mega-menu .menu-arrow {
    display: none;
  }
}
body.healthflex-child-theme .btn {
  font-size: 16px !important;
  line-height: 1.7 !important;
}
body.healthflex-child-theme .teaser_box .content .hgroup p {
  font-size: 16px;
  line-height: 1.7;
}
body.healthflex-child-theme .widget_nav_menu ul li a,
body.healthflex-child-theme .widget_pages ul li a,
body.healthflex-child-theme .widget_archive ul li a,
body.healthflex-child-theme .widget_categories ul li a,
body.healthflex-child-theme .widget_meta ul li a,
body.healthflex-child-theme .widget_product_categories ul li a,
.widget_recent_comments ul li a,
body.healthflex-child-theme .widget_recent_entries ul li a,
body.healthflex-child-theme .widget_rss ul li a {
  font-size: 16px;
  line-height: 1.7;
}
body.healthflex-child-theme .copyright {
  font-size: 16px;
  line-height: 1.7;
}
body.healthflex-child-theme .testimonial li {
  font-size: 16px;
  line-height: 1.7;
}
body.healthflex-child-theme div.brlbs-cmpnt-container p {
  font-size: 16px;
  line-height: 1.7;
}
body.healthflex-child-theme .vc_btn3.vc_btn3-color-primary.vc_btn3-style-3d {
  color: #ffffff;
  background-color: #08c;
}
body.healthflex-child-theme
  .brlbs-cmpnt-container.brlbs-cmpnt-content-blocker
  a.brlbs-cmpnt-cb-btn {
  font-size: 16px;
}
body.healthflex-child-theme .vc_btn3.vc_btn3-size-md {
  font-size: 16px;
}
