/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */


.primary {
	color:#976B28;
}

/* ======== BASE ICON STYLING ======== */
.home_icon > a::before,
.pricing_icon > a::before,
.plans_icon > a::before,
.traders_icon > a::before,
.academy_icon > a::before,
.why_us > a::before {
  content: "";
  display: inline-block;
  width: 30px;
  height: 30px;
  background-size: 50px 50px;
  background-repeat: no-repeat;
  background-position: center center;
	background-size: cover;
  margin-right: 10px;
  vertical-align: middle;
  position: relative;
  top: -3px;
  opacity: 1 !important;
  visibility: visible !important;
}

/* ======== ICON IMAGES ======== */
.home_icon > a::before {
  background-image: url('https://elitetradersfoundry.com/wp-content/uploads/home-2.png');
}

.pricing_icon > a::before {
  background-image: url('https://elitetradersfoundry.com/wp-content/uploads/price-tag.png');
}

.plans_icon > a::before {
  background-image: url('https://elitetradersfoundry.com/wp-content/uploads/plan.png');
}

.traders_icon > a::before {
  background-image: url('https://elitetradersfoundry.com/wp-content/uploads/operations.png');
}

.academy_icon > a::before {
  background-image: url('https://elitetradersfoundry.com/wp-content/uploads/mortarboard-1.png');
}

.why_us > a::before {
  background-image: url('https://elitetradersfoundry.com/wp-content/uploads/elite.png');
}

/* ======== FIX FOR MOBILE DROPDOWN ======== */
.elementor-nav-menu--dropdown .menu-item > a::before {
  display: inline-block !important;
  position: relative !important;
  left: 0 !important;
  top: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* (Optional) Smaller on mobile */
@media (max-width: 768px) {
  .elementor-nav-menu--dropdown .menu-item > a::before {
    width: 30px;
    height: 30px;
    background-size: 30px 30px;
    margin-right: 8px;
  }
}






/* === Sliding hover background for Elementor Menu === */

/* 1. Basic menu setup */
.elementor-nav-menu--main {
  position: relative;
}

.elementor-nav-menu--main .elementor-item {
  position: relative;
  z-index: 2;
  padding: 10px 25px;
  border-radius: 50px;
  transition: color 0.3s ease;
}

/* 2. Create the sliding hover pill */
.elementor-nav-menu--main::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  height: 40px; /* match your pill height */
  width: 0;
  background: #976B28; /* your hover colour */
  border-radius: 50px;
  transition: all 0.35s ease;
  z-index: 1;
}

/* 3. Detect hover position dynamically */
.elementor-nav-menu--main:hover::before {
  width: var(--hover-width, 0);
  left: var(--hover-left, 0);
}

/* 4. Update width and left position on hover */
.elementor-nav-menu--main .elementor-item:hover ~ .elementor-nav-menu--main::before {
  --hover-width: attr(data-width px);
  --hover-left: attr(data-left px);
}

.menu-toggle:hover {
	cursor: pointer;
}



/* Smooth animation for both containers */
.slide-menu,
.main-content {
  transition: all 0.4s ease;
}

/* When menu is visible (default) */
.slide-menu {
  transform: translateX(0);
  width: 260px; /* your menu width */
}

/* When menu is closed */
.slide-menu.closed {
  transform: translateX(-100%);
  width: 0; /* collapse width */
  opacity: 0;
}

/* When menu closes, main content expands */
.main-content.expanded {
  width: 100%;
}








/* Sidebar Menu Links */
.sidebar-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px 10px 16px; /* reduced left padding */
  color: #ffffff;
  text-decoration: none;
  border-radius: 10px;
  position: relative;
  transition: all 0.3s ease;
  font-weight: 500;
  overflow: hidden;
}

/* Gold Accent Bar (Flush Left) */
.sidebar-menu a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(to bottom, #d4a243, #b6822b);
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
  opacity: 0;
  transform: scaleY(0);
  transform-origin: center;
  transition: all 0.3s ease;
}

/* Gradient Background Overlay */
.sidebar-menu a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 10px;
  z-index: 0;
}

/* Hover + Active States */
.sidebar-menu a:hover,
.sidebar-menu a.active {
  color: #e0a84b;
}

.sidebar-menu a:hover::before,
.sidebar-menu a.active::before {
  opacity: 1;
  transform: scaleY(1);
}

.sidebar-menu a:hover::after,
.sidebar-menu a.active::after {
  opacity: 1;
}

/* Make icon/text appear above background */
.sidebar-menu a * {
  position: relative;
  z-index: 1;
}

/* Optional: icon size */
.sidebar-menu i {
  font-size: 1.2em;
  opacity: 0.9;
}




a.arm_com_post_read_more_nav {
    display: none;
}




/* Ensure the parent container holds position */
.elementor-container {
  position: relative;
}

/* Hide dropdown initially */
.dropdown-menu {
  display: none;
  transition: all 0.3s ease;
}

/* Show dropdown when hovering over the trigger or the dropdown itself */
.menu-trigger:hover + .dropdown-menu,
.dropdown-menu:hover {
  display: block;
}

.dropdown-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.menu-trigger:hover + .dropdown-menu,
.dropdown-menu:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}





