<?php

// Prevent Direct Access
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

$theme_color = maxo_get_option('theme_color', '#42d9e4');

$no_hash = substr($theme_color, 1);
$split = str_split($no_hash, 2);
$r = hexdec($split[0]);
$g = hexdec($split[1]);
$b = hexdec($split[2]);
?>
<style>
	.testimonial_name,
	.pager li > span.current,
	.widget_search .input-group-addon,
	.category li a:hover,
	.category li a:focus,
	.widget .media-body > a:hover,
	.pager li > a:hover,
	.pager li > a:focus,
	.pager li.active > a,
	ul.social_simple li a:hover,
	ul.social_simple li a:focus,
	ul.social_vertical li a:hover,
	ul.social_vertical li a:focus,
	.topbar .topbar_inner span > a:hover,
	.topbar .topbar_inner span > a:focus,
	.breadcrumb li a:hover,
	.parallax.parallax-bg p,
	.icon_wrap .icon_box i,
	.ourblog h3 a:hover,
	.readmore,
	.blog_item h3 a:hover,
	.pricebox .price_title .ratings i {
		color: <?php echo $theme_color ?>;
	}

	.button.color,
	.button.dark:before,
	.callus #submit:hover,
	.pager li > span.current:before,
	.bgdark,
	.tagcloud a,
	.pager li > a:before,
	nav.navbar.bootsnav ul.nav > li > a:before,
	.cbp-l-filters .cbp-filter-item span:after,
	.overlay-menu ul.full-nav li a:before,
	.tp-bullet:hover,
	.tp-bullet.selected,
	.swiper-pagination-bullet:hover,
	.swiper-pagination-bullet-active,
	a.ivydatedate:hover,
	a.ivydatedate:focus,
	.icon_wrap .icon_box:hover,
	.team_caption .overlay,
	.pricing_item.active {
		background: <?php echo $theme_color ?>;
	}

	@media screen and (max-width: 991px) {
		.menu-icon span,
		.menu-icon span:before,
		.menu-icon span:after,
		header.default nav.navbar.bootsnav.navbar-fixed.fixedmenu .menu-icon span,
		header.default nav.navbar.bootsnav.navbar-fixed.fixedmenu .menu-icon span:before,
		header.default nav.navbar.bootsnav.navbar-fixed.fixedmenu .menu-icon span:after,
		header.default nav.navbar.bootsnav.navbar-fixed .menu-icon span,
		header.default nav.navbar.bootsnav.navbar-fixed .menu-icon span:before,
		header.default nav.navbar.bootsnav.navbar-fixed .menu-icon span:after {
			background: <?php echo $theme_color ?>;
		}
	}

	.dot1 {
		background-color: <?php echo $theme_color ?>;
	}

	.overlay,
	.overlay .likeus {
		background: rgba(<?php echo $r ?>, <?php echo $g ?>, <?php echo $b ?>, 0.8);
	}

	.button.dark:hover,
	.button.dark:focus {
		border: 2px solid <?php echo $theme_color ?>;
	}

</style>
