<?php
	// menu
	$edumodo_main_menu__color = get_theme_mod('edumodo_main_menu_color', '');
	$edumodo_main_menu__color_hover = get_theme_mod('edumodo_main_menu_hover_color', '#ecb101');
	$edumodo_main_menu__color_bg = get_theme_mod('edumodo_main_menu_bg_color', '');
	$edumodo_main_menu__color_bg_hover = get_theme_mod('edumodo_main_menu_bg_hover_color', '');
	$edumodo_main_menu__item_padding = get_theme_mod('edumodo_main_menu_items_padding', '8');
	// submenu
	$edumodo_sub_menu__color = get_theme_mod('edumodo_header_submenu_color', '');
	$edumodo_sub_menu__color_hover = get_theme_mod('edumodo_header_submenu_hover_color', '#ecb101');
	$edumodo_sub_menu__color_bg = get_theme_mod('edumodo_header_submenu_bg_color', '');
	$edumodo_sub_menu__color_bg_hover = get_theme_mod('edumodo_header_submenu_bg_hover_color', '');
?>
<style class="edumodo-menu-style">
	
	
	/* Header submenu width */
	.edumodo-header .edumodo-navbar .navigation-main li ul {width: <?php echo esc_attr(get_theme_mod('edumodo_header_submenu_width','180')); ?>px;}
		
	/* color */
    <?php if( $edumodo_main_menu__color ): ?>
		.edumodo-header .navigation-main .menu-item a.parent-link {color: <?php echo $edumodo_main_menu__color; ?>;}
	<?php endif; ?>
	/* hover & active */
	<?php if( $edumodo_main_menu__color_hover ): ?>
		.edumodo-header .navigation-main .menu-item:hover a.parent-link, .edumodo-header .navigation-main .menu-item.active a.parent-link, .edumodo-header .navigation-main .current-menu-item > a {color: <?php echo $edumodo_main_menu__color_hover; ?>;}
	<?php endif; ?>
	/* background */
	<?php if( $edumodo_main_menu__color_bg ): ?>
		.edumodo-header .navigation-main .menu-item a.parent-link {background-color: <?php echo $edumodo_main_menu__color_bg; ?>;}
	<?php endif; ?>
	/* hover & active */
	<?php if( $edumodo_main_menu__color_bg_hover ): ?>
		.edumodo-header .navigation-main .menu-item:hover a.parent-link, .edumodo-header .navigation-main .menu-item.active a.parent-link {background-color: <?php echo $edumodo_main_menu__color_bg_hover; ?>;}
	<?php endif; ?>
	/* Header menu items padding */
	.edumodo-header .navigation-main .menu-item a.parent-link {padding: 0 <?php echo $edumodo_main_menu__item_padding; ?>px !important;}


	/* sub menu color */
	<?php if( $edumodo_sub_menu__color ): ?>
		.edumodo-header .navigation-main .menu-item .edumodo-sub-menu .menu-item a.child, .edumodo-header .navigation-main .menu-item .edumodo-sub-menu .menu-item a.child-end {color: <?php echo $edumodo_sub_menu__color; ?>;}
	<?php endif; ?>
	/* sub menu hover + active */
	<?php if( $edumodo_sub_menu__color_hover ): ?>
		.edumodo-header .navigation-main .menu-item .edumodo-sub-menu .menu-item:hover a.child, .edumodo-header .navigation-main .menu-item .edumodo-sub-menu .menu-item:hover > a.child-end, .edumodo-header .navigation-main .current-menu-item > a  {color: <?php echo $edumodo_sub_menu__color_hover; ?>;}
	<?php endif; ?>
	/* sub menu background */
	<?php if( $edumodo_sub_menu__color_bg ): ?>
		.edumodo-header .navigation-main .menu-item .edumodo-sub-menu .menu-item {background-color: <?php echo $edumodo_sub_menu__color_bg; ?>;}
	<?php endif; ?>
	/* sub menu background hover + active */
	<?php if( $edumodo_sub_menu__color_bg_hover ): ?>
		.edumodo-header .navigation-main .menu-item .edumodo-sub-menu .menu-item:hover {background-color: <?php echo $edumodo_sub_menu__color_bg_hover; ?>;}
	<?php endif; ?>

	<?php if( get_theme_mod('edumodo_header_submenu_hover_color') ): ?>
		.edumodo-header .edumodo-navbar .navigation-main li ul li a:hover,.edumodo-left-header .menu-navbar .navigation-main li ul li a:hover {color: <?php echo esc_attr(get_theme_mod('edumodo_header_submenu_hover_color')); ?>;}
	<?php endif; ?>

	<?php if( get_theme_mod('edumodo_header_submenu_current_item_color') ): ?>
		.edumodo-header .edumodo-navbar .navigation-main ul li.active>a,.edumodo-left-header .menu-navbar .navigation-main ul li.active>a {color: <?php echo esc_attr(get_theme_mod('edumodo_header_submenu_current_item_color')); ?>;}
	<?php endif; ?>

	<?php if( get_theme_mod('edumodo_header_submenu_bg_color') ): ?>
		.edumodo-header .edumodo-navbar .navigation-main li ul li a,.edumodo-left-header .menu-navbar .navigation-main li ul li a {background-color: <?php echo esc_attr(get_theme_mod('edumodo_header_submenu_bg_color')); ?>;}
	<?php endif; ?>

	<?php if( get_theme_mod('edumodo_header_submenu_bg_hover_color') ): ?>
		.edumodo-header .edumodo-navbar .navigation-main li ul li a:hover,.edumodo-left-header .menu-navbar .navigation-main li ul li a:hover {background-color: <?php echo esc_attr(get_theme_mod('edumodo_header_submenu_bg_hover_color')); ?>;}
	<?php endif; ?>

	<?php if( get_theme_mod('edumodo_header_submenu_current_item_bg_color') ): ?>
		.edumodo-header .edumodo-navbar .navigation-main ul li.active a,.edumodo-left-header .menu-navbar .navigation-main ul li.active a {background-color: <?php echo esc_attr(get_theme_mod('edumodo_header_submenu_current_item_bg_color')); ?>;}
	<?php endif; ?>

	<?php if( get_theme_mod('edumodo_header_submenu_border_color') ): ?>
		.edumodo-header .edumodo-navbar .navigation-main li ul li {border-color: <?php echo esc_attr(get_theme_mod('edumodo_header_submenu_border_color')); ?>;}
	<?php endif; ?>

	<?php if( get_theme_mod('edumodo_header_submenu_border_bottom_color') ): ?>
		.edumodo-header .edumodo-navbar .navigation-main li ul {border-color: <?php echo esc_attr(get_theme_mod('edumodo_header_submenu_border_bottom_color')); ?>;}
	<?php endif; ?>

	<?php if( get_theme_mod('edumodo_header_button_color') ): ?>
		.edumodo-header .header-btn,.edumodo-left-header .header-btn {color: <?php echo esc_attr(get_theme_mod('edumodo_header_button_color')); ?>;}
	<?php endif; ?>

	<?php if( get_theme_mod('edumodo_header_button_hover_color') ): ?>
		.edumodo-header .header-btn:hover,.edumodo-left-header .header-btn:hover {color: <?php echo esc_attr(get_theme_mod('edumodo_header_button_hover_color')); ?>;}
	<?php endif; ?>

	<?php if( get_theme_mod('edumodo_header_button_bg_color') ): ?>
		.edumodo-header .header-btn, .edumodo-left-header .header-btn {background-color: <?php echo esc_attr(get_theme_mod('edumodo_header_button_bg_color')); ?>;}
	<?php endif; ?>

	<?php if( get_theme_mod('edumodo_header_button_hover_bg_color') ): ?>
		.edumodo-header .header-btn:hover,.edumodo-left-header .header-btn:hover {background-color: <?php echo esc_attr(get_theme_mod('edumodo_header_button_hover_bg_color')); ?>;}
	<?php endif; ?>

	<?php if( get_theme_mod('edumodo_header_button_border_color') ): ?>
		.edumodo-header .header-btn, .edumodo-left-header .header-btn {border-color: <?php echo esc_attr(get_theme_mod('edumodo_header_button_border_color')); ?>;}
	<?php endif; ?>

	<?php if( get_theme_mod('edumodo_header_button_hover_border_color') ): ?>
		.edumodo-header .header-btn:hover, .edumodo-left-header .header-btn {border-color: <?php echo esc_attr(get_theme_mod('edumodo_header_button_hover_border_color')); ?>;}
	<?php endif; ?>

	<?php if( get_theme_mod('edumodo_header_right_social_color') ): ?>
		.edumodo-header .topmenu-right a,.edumodo-left-header .left-header-social-icons a{color: <?php echo esc_attr(get_theme_mod('edumodo_header_right_social_color')); ?>;}
	<?php endif; ?>

	<?php if( get_theme_mod('edumodo_header_right_social_hover_color') ): ?>
		.edumodo-header .topmenu-right a:hover,.edumodo-left-header .left-header-social-icons a:hover {color: <?php echo esc_attr(get_theme_mod('edumodo_header_right_social_hover_color')); ?>;}
	<?php endif; ?>
</style>
<?php

?>