<?php 
	$university_institute_custom_css ='';

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

    $university_institute_footer_attachment = get_theme_mod( 'university_institute_menu_text_transform','uppercase');
    if($university_institute_footer_attachment == 'uppercase'){
        $university_institute_custom_css .='.main-navigation ul#primary-menu>li>a, .main-navigation div#primary-menu>ul>li>a{';
            $university_institute_custom_css .='text-transform: uppercase;';
        $university_institute_custom_css .='}';
    }elseif ($university_institute_footer_attachment == 'capitalize'){
        $university_institute_custom_css .='.main-navigation ul#primary-menu>li>a, .main-navigation div#primary-menu>ul>li>a{';
            $university_institute_custom_css .='text-transform: capitalize;';
        $university_institute_custom_css .='}';
    }elseif ($university_institute_footer_attachment == 'lowercase'){
        $university_institute_custom_css .='.main-navigation ul#primary-menu>li>a, .main-navigation div#primary-menu>ul>li>a{';
            $university_institute_custom_css .='text-transform: lowercase;';
        $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-image:url(' . esc_url($university_institute_footer_bg_image) . ');';
        $university_institute_custom_css .= 'background-size: cover;';
        $university_institute_custom_css .= 'background-repeat:no-repeat;';
        $university_institute_custom_css .= '}';
    }

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

    $university_institute_footer_attachment = get_theme_mod( 'university_institute_background_attachment','scroll');
    if($university_institute_footer_attachment == 'fixed'){
        $university_institute_custom_css .='.footer-top{';
            $university_institute_custom_css .='background-attachment: fixed;';
        $university_institute_custom_css .='}';
    }elseif ($university_institute_footer_attachment == 'scroll'){
        $university_institute_custom_css .='.footer-top{';
            $university_institute_custom_css .='background-attachment: scroll;';
        $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 .='}';
    }