<?php 


$business_consulting_lite_custom_style= "";

//------------------------text-transform----------------------------

$business_consulting_lite_text_transform = get_theme_mod( 'business_consulting_lite_menu_text_transform','CAPITALISE');
if($business_consulting_lite_text_transform == 'CAPITALISE'){

$business_consulting_lite_custom_style .='nav#top_gb_menu ul li a{';

	$business_consulting_lite_custom_style .='text-transform: capitalize ;';

$business_consulting_lite_custom_style .='}';

}else if($business_consulting_lite_text_transform == 'UPPERCASE'){

$business_consulting_lite_custom_style .='nav#top_gb_menu ul li a{';

	$business_consulting_lite_custom_style .='text-transform: uppercase ;';

$business_consulting_lite_custom_style .='}';

}else if($business_consulting_lite_text_transform == 'LOWERCASE'){

$business_consulting_lite_custom_style .='nav#top_gb_menu ul li a{';

	$business_consulting_lite_custom_style .='text-transform: lowercase ;  ';

$business_consulting_lite_custom_style .='}';
}
/*---------------------------Scroll-top-position -------------------*/

$business_consulting_lite_scroll_options = get_theme_mod( 'business_consulting_lite_scroll_options','right_align');

if($business_consulting_lite_scroll_options == 'right_align'){

$business_consulting_lite_custom_style .='.scroll-top button{';

	$business_consulting_lite_custom_style .='';

$business_consulting_lite_custom_style .='}';

}else if($business_consulting_lite_scroll_options == 'center_align'){

$business_consulting_lite_custom_style .='.scroll-top button{';

	$business_consulting_lite_custom_style .='right: 0; left:0; margin: 0 auto; top:85% !important';

$business_consulting_lite_custom_style .='}';

}else if($business_consulting_lite_scroll_options == 'left_align'){

$business_consulting_lite_custom_style .='.scroll-top button{';

	$business_consulting_lite_custom_style .='right: auto; left:5%; margin: 0 auto';

$business_consulting_lite_custom_style .='}';
}

/*---------------------------Logo -------------------*/

$business_consulting_lite_logo_max_height = get_theme_mod('business_consulting_lite_logo_max_height','100');

if($business_consulting_lite_logo_max_height != false){

$business_consulting_lite_custom_style .='.custom-logo-link img{';

	$business_consulting_lite_custom_style .='max-height: '.esc_html($business_consulting_lite_logo_max_height).'px;';
	
$business_consulting_lite_custom_style .='}';
}

/*-------------------------Slider-content-alignment-------------------*/

$business_consulting_lite_slider_content_alignment = get_theme_mod( 'business_consulting_lite_slider_content_alignment','CENTER-ALIGN');

if($business_consulting_lite_slider_content_alignment == 'LEFT-ALIGN'){

$business_consulting_lite_custom_style .='#slider .carousel-caption{';

	$business_consulting_lite_custom_style .='text-align:left; right: 30%; left: 10%;';

$business_consulting_lite_custom_style .='}';

$business_consulting_lite_custom_style .='@media screen and (max-width:1199px){';

$business_consulting_lite_custom_style .='#slider .carousel-caption{';

    $business_consulting_lite_custom_style .='right: 20%; left: 15%';
    
$business_consulting_lite_custom_style .='} }';

$business_consulting_lite_custom_style .='@media screen and (max-width:991px){';

$business_consulting_lite_custom_style .='#slider .carousel-caption{';

    $business_consulting_lite_custom_style .='right: 15%; left: 15%';
    
$business_consulting_lite_custom_style .='} }';


}else if($business_consulting_lite_slider_content_alignment == 'CENTER-ALIGN'){

$business_consulting_lite_custom_style .='#slider .carousel-caption{';

	$business_consulting_lite_custom_style .='text-align:center; right: 20%; left: 20%;';

$business_consulting_lite_custom_style .='}';

$business_consulting_lite_custom_style .='@media screen and (max-width:991px){';

$business_consulting_lite_custom_style .='#slider .carousel-caption{';

    $business_consulting_lite_custom_style .='right: 15%; left: 15%';
    
$business_consulting_lite_custom_style .='} }';


}else if($business_consulting_lite_slider_content_alignment == 'RIGHT-ALIGN'){

$business_consulting_lite_custom_style .='#slider .carousel-caption{';

	$business_consulting_lite_custom_style .='text-align:right; right: 10%; left: 30%;';

$business_consulting_lite_custom_style .='}';

$business_consulting_lite_custom_style .='@media screen and (max-width:1199px){';

$business_consulting_lite_custom_style .='#slider .carousel-caption{';

    $business_consulting_lite_custom_style .='right: 15%; left: 20%';
    
$business_consulting_lite_custom_style .='} }';

$business_consulting_lite_custom_style .='@media screen and (max-width:991px){';

$business_consulting_lite_custom_style .='#slider .carousel-caption{';

    $business_consulting_lite_custom_style .='right: 15%; left: 15%';
    
$business_consulting_lite_custom_style .='} }';

}
//---------sticky header---------

if (false === get_option('business_consulting_lite_sticky_header')) {
    add_option('business_consulting_lite_sticky_header', 'off');
}

// Define the custom CSS based on the 'business_consulting_lite_sticky_header' option

if (get_option('business_consulting_lite_sticky_header', 'off') !== 'on') {
    $business_consulting_lite_custom_style .= '.fixed_header.fixed {';
    $business_consulting_lite_custom_style .= 'position: static;';
    $business_consulting_lite_custom_style .= '}';
}

if (get_option('business_consulting_lite_sticky_header', 'off') !== 'off') {
    $business_consulting_lite_custom_style .= '.fixed_header.fixed {';
    $business_consulting_lite_custom_style .= 'position: fixed; background:var(--theme-second-color);';
    $business_consulting_lite_custom_style .= '}';

    $business_consulting_lite_custom_style .= '.admin-bar .fixed {';
    $business_consulting_lite_custom_style .= ' margin-top: 32px;';
    $business_consulting_lite_custom_style .= '}';
}

/*---------------------------Width -------------------*/
	
$business_consulting_lite_theme_width = get_theme_mod( 'business_consulting_lite_width_options','full_width');

if($business_consulting_lite_theme_width == 'full_width'){

$business_consulting_lite_custom_style .='body{';

	$business_consulting_lite_custom_style .='max-width: 100%;';

$business_consulting_lite_custom_style .='}';

}else if($business_consulting_lite_theme_width == 'container'){

$business_consulting_lite_custom_style .='body{';

	$business_consulting_lite_custom_style .='width: 100%; padding-right: 15px; padding-left: 15px;  margin-right: auto !important; margin-left: auto !important;';

$business_consulting_lite_custom_style .='}';

$business_consulting_lite_custom_style .='@media screen and (min-width: 601px){';

$business_consulting_lite_custom_style .='body{';

    $business_consulting_lite_custom_style .='max-width: 720px;';
    
$business_consulting_lite_custom_style .='} }';

$business_consulting_lite_custom_style .='@media screen and (min-width: 992px){';

$business_consulting_lite_custom_style .='body{';

    $business_consulting_lite_custom_style .='max-width: 960px;';
    
$business_consulting_lite_custom_style .='} }';

$business_consulting_lite_custom_style .='@media screen and (min-width: 1200px){';

$business_consulting_lite_custom_style .='body{';

    $business_consulting_lite_custom_style .='max-width: 1140px;';
    
$business_consulting_lite_custom_style .='} }';

$business_consulting_lite_custom_style .='@media screen and (min-width: 1400px){';

$business_consulting_lite_custom_style .='body{';

    $business_consulting_lite_custom_style .='max-width: 1320px;';
    
$business_consulting_lite_custom_style .='} }';

$business_consulting_lite_custom_style .='@media screen and (max-width:600px){';

$business_consulting_lite_custom_style .='body{';

    $business_consulting_lite_custom_style .='max-width: 100%; padding-right:0px; padding-left: 0px';
    
$business_consulting_lite_custom_style .='} }';


}else if($business_consulting_lite_theme_width == 'container_fluid'){

$business_consulting_lite_custom_style .='body{';

	$business_consulting_lite_custom_style .='width: 100%;padding-right: 15px;padding-left: 15px;margin-right: auto;margin-left: auto;';

$business_consulting_lite_custom_style .='}';

$business_consulting_lite_custom_style .='@media screen and (max-width:600px){';

$business_consulting_lite_custom_style .='body{';

    $business_consulting_lite_custom_style .='max-width: 100%; padding-right:0px; padding-left: 0px';
    
$business_consulting_lite_custom_style .='} }';
}

//related products
if( get_option( 'business_consulting_lite_related_product',true) != 'on') {

$business_consulting_lite_custom_style .='.related.products{';

	$business_consulting_lite_custom_style .='display: none;';
	
$business_consulting_lite_custom_style .='}';
}

if( get_option( 'business_consulting_lite_related_product',true) != 'off') {

$business_consulting_lite_custom_style .='.related.products{';

	$business_consulting_lite_custom_style .='display: block;';
	
$business_consulting_lite_custom_style .='}';
}

// footer text alignment
$business_consulting_lite_footer_content_alignment = get_theme_mod( 'business_consulting_lite_footer_content_alignment','CENTER-ALIGN');

if($business_consulting_lite_footer_content_alignment == 'LEFT-ALIGN'){

$business_consulting_lite_custom_style .='.site-info{';

	$business_consulting_lite_custom_style .='text-align:left; padding-left: 30px;';

$business_consulting_lite_custom_style .='}';

$business_consulting_lite_custom_style .='.site-info a{';

	$business_consulting_lite_custom_style .='padding-left: 30px;';

$business_consulting_lite_custom_style .='}';


}else if($business_consulting_lite_footer_content_alignment == 'CENTER-ALIGN'){

$business_consulting_lite_custom_style .='.site-info{';

	$business_consulting_lite_custom_style .='text-align:center;';

$business_consulting_lite_custom_style .='}';


}else if($business_consulting_lite_footer_content_alignment == 'RIGHT-ALIGN'){

$business_consulting_lite_custom_style .='.site-info{';

	$business_consulting_lite_custom_style .='text-align:right; padding-right: 30px;';

$business_consulting_lite_custom_style .='}';

$business_consulting_lite_custom_style .='.site-info a{';

	$business_consulting_lite_custom_style .='padding-right: 30px;';

$business_consulting_lite_custom_style .='}';

}

// slider button
$mobile_button_setting = get_option('business_consulting_lite_slider_button_mobile_show_hide', '1');
$main_button_setting = get_option('business_consulting_lite_slider_button_show_hide', '1');

$business_consulting_lite_custom_style .= '#slider .home-btn {';

if ($main_button_setting == 'off') {
    $business_consulting_lite_custom_style .= 'display: none;';
}

$business_consulting_lite_custom_style .= '}';

// Add media query for mobile devices
$business_consulting_lite_custom_style .= '@media screen and (max-width: 600px) {';
if ($main_button_setting == 'off' || $mobile_button_setting == 'off') {
    $business_consulting_lite_custom_style .= '#slider .home-btn { display: none; }';
}
$business_consulting_lite_custom_style .= '}';


// scroll button
$mobile_scroll_setting = get_option('business_consulting_lite_scroll_enable_mobile', '1');
$main_scroll_setting = get_option('business_consulting_lite_scroll_enable', '1');

$business_consulting_lite_custom_style .= '.scrollup {';

if ($main_scroll_setting == 'off') {
    $business_consulting_lite_custom_style .= 'display: none;';
}

$business_consulting_lite_custom_style .= '}';

// Add media query for mobile devices
$business_consulting_lite_custom_style .= '@media screen and (max-width: 600px) {';
if ($main_scroll_setting == 'off' || $mobile_scroll_setting == 'off') {
    $business_consulting_lite_custom_style .= '.scrollup { display: none; }';
}
$business_consulting_lite_custom_style .= '}';

// theme breadcrumb
$mobile_breadcrumb_setting = get_option('business_consulting_lite_enable_breadcrumb_mobile', '1');
$main_breadcrumb_setting = get_option('business_consulting_lite_enable_breadcrumb', '1');

$business_consulting_lite_custom_style .= '.archieve_breadcrumb {';

if ($main_breadcrumb_setting == 'off') {
    $business_consulting_lite_custom_style .= 'display: none;';
}

$business_consulting_lite_custom_style .= '}';

// Add media query for mobile devices
$business_consulting_lite_custom_style .= '@media screen and (max-width: 600px) {';
if ($main_breadcrumb_setting == 'off' || $mobile_breadcrumb_setting == 'off') {
    $business_consulting_lite_custom_style .= '.archieve_breadcrumb { display: none; }';
}
$business_consulting_lite_custom_style .= '}';

// single post and page breadcrumb
$mobile_single_breadcrumb_setting = get_option('business_consulting_lite_single_enable_breadcrumb_mobile', '1');
$main_single_breadcrumb_setting = get_option('business_consulting_lite_single_enable_breadcrumb', '1');

$business_consulting_lite_custom_style .= '.single_breadcrumb {';

if ($main_single_breadcrumb_setting == 'off') {
    $business_consulting_lite_custom_style .= 'display: none;';
}

$business_consulting_lite_custom_style .= '}';

// Add media query for mobile devices
$business_consulting_lite_custom_style .= '@media screen and (max-width: 600px) {';
if ($main_single_breadcrumb_setting == 'off' || $mobile_single_breadcrumb_setting == 'off') {
    $business_consulting_lite_custom_style .= '.single_breadcrumb { display: none; }';
}
$business_consulting_lite_custom_style .= '}';

// woocommerce breadcrumb
$mobile_woo_breadcrumb_setting = get_option('business_consulting_lite_woocommerce_enable_breadcrumb_mobile', '1');
$main_woo_breadcrumb_setting = get_option('business_consulting_lite_woocommerce_enable_breadcrumb', '1');

$business_consulting_lite_custom_style .= '.woocommerce-breadcrumb {';

if ($main_woo_breadcrumb_setting == 'off') {
    $business_consulting_lite_custom_style .= 'display: none;';
}

$business_consulting_lite_custom_style .= '}';

// Add media query for mobile devices
$business_consulting_lite_custom_style .= '@media screen and (max-width: 600px) {';
if ($main_woo_breadcrumb_setting == 'off' || $mobile_woo_breadcrumb_setting == 'off') {
    $business_consulting_lite_custom_style .= '.woocommerce-breadcrumb { display: none; }';
}
$business_consulting_lite_custom_style .= '}';

//colors
$color = get_theme_mod('business_consulting_lite_primary_color', '#f63b2b');
$color_second = get_theme_mod('business_consulting_lite_second_color', '#084588');
$color_heading = get_theme_mod('business_consulting_lite_heading_color', '#181818');
$color_text = get_theme_mod('business_consulting_lite_text_color', '#63646d');
$color_fade = get_theme_mod('business_consulting_lite_primary_fade', '#ffe7e5');
$color_post_bg = get_theme_mod('business_consulting_lite_post_bg', '#ffffff');
$slider_overlay = get_theme_mod( 'business_consulting_lite_slider_overlay','#084588');


$business_consulting_lite_custom_style .= ":root {";
    $business_consulting_lite_custom_style .= "--theme-primary-color: {$color};";
    $business_consulting_lite_custom_style .= "--theme-second-color: {$color_second};";
    $business_consulting_lite_custom_style .= "--theme-heading-color: {$color_heading};";
    $business_consulting_lite_custom_style .= "--theme-text-color: {$color_text};";
    $business_consulting_lite_custom_style .= "--theme-primary-fade: {$color_fade};";
    $business_consulting_lite_custom_style .= "--post-bg-color: {$color_post_bg};";
    $business_consulting_lite_custom_style .= "--slider-overlay: {$slider_overlay};";
$business_consulting_lite_custom_style .= "}";

$business_consulting_lite_slider_opacity = get_theme_mod( 'business_consulting_lite_slider_opacity','0.5');

if($business_consulting_lite_slider_opacity == '0'){
$business_consulting_lite_custom_style .='#slider img {';
    $business_consulting_lite_custom_style .='opacity: 0';
$business_consulting_lite_custom_style .='}';

}else if($business_consulting_lite_slider_opacity == '0.1'){
$business_consulting_lite_custom_style .='#slider img {';
    $business_consulting_lite_custom_style .='opacity: 0.1';
$business_consulting_lite_custom_style .='}';

}else if($business_consulting_lite_slider_opacity == '0.2'){
$business_consulting_lite_custom_style .='#slider img {';
    $business_consulting_lite_custom_style .='opacity: 0.2';
$business_consulting_lite_custom_style .='}';

}else if($business_consulting_lite_slider_opacity == '0.3'){
$business_consulting_lite_custom_style .='#slider img {';
    $business_consulting_lite_custom_style .='opacity: 0.3';
$business_consulting_lite_custom_style .='}';

}else if($business_consulting_lite_slider_opacity == '0.4'){
$business_consulting_lite_custom_style .='#slider img {';
    $business_consulting_lite_custom_style .='opacity: 0.4';
$business_consulting_lite_custom_style .='}';

}else if($business_consulting_lite_slider_opacity == '0.5'){
$business_consulting_lite_custom_style .='#slider img {';
    $business_consulting_lite_custom_style .='opacity: 0.5';
$business_consulting_lite_custom_style .='}';

}else if($business_consulting_lite_slider_opacity == '0.6'){
$business_consulting_lite_custom_style .='#slider img {';
    $business_consulting_lite_custom_style .='opacity: 0.6';
$business_consulting_lite_custom_style .='}';

}else if($business_consulting_lite_slider_opacity == '0.7'){
$business_consulting_lite_custom_style .='#slider img {';
    $business_consulting_lite_custom_style .='opacity: 0.7';
$business_consulting_lite_custom_style .='}';

}else if($business_consulting_lite_slider_opacity == '0.8'){
$business_consulting_lite_custom_style .='#slider img {';
    $business_consulting_lite_custom_style .='opacity: 0.8';
$business_consulting_lite_custom_style .='}';

}
else if($business_consulting_lite_slider_opacity == '0.9'){
$business_consulting_lite_custom_style .='#slider img {';
    $business_consulting_lite_custom_style .='opacity: 0.9';
$business_consulting_lite_custom_style .='}';

}
else if($business_consulting_lite_slider_opacity == '1'){
$business_consulting_lite_custom_style .='#slider img {';
    $business_consulting_lite_custom_style .='opacity: 1';
$business_consulting_lite_custom_style .='}';

}

$business_consulting_lite_slider_heading_color = get_theme_mod( 'business_consulting_lite_slider_heading_color','#ffffff');
$business_consulting_lite_custom_style .='#slider .carousel-caption h2 {';
$business_consulting_lite_custom_style .='color: '.esc_attr($business_consulting_lite_slider_heading_color).';';
$business_consulting_lite_custom_style .='}';

$business_consulting_lite_slider_excerpt_color = get_theme_mod( 'business_consulting_lite_slider_excerpt_color','#ffffff');
$business_consulting_lite_custom_style .='#slider .slider-excerpt {';
$business_consulting_lite_custom_style .='color: '.esc_attr($business_consulting_lite_slider_excerpt_color).';';
$business_consulting_lite_custom_style .='}';

//-------------------title-font-size----//  
$business_consulting_lite_site_title_fontsize = get_theme_mod('business_consulting_lite_site_title_fontsize','25');

if($business_consulting_lite_site_title_fontsize != false){

$business_consulting_lite_custom_style .='.logo h1,.site-title,.site-title a,.logo h1 a{';

    $business_consulting_lite_custom_style .='font-size: '.esc_html($business_consulting_lite_site_title_fontsize).'px;';

$business_consulting_lite_custom_style .='}';
}

//-------------------tagline-font-size----//  
$business_consulting_lite_site_tagline_fontsize = get_theme_mod('business_consulting_lite_site_tagline_fontsize','15');

if($business_consulting_lite_site_tagline_fontsize != false){

$business_consulting_lite_custom_style .='p.site-description{';

    $business_consulting_lite_custom_style .='font-size: '.esc_html($business_consulting_lite_site_tagline_fontsize).'px;';

$business_consulting_lite_custom_style .='}';
}

//-------------------menu-font-size----//  
$business_consulting_lite_menu_fontsize = get_theme_mod('business_consulting_lite_menu_fontsize','14');

if($business_consulting_lite_menu_fontsize != false){

$business_consulting_lite_custom_style .='.gb_nav_menu li a{';

    $business_consulting_lite_custom_style .='font-size: '.esc_html($business_consulting_lite_menu_fontsize).'px;';

$business_consulting_lite_custom_style .='}';
}

//-------------------first-letter-capital----//
if (false === get_option('business_consulting_lite_first_letter_capital_enable')) {
    add_option('business_consulting_lite_first_letter_capital_enable', 'on');
}
if (get_option('business_consulting_lite_first_letter_capital_enable') === 'off') {
    $business_consulting_lite_custom_style .= '.entry-content > p:first-of-type:first-letter {';
    $business_consulting_lite_custom_style .= 'font-size: 16px; float: none; line-height: unset; padding: 0;';
    $business_consulting_lite_custom_style .= '}';
}