<?php 
	$consultancy_services_custom_css ='';

    /*--------------------------- Menu Text Transform -------------------*/

    $consultancy_services_footer_attachment = get_theme_mod( 'consultancy_services_menu_text_transform','uppercase');
    if($consultancy_services_footer_attachment == 'uppercase'){
        $consultancy_services_custom_css .='.main-navigation ul#primary-menu>li>a, .main-navigation div#primary-menu>ul>li>a{';
            $consultancy_services_custom_css .='text-transform: uppercase;';
        $consultancy_services_custom_css .='}';
    }elseif ($consultancy_services_footer_attachment == 'capitalize'){
        $consultancy_services_custom_css .='.main-navigation ul#primary-menu>li>a, .main-navigation div#primary-menu>ul>li>a{';
            $consultancy_services_custom_css .='text-transform: capitalize;';
        $consultancy_services_custom_css .='}';
    }elseif ($consultancy_services_footer_attachment == 'lowercase'){
        $consultancy_services_custom_css .='.main-navigation ul#primary-menu>li>a, .main-navigation div#primary-menu>ul>li>a{';
            $consultancy_services_custom_css .='text-transform: lowercase;';
        $consultancy_services_custom_css .='}';
    }

    /*----------------Related Product show/hide -------------------*/

    $consultancy_services_enable_related_product = get_theme_mod('consultancy_services_enable_related_product',1);

    if($consultancy_services_enable_related_product == 0){
        $consultancy_services_custom_css .='.related.products{';
            $consultancy_services_custom_css .='display: none;';
        $consultancy_services_custom_css .='}';
    }

    /*----------------blog post content alignment -------------------*/

    $consultancy_services_blog_Post_content_layout = get_theme_mod( 'consultancy_services_blog_Post_content_layout','Left');
    if($consultancy_services_blog_Post_content_layout == 'Left'){
        $consultancy_services_custom_css .='.ct-post-wrapper .card-item {';
            $consultancy_services_custom_css .='text-align:start;';
        $consultancy_services_custom_css .='}';
    }else if($consultancy_services_blog_Post_content_layout == 'Center'){
        $consultancy_services_custom_css .='.ct-post-wrapper .card-item {';
            $consultancy_services_custom_css .='text-align:center;';
        $consultancy_services_custom_css .='}';
    }else if($consultancy_services_blog_Post_content_layout == 'Right'){
        $consultancy_services_custom_css .='.ct-post-wrapper .card-item {';
            $consultancy_services_custom_css .='text-align:end;';
        $consultancy_services_custom_css .='}';
    }

    /*--------------------------- Footer background image -------------------*/

    $consultancy_services_footer_bg_image = get_theme_mod('consultancy_services_footer_bg_image');
    if($consultancy_services_footer_bg_image != false){
        $consultancy_services_custom_css .= '.footer-top{';
        $consultancy_services_custom_css .= 'background-image:url(' . esc_url($consultancy_services_footer_bg_image) . ');';
        $consultancy_services_custom_css .= 'background-size: cover;';
        $consultancy_services_custom_css .= 'background-repeat:no-repeat;';
        $consultancy_services_custom_css .= '}';
    }

    /*--------------------------- Footer Background Image Attachment -------------------*/

    $consultancy_services_footer_attachment = get_theme_mod( 'consultancy_services_background_attachment','scroll');
    if($consultancy_services_footer_attachment == 'fixed'){
        $consultancy_services_custom_css .='.footer-top{';
            $consultancy_services_custom_css .='background-attachment: fixed;';
        $consultancy_services_custom_css .='}';
    }elseif ($consultancy_services_footer_attachment == 'scroll'){
        $consultancy_services_custom_css .='.footer-top{';
            $consultancy_services_custom_css .='background-attachment: scroll;';
        $consultancy_services_custom_css .='}';
    }

    /*--------------------------- Go to top positions -------------------*/

    $consultancy_services_go_to_top_position = get_theme_mod( 'consultancy_services_go_to_top_position','Right');
    if($consultancy_services_go_to_top_position == 'Right'){
        $consultancy_services_custom_css .='.footer-go-to-top{';
            $consultancy_services_custom_css .='right: 20px;';
        $consultancy_services_custom_css .='}';
    }else if($consultancy_services_go_to_top_position == 'Left'){
        $consultancy_services_custom_css .='.footer-go-to-top{';
            $consultancy_services_custom_css .='left: 20px;';
        $consultancy_services_custom_css .='}';
    }else if($consultancy_services_go_to_top_position == 'Center'){
        $consultancy_services_custom_css .='.footer-go-to-top{';
            $consultancy_services_custom_css .='right: 50%;left: 50%;';
        $consultancy_services_custom_css .='}';
    }

    /*--------------------------- Woocommerce Product Sale Positions -------------------*/

    $consultancy_services_product_sale = get_theme_mod( 'consultancy_services_woocommerce_product_sale','Right');
    if($consultancy_services_product_sale == 'Right'){
        $consultancy_services_custom_css .='.woocommerce ul.products li.product .onsale{';
            $consultancy_services_custom_css .='left: auto; ';
        $consultancy_services_custom_css .='}';
    }else if($consultancy_services_product_sale == 'Left'){
        $consultancy_services_custom_css .='.woocommerce ul.products li.product .onsale{';
            $consultancy_services_custom_css .='right: auto;left:0;';
        $consultancy_services_custom_css .='}';
    }else if($consultancy_services_product_sale == 'Center'){
        $consultancy_services_custom_css .='.woocommerce ul.products li.product .onsale{';
            $consultancy_services_custom_css .='right: 50%; left: 50%; ';
        $consultancy_services_custom_css .='}';
    }

    /*-------------------- Primary Color -------------------*/

	$consultancy_services_primary_color = get_theme_mod('consultancy_services_primary_color', '#1A4137'); // Add a fallback if the color isn't set
	if ($consultancy_services_primary_color) {
		$consultancy_services_custom_css .= ':root {';
		$consultancy_services_custom_css .= '--primary-color: ' . esc_attr($consultancy_services_primary_color) . ';';
		$consultancy_services_custom_css .= '}';
	}

    $consultancy_services_secondary_color = get_theme_mod('consultancy_services_secondary_color', '#C6D936'); // Add a fallback if the color isn't set
    if ($consultancy_services_secondary_color) {
        $consultancy_services_custom_css .= ':root {';
        $consultancy_services_custom_css .= '--secondary-color: ' . esc_attr($consultancy_services_secondary_color) . ';';
        $consultancy_services_custom_css .= '}';
    }

    /*----------------Enable/Disable Breadcrumbs -------------------*/

    $consultancy_services_enable_breadcrumbs = get_theme_mod('consultancy_services_enable_breadcrumbs',1);

    if($consultancy_services_enable_breadcrumbs == 0){
        $consultancy_services_custom_css .='.consultancy-services-breadcrumbs, nav.woocommerce-breadcrumb{';
            $consultancy_services_custom_css .='display: none;';
        $consultancy_services_custom_css .='}';
    }

    /*--------------------------- slider-------------------*/

    $consultancy_services_enable_slider = get_theme_mod('consultancy_services_enable_slider', 0);
    if($consultancy_services_enable_slider != 1){
        $consultancy_services_custom_css .='.last-right{';
            $consultancy_services_custom_css .='margin-bottom:0;';
        $consultancy_services_custom_css .='}';
    }