<?php 
	$university_institute_custom_css ='';

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

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

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

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

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

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

    $university_institute_footer_bg_image = get_theme_mod('university_institute_footer_bg_image');
    if($university_institute_footer_bg_image != false){
        $university_institute_custom_css .='.footer-top{';
            $university_institute_custom_css .='background: url('.esc_attr($university_institute_footer_bg_image).');';
        $university_institute_custom_css .='}';
    }

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

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

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

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

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

	$university_institute_primary_color = get_theme_mod('university_institute_primary_color', '#6A39CD'); // Add a fallback if the color isn't set
	if ($university_institute_primary_color) {
		$university_institute_custom_css .= ':root {';
		$university_institute_custom_css .= '--primary-color: ' . esc_attr($university_institute_primary_color) . ';';
		$university_institute_custom_css .= '}';
	}

     /*--------------------------- Slider -------------------*/
    $university_institute_enable_slider = get_theme_mod('university_institute_enable_slider', 0);
    if ($university_institute_enable_slider == false) {
        $university_institute_custom_css .= '.page-template-revolution-home .headermain{';
        $university_institute_custom_css .= 'position:static; background-color:#000;';
        $university_institute_custom_css .= '}';
        $university_institute_custom_css .= '.page-template-revolution-home .site-header{';
        $university_institute_custom_css .= 'background-color:#000;padding-bottom:4em;';
        $university_institute_custom_css .= '}';
    }

    // topbar
    $university_institute_show_topbar = get_theme_mod('university_institute_show_topbar', 1);
    if ($university_institute_show_topbar == false) {
        $university_institute_custom_css .= '.site-header{';
        $university_institute_custom_css .= 'padding-top:4em;';
        $university_institute_custom_css .= '}';
    }

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

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

    if($university_institute_enable_breadcrumbs == 0){
        $university_institute_custom_css .='.university-institute-breadcrumbs, nav.woocommerce-breadcrumb{';
            $university_institute_custom_css .='display: none;';
        $university_institute_custom_css .='}';
    }