<?php 
	$surgical_hospital_custom_css ='';

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

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

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

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

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

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

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

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

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

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

    $surgical_hospital_footer_attachment = get_theme_mod( 'surgical_hospital_background_attachment','scroll');
    if($surgical_hospital_footer_attachment == 'fixed'){
        $surgical_hospital_custom_css .='.footer-top{';
            $surgical_hospital_custom_css .='background-attachment: fixed;';
        $surgical_hospital_custom_css .='}';
    }elseif ($surgical_hospital_footer_attachment == 'scroll'){
        $surgical_hospital_custom_css .='.footer-top{';
            $surgical_hospital_custom_css .='background-attachment: scroll;';
        $surgical_hospital_custom_css .='}';
    }

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

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

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

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


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

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

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

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

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

    if($surgical_hospital_enable_breadcrumbs == 0){
        $surgical_hospital_custom_css .='.surgical-hospital-breadcrumbs, nav.woocommerce-breadcrumb{';
            $surgical_hospital_custom_css .='display: none;';
        $surgical_hospital_custom_css .='}';
    }

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

    $surgical_hospital_enable_slider = get_theme_mod('surgical_hospital_enable_slider', 0);
    if($surgical_hospital_enable_slider != 1){
        $surgical_hospital_custom_css .='.page-template-revolution-home .top-head{';
            $surgical_hospital_custom_css .='position:static;';
        $surgical_hospital_custom_css .='}';
    }