/**
 * Sandbox Mega Menu - Frontend Styles
 *
 * Minimal, non-intrusive styles that work with Divi theme.
 * Does NOT affect existing menu item CSS.
 */


/**
 * CSS FROM CODE SNIPPET PLUGIN
 **/
/* Desktop header */
body:not(.elementor-editor-active) .elementor_header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background: transparent;
  transition: background 0.3s ease;
}
/* Scroll sticky */
.elementor_header.sticky-active {
  background: #000 !important;
}
/* Mobile header always black */
body:not(.elementor-editor-active) .mobile_headers {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background: #000 !important;
}
/* Shadow */
body .mobile_headers {
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
/* Mobile dropdown arrow color */
svg.elementskit-submenu-indicator.ekit-svg-icon.icon-down-arrow1 {
  fill: white;
  border: none;
  padding: 0px 12px;
}
/* Admin bar offset */
body.admin-bar .elementor_header {
  margin-top: 20px;
}
/* Social icons */
.jake-social-icons {
  display: flex;
  gap: 14px;
  justify-content: flex-start;
  align-items: center;
  padding: 12px 8px;
  background: none;
  border-radius: 8px;
  margin: 10px 16px;
}
.jake-social-icons a {
  color: #ffffff;
  font-size: 22px;
  transition: color 0.3s, transform 0.2s;
  text-decoration: none;
  display: flex;
  align-items: center;
}
.jake-social-icons a:hover { transform: scale(1.2); }
.jake-social-icons a.fb:hover { color: #1877f2; }
.jake-social-icons a.ig:hover { color: #e1306c; }
.jake-social-icons a.yt:hover { color: #ff0000; }
.jake-social-icons a.tk:hover { color: #69c9d0; }
/* END */

/* === Down Arrow === */
.sandbox-mega-menu-arrow {
	display: inline-flex;
	align-items: center;
	margin-left: 5px;
	vertical-align: middle;
	line-height: 1;
	transition: transform 0.25s ease;
}

.sandbox-mega-menu-arrow svg {
	display: block;
	width: 10px;
	height: 6px;
}

/* Rotate arrow on hover */
.sandbox-mega-menu-item:hover > a .sandbox-mega-menu-arrow,
.sandbox-mega-menu-item.smm-active > a .sandbox-mega-menu-arrow {
	transform: rotate(180deg);
}

/* === Mega Menu Dropdown Container === */
.sandbox-mega-menu-dropdown {
	position: absolute;
	top: 100%;
	left: 50%;
	width: max-content;
	z-index: 99999;
	visibility: hidden;
	opacity: 0;
	transform: translate(-50%, 5px);
	transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
	pointer-events: none;
	width: max-content;
}

/* Show on hover */
.sandbox-mega-menu-item:hover > .sandbox-mega-menu-dropdown,
.sandbox-mega-menu-item.smm-active > .sandbox-mega-menu-dropdown {
	visibility: visible;
	opacity: 1;
	transform: translate(-50%, 0);
	pointer-events: auto;
	left: 0 !important;
    margin: auto !important;
}

/* Inner container */
.sandbox-mega-menu-dropdown-inner {
	width: max-content;
	margin: 0 auto;
}

/* === Divi-Specific Overrides === */

/* Prevent clipping of mega menu dropdown */
#et-top-navigation,
#top-menu-nav,
.nav,
header#main-header,
.et_menu_container {
	overflow: visible !important;
}

/* The menu item needs relative positioning for the dropdown */
#top-menu > .sandbox-mega-menu-item {
	position: relative !important;
}

/* Prevent Divi sub-menu arrows from conflicting */
#top-menu > .sandbox-mega-menu-item > a::after {
	display: none !important;
}

/* Ensure Elementor content inside mega menu renders correctly */
.sandbox-mega-menu-dropdown .elementor-section-wrap,
.sandbox-mega-menu-dropdown .elementor {
	width: 100% !important;
}

/* Fix for Divi's fixed header */
.et-fixed-header .sandbox-mega-menu-dropdown {
	top: 100%;
}

/* Hide the mega menu on mobile - use regular Divi mobile menu instead */
@media (max-width: 980px) {
	.sandbox-mega-menu-dropdown {
		display: none !important;
	}

	
}

@media (max-width: 768px) {
	.sandbox-mega-menu-arrow{
		display: block !important;
	}
}


/* === SMM Mobile Menu Widget (Divi Style) === */
.smm-mobile-menu-widget {
	position: relative;
	width: 100%;
}

.smm-mobile-nav {
	position: relative;
}

/* Hamburger Icon (Divi Style) */
.smm-mobile-menu-bar {
	cursor: pointer;
	display: block;
	position: relative;
	text-align: right;
	padding: 10px 0;
}

.smm-mobile-menu-bar:before {
	content: "\61"; /* ETModules hamburger icon */
	font-family: 'ETmodules' !important;
	speak: none;
	font-style: normal;
	font-weight: normal;
	font-variant: normal;
	text-transform: none;
	line-height: 1;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-size: 32px;
	color: #2ea3f2;
}

.smm-mobile-nav.smm-opened .smm-mobile-menu-bar:before {
	content: "\4d"; /* Close icon for Divi */
}

/* Menu Container */
.smm-mobile-nav-container {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
	background: #fff;
	z-index: 9999;
	border-top: 3px solid #2ea3f2;
	box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.smm-opened .smm-mobile-nav-container {
	display: block;
}

/* Menu List */
.smm-et-mobile-menu {
	list-style: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

.smm-et-mobile-menu li {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border-bottom: 1px solid #f0f0f0;
}

.smm-item-wrapper {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.smm-et-mobile-menu li a {
	display: block;
	padding: 10px 20px;
	color: #666;
	text-decoration: none;
	font-size: 14px;
	flex-grow: 1;
}

/* Template Toggle Arrow */
.smm-template-toggle {
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	border-left: 1px solid #f0f0f0;
}

.smm-template-toggle:after {
	content: "\33"; /* ETModules Down Arrow */
	font-family: 'ETmodules' !important;
	font-size: 16px;
	color: #2ea3f2;
	transition: transform 0.3s ease;
}

.smm-template-opened > .smm-item-wrapper .smm-template-toggle:after {
	transform: rotate(180deg);
}

/* Template Container inside Mobile Menu */
.smm-mobile-template-container {
	background: #f9f9f9;
	padding: 15px;
	border-top: 1px solid #eee;
}

/* Sub-menus */
.smm-et-mobile-menu .sub-menu {
	padding-left: 20px !important;
	background: #fafafa;
}

/* Hide desktop mega menus when in widget to prevent conflicts */
.smm-mobile-menu-widget .sandbox-mega-menu-dropdown {
	display: none !important;
}