 <?php

    $preventive_maintenance_scroll_position = get_theme_mod( 'preventive_maintenance_scroll_top_position','Right');
    if($preventive_maintenance_scroll_position == 'Right'){
        $preventive_maintenance_tp_theme_css .='#return-to-top{';
            $preventive_maintenance_tp_theme_css .='right: 20px;';
        $preventive_maintenance_tp_theme_css .='}';
    }else if($preventive_maintenance_scroll_position == 'Left'){
        $preventive_maintenance_tp_theme_css .='#return-to-top{';
            $preventive_maintenance_tp_theme_css .='left: 20px;';
        $preventive_maintenance_tp_theme_css .='}';
    }else if($preventive_maintenance_scroll_position == 'Center'){
        $preventive_maintenance_tp_theme_css .='#return-to-top{';
            $preventive_maintenance_tp_theme_css .='right: 50%;left: 50%;';
        $preventive_maintenance_tp_theme_css .='}';
    }

		// related post
	$preventive_maintenance_related_post_mob = get_theme_mod('preventive_maintenance_related_post_mob', true);
	$preventive_maintenance_related_post = get_theme_mod('preventive_maintenance_remove_related_post', true);
	$preventive_maintenance_tp_theme_css .= '.related-post-block {';
	if ($preventive_maintenance_related_post == false) {
	    $preventive_maintenance_tp_theme_css .= 'display: none;';
	}
	$preventive_maintenance_tp_theme_css .= '}';
	$preventive_maintenance_tp_theme_css .= '@media screen and (max-width: 575px) {';
	if ($preventive_maintenance_related_post == false || $preventive_maintenance_related_post_mob == false) {
	    $preventive_maintenance_tp_theme_css .= '.related-post-block { display: none; }';
	}
	$preventive_maintenance_tp_theme_css .= '}';

	// slider btn
	$preventive_maintenance_slider_button_mob = get_theme_mod('preventive_maintenance_slider_button_mob', true);
	$preventive_maintenance_slider_button = get_theme_mod('preventive_maintenance_slider_button', true);
	$preventive_maintenance_tp_theme_css .= '#slider .more-btn {';
	if ($preventive_maintenance_slider_button == false) {
	    $preventive_maintenance_tp_theme_css .= 'display: none;';
	}
	$preventive_maintenance_tp_theme_css .= '}';
	$preventive_maintenance_tp_theme_css .= '@media screen and (max-width: 575px) {';
	if ($preventive_maintenance_slider_button == false || $preventive_maintenance_slider_button_mob == false) {
	    $preventive_maintenance_tp_theme_css .= '#slider .more-btn { display: none; }';
	}
	$preventive_maintenance_tp_theme_css .= '}';

	//return to header mobile				
	$preventive_maintenance_return_to_header_mob = get_theme_mod('preventive_maintenance_return_to_header_mob', true);
	$preventive_maintenance_return_to_header = get_theme_mod('preventive_maintenance_return_to_header', true);
	$preventive_maintenance_tp_theme_css .= '.return-to-header{';
	if ($preventive_maintenance_return_to_header == false) {
	    $preventive_maintenance_tp_theme_css .= 'display: none;';
	}
	$preventive_maintenance_tp_theme_css .= '}';
	$preventive_maintenance_tp_theme_css .= '@media screen and (max-width: 575px) {';
	if ($preventive_maintenance_return_to_header == false || $preventive_maintenance_return_to_header_mob == false) {
	    $preventive_maintenance_tp_theme_css .= '.return-to-header{ display: none; }';
	}
	$preventive_maintenance_tp_theme_css .= '}';


//blog description              
$preventive_maintenance_mobile_blog_description = get_theme_mod('preventive_maintenance_mobile_blog_description', true);
$preventive_maintenance_tp_theme_css .= '@media screen and (max-width: 575px) {';
if ($preventive_maintenance_mobile_blog_description == false) {
    $preventive_maintenance_tp_theme_css .= '.blog-description{ display: none; }';
}
$preventive_maintenance_tp_theme_css .= '}';


	$preventive_maintenance_footer_widget_image = get_theme_mod('preventive_maintenance_footer_widget_image');
	if($preventive_maintenance_footer_widget_image != false){
		$preventive_maintenance_tp_theme_css .='#footer{';
			$preventive_maintenance_tp_theme_css .='background: url('.esc_attr($preventive_maintenance_footer_widget_image).');';
		$preventive_maintenance_tp_theme_css .='}';
	}

	//Social icon Font size
$preventive_maintenance_social_icon_fontsize = get_theme_mod('preventive_maintenance_social_icon_fontsize','14');
$preventive_maintenance_tp_theme_css .='.social-media a i{';
$preventive_maintenance_tp_theme_css .='font-size: '.esc_attr($preventive_maintenance_social_icon_fontsize).'px;';
$preventive_maintenance_tp_theme_css .='}';

// site title and tagline font size option
$preventive_maintenance_site_title_font_size = get_theme_mod('preventive_maintenance_site_title_font_size', 30); {
$preventive_maintenance_tp_theme_css .='.logo h1 a, .logo p a{';
$preventive_maintenance_tp_theme_css .='font-size: '.esc_attr($preventive_maintenance_site_title_font_size).'px !important;';
	$preventive_maintenance_tp_theme_css .='}';
}

$preventive_maintenance_site_tagline_font_size = get_theme_mod('preventive_maintenance_site_tagline_font_size', 15);{
$preventive_maintenance_tp_theme_css .='.logo p{';
$preventive_maintenance_tp_theme_css .='font-size: '.esc_attr($preventive_maintenance_site_tagline_font_size).'px;';
	$preventive_maintenance_tp_theme_css .='}';
}

	$preventive_maintenance_related_product = get_theme_mod('preventive_maintenance_related_product',true);
		if($preventive_maintenance_related_product == false){
			$preventive_maintenance_tp_theme_css .='.related.products{';
				$preventive_maintenance_tp_theme_css .='display: none;';
			$preventive_maintenance_tp_theme_css .='}';
		}


	//======================= MENU TYPOGRAPHY ===================== //


$preventive_maintenance_menu_font_size = get_theme_mod('preventive_maintenance_menu_font_size', 15);{
$preventive_maintenance_tp_theme_css .='.main-navigation a, .main-navigation li.page_item_has_children:after,.main-navigation li.menu-item-has-children:after{';
$preventive_maintenance_tp_theme_css .='font-size: '.esc_attr($preventive_maintenance_menu_font_size).'px;';
	$preventive_maintenance_tp_theme_css .='}';
}

$preventive_maintenance_menu_text_tranform = get_theme_mod( 'preventive_maintenance_menu_text_tranform','Uppercase');
    if($preventive_maintenance_menu_text_tranform == 'Uppercase'){
		$preventive_maintenance_tp_theme_css .='.main-navigation a {';
			$preventive_maintenance_tp_theme_css .='text-transform: uppercase;';
		$preventive_maintenance_tp_theme_css .='}';
	}else if($preventive_maintenance_menu_text_tranform == 'Lowercase'){
		$preventive_maintenance_tp_theme_css .='.main-navigation a {';
			$preventive_maintenance_tp_theme_css .='text-transform: lowercase;';
		$preventive_maintenance_tp_theme_css .='}';
	}
	else if($preventive_maintenance_menu_text_tranform == 'Capitalize'){
		$preventive_maintenance_tp_theme_css .='.main-navigation a {';
			$preventive_maintenance_tp_theme_css .='text-transform: capitalize;';
		$preventive_maintenance_tp_theme_css .='}';
	}

//======================= slider Content layout ===================== //

$preventive_maintenance_slider_content_layout = get_theme_mod('preventive_maintenance_slider_content_layout', 'CENTER-ALIGN'); 
$preventive_maintenance_tp_theme_css .= '#slider .carousel-caption{';
switch ($preventive_maintenance_slider_content_layout) {
    case 'LEFT-ALIGN':
        $preventive_maintenance_tp_theme_css .= 'text-align:left; right: 35%; left: 15%';
        break;
    case 'CENTER-ALIGN':
        $preventive_maintenance_tp_theme_css .= 'text-align:center; left: 15%; right: 15%';
        break;
    case 'RIGHT-ALIGN':
        $preventive_maintenance_tp_theme_css .= 'text-align:right; left: 35%; right: 15%';
        break;
    default:
        $preventive_maintenance_tp_theme_css .= 'text-align:left; right: 35%; left: 15%';
        break;
}
$preventive_maintenance_tp_theme_css .= '}';

//sale position
$preventive_maintenance_scroll_position = get_theme_mod( 'preventive_maintenance_sale_tag_position','right');
if($preventive_maintenance_scroll_position == 'right'){
$preventive_maintenance_tp_theme_css .='.woocommerce ul.products li.product .onsale{';
    $preventive_maintenance_tp_theme_css .='right: 25px !important;';
$preventive_maintenance_tp_theme_css .='}';
}else if($preventive_maintenance_scroll_position == 'left'){
$preventive_maintenance_tp_theme_css .='.woocommerce ul.products li.product .onsale{';
    $preventive_maintenance_tp_theme_css .='left: 25px !important; right: auto !important;';
$preventive_maintenance_tp_theme_css .='}';
}

$preventive_maintenance_woocommerce_sale_font_size = get_theme_mod('preventive_maintenance_woocommerce_sale_font_size');
if($preventive_maintenance_woocommerce_sale_font_size != false){
    $preventive_maintenance_tp_theme_css .='.woocommerce ul.products li.product .onsale, .woocommerce span.onsale{';
        $preventive_maintenance_tp_theme_css .='font-size: '.esc_attr($preventive_maintenance_woocommerce_sale_font_size).'px;';
    $preventive_maintenance_tp_theme_css .='}';
}

$preventive_maintenance_woocommerce_sale_padding_top_bottom = get_theme_mod('preventive_maintenance_woocommerce_sale_padding_top_bottom');
if($preventive_maintenance_woocommerce_sale_padding_top_bottom != false){
    $preventive_maintenance_tp_theme_css .='.woocommerce ul.products li.product .onsale, .woocommerce span.onsale{';
        $preventive_maintenance_tp_theme_css .='padding-top: '.esc_attr($preventive_maintenance_woocommerce_sale_padding_top_bottom).'px; padding-bottom: '.esc_attr($preventive_maintenance_woocommerce_sale_padding_top_bottom).'px;';
    $preventive_maintenance_tp_theme_css .='}';
}

$preventive_maintenance_woocommerce_sale_padding_left_right = get_theme_mod('preventive_maintenance_woocommerce_sale_padding_left_right');
if($preventive_maintenance_woocommerce_sale_padding_left_right != false){
    $preventive_maintenance_tp_theme_css .='.woocommerce ul.products li.product .onsale, .woocommerce span.onsale{';
        $preventive_maintenance_tp_theme_css .='padding-left: '.esc_attr($preventive_maintenance_woocommerce_sale_padding_left_right).'px !Important; padding-right: '.esc_attr($preventive_maintenance_woocommerce_sale_padding_left_right).'px !important;';
    $preventive_maintenance_tp_theme_css .='}';
}

$preventive_maintenance_woocommerce_sale_border_radius = get_theme_mod('preventive_maintenance_woocommerce_sale_border_radius', 100);
if($preventive_maintenance_woocommerce_sale_border_radius != false){
    $preventive_maintenance_tp_theme_css .='.woocommerce ul.products li.product .onsale, .woocommerce span.onsale{';
        $preventive_maintenance_tp_theme_css .='border-radius: '.esc_attr($preventive_maintenance_woocommerce_sale_border_radius).'% !important;';
    $preventive_maintenance_tp_theme_css .='}';
}

//Font Weight
$preventive_maintenance_menu_font_weight = get_theme_mod( 'preventive_maintenance_menu_font_weight','500');
if($preventive_maintenance_menu_font_weight == '100'){
$preventive_maintenance_tp_theme_css .='.main-navigation a{';
    $preventive_maintenance_tp_theme_css .='font-weight: 100;';
$preventive_maintenance_tp_theme_css .='}';
}else if($preventive_maintenance_menu_font_weight == '200'){
$preventive_maintenance_tp_theme_css .='.main-navigation a{';
    $preventive_maintenance_tp_theme_css .='font-weight: 200;';
$preventive_maintenance_tp_theme_css .='}';
}else if($preventive_maintenance_menu_font_weight == '300'){
$preventive_maintenance_tp_theme_css .='.main-navigation a{';
    $preventive_maintenance_tp_theme_css .='font-weight: 300;';
$preventive_maintenance_tp_theme_css .='}';
}else if($preventive_maintenance_menu_font_weight == '400'){
$preventive_maintenance_tp_theme_css .='.main-navigation a{';
    $preventive_maintenance_tp_theme_css .='font-weight: 400;';
$preventive_maintenance_tp_theme_css .='}';
}else if($preventive_maintenance_menu_font_weight == '500'){
$preventive_maintenance_tp_theme_css .='.main-navigation a{';
    $preventive_maintenance_tp_theme_css .='font-weight: 500;';
$preventive_maintenance_tp_theme_css .='}';
}else if($preventive_maintenance_menu_font_weight == '600'){
$preventive_maintenance_tp_theme_css .='.main-navigation a{';
    $preventive_maintenance_tp_theme_css .='font-weight: 600;';
$preventive_maintenance_tp_theme_css .='}';
}else if($preventive_maintenance_menu_font_weight == '700'){
$preventive_maintenance_tp_theme_css .='.main-navigation a{';
    $preventive_maintenance_tp_theme_css .='font-weight: 700;';
$preventive_maintenance_tp_theme_css .='}';
}else if($preventive_maintenance_menu_font_weight == '800'){
$preventive_maintenance_tp_theme_css .='.main-navigation a{';
    $preventive_maintenance_tp_theme_css .='font-weight: 800;';
$preventive_maintenance_tp_theme_css .='}';
}else if($preventive_maintenance_menu_font_weight == '900'){
$preventive_maintenance_tp_theme_css .='.main-navigation a{';
    $preventive_maintenance_tp_theme_css .='font-weight: 900;';
$preventive_maintenance_tp_theme_css .='}';
}


// header
$preventive_maintenance_slider_arrows = get_theme_mod( 'preventive_maintenance_slider_arrows', true);
if($preventive_maintenance_slider_arrows != true){
    $preventive_maintenance_tp_theme_css .='.page-template-front-page .menubar{';
        $preventive_maintenance_tp_theme_css .='position:static;';
    $preventive_maintenance_tp_theme_css .='}';
}

/*------------- Blog Page------------------*/
$preventive_maintenance_post_image_round = get_theme_mod('preventive_maintenance_post_image_round', 0);
if($preventive_maintenance_post_image_round != false){
	$preventive_maintenance_tp_theme_css .='.blog .box-image img{';
		$preventive_maintenance_tp_theme_css .='border-radius: '.esc_attr($preventive_maintenance_post_image_round).'px;';
	$preventive_maintenance_tp_theme_css .='}';
}

$preventive_maintenance_post_image_width = get_theme_mod('preventive_maintenance_post_image_width', '');
if($preventive_maintenance_post_image_width != false){
	$preventive_maintenance_tp_theme_css .='.blog .box-image img{';
		$preventive_maintenance_tp_theme_css .='Width: '.esc_attr($preventive_maintenance_post_image_width).'px;';
	$preventive_maintenance_tp_theme_css .='}';
}

$preventive_maintenance_post_image_length = get_theme_mod('preventive_maintenance_post_image_length', '');
if($preventive_maintenance_post_image_length != false){
	$preventive_maintenance_tp_theme_css .='.blog .box-image img{';
		$preventive_maintenance_tp_theme_css .='height: '.esc_attr($preventive_maintenance_post_image_length).'px;';
	$preventive_maintenance_tp_theme_css .='}';
}

// footer widget title font size
	$preventive_maintenance_footer_widget_title_font_size = get_theme_mod('preventive_maintenance_footer_widget_title_font_size', '');{
	$preventive_maintenance_tp_theme_css .='#footer h3{';
		$preventive_maintenance_tp_theme_css .='font-size: '.esc_attr($preventive_maintenance_footer_widget_title_font_size).'px;';
	$preventive_maintenance_tp_theme_css .='}';
	}

	// Copyright text font size
	$preventive_maintenance_footer_copyright_font_size = get_theme_mod('preventive_maintenance_footer_copyright_font_size', '');{
	$preventive_maintenance_tp_theme_css .='#footer .site-info p{';
		$preventive_maintenance_tp_theme_css .='font-size: '.esc_attr($preventive_maintenance_footer_copyright_font_size).'px;';
	$preventive_maintenance_tp_theme_css .='}';
	}

	// copyright padding
	$preventive_maintenance_footer_copyright_top_bottom_padding = get_theme_mod('preventive_maintenance_footer_copyright_top_bottom_padding', '');
	if ($preventive_maintenance_footer_copyright_top_bottom_padding !== '') { 
	    $preventive_maintenance_tp_theme_css .= '.site-info {';
	    $preventive_maintenance_tp_theme_css .= 'padding-top: ' . esc_attr($preventive_maintenance_footer_copyright_top_bottom_padding) . 'px;';
	    $preventive_maintenance_tp_theme_css .= 'padding-bottom: ' . esc_attr($preventive_maintenance_footer_copyright_top_bottom_padding) . 'px;';
	    $preventive_maintenance_tp_theme_css .= '}';
	}

	// copyright position
	$preventive_maintenance_copyright_text_position = get_theme_mod( 'preventive_maintenance_copyright_text_position','Center');
	if($preventive_maintenance_copyright_text_position == 'Center'){
	$preventive_maintenance_tp_theme_css .='#footer .site-info p{';
	$preventive_maintenance_tp_theme_css .='text-align:center;';
	$preventive_maintenance_tp_theme_css .='}';
	}else if($preventive_maintenance_copyright_text_position == 'Left'){
	$preventive_maintenance_tp_theme_css .='#footer .site-info p{';
	$preventive_maintenance_tp_theme_css .='text-align:left;';
	$preventive_maintenance_tp_theme_css .='}';
	}else if($preventive_maintenance_copyright_text_position == 'Right'){
	$preventive_maintenance_tp_theme_css .='#footer .site-info p{';
	$preventive_maintenance_tp_theme_css .='text-align:right;';
	$preventive_maintenance_tp_theme_css .='}';
}

// Header Image title font size
$preventive_maintenance_header_image_title_font_size = get_theme_mod('preventive_maintenance_header_image_title_font_size', '32');{
$preventive_maintenance_tp_theme_css .='.box-text h2{';
    $preventive_maintenance_tp_theme_css .='font-size: '.esc_attr($preventive_maintenance_header_image_title_font_size).'px;';
$preventive_maintenance_tp_theme_css .='}';
}

/*--------------------------- banner image Opacity -------------------*/
    $preventive_maintenance_theme_lay = get_theme_mod( 'preventive_maintenance_header_banner_opacity_color','0.5');
        if($preventive_maintenance_theme_lay == '0'){
            $preventive_maintenance_tp_theme_css .='.single-page-img, .featured-image{';
                $preventive_maintenance_tp_theme_css .='opacity:0';
            $preventive_maintenance_tp_theme_css .='}';
        }else if($preventive_maintenance_theme_lay == '0.1'){
            $preventive_maintenance_tp_theme_css .='.single-page-img, .featured-image{';
                $preventive_maintenance_tp_theme_css .='opacity:0.1';
            $preventive_maintenance_tp_theme_css .='}';
        }else if($preventive_maintenance_theme_lay == '0.2'){
            $preventive_maintenance_tp_theme_css .='.single-page-img, .featured-image{';
                $preventive_maintenance_tp_theme_css .='opacity:0.2';
            $preventive_maintenance_tp_theme_css .='}';
        }else if($preventive_maintenance_theme_lay == '0.3'){
            $preventive_maintenance_tp_theme_css .='.single-page-img, .featured-image{';
                $preventive_maintenance_tp_theme_css .='opacity:0.3';
            $preventive_maintenance_tp_theme_css .='}';
        }else if($preventive_maintenance_theme_lay == '0.4'){
            $preventive_maintenance_tp_theme_css .='.single-page-img, .featured-image{';
                $preventive_maintenance_tp_theme_css .='opacity:0.4';
            $preventive_maintenance_tp_theme_css .='}';
        }else if($preventive_maintenance_theme_lay == '0.5'){
            $preventive_maintenance_tp_theme_css .='.single-page-img, .featured-image{';
                $preventive_maintenance_tp_theme_css .='opacity:0.5';
            $preventive_maintenance_tp_theme_css .='}';
        }else if($preventive_maintenance_theme_lay == '0.6'){
            $preventive_maintenance_tp_theme_css .='.single-page-img, .featured-image{';
                $preventive_maintenance_tp_theme_css .='opacity:0.6';
            $preventive_maintenance_tp_theme_css .='}';
        }else if($preventive_maintenance_theme_lay == '0.7'){
            $preventive_maintenance_tp_theme_css .='.single-page-img, .featured-image{';
                $preventive_maintenance_tp_theme_css .='opacity:0.7';
            $preventive_maintenance_tp_theme_css .='}';
        }else if($preventive_maintenance_theme_lay == '0.8'){
            $preventive_maintenance_tp_theme_css .='.single-page-img, .featured-image{';
                $preventive_maintenance_tp_theme_css .='opacity:0.8';
            $preventive_maintenance_tp_theme_css .='}';
        }else if($preventive_maintenance_theme_lay == '0.9'){
            $preventive_maintenance_tp_theme_css .='.single-page-img, .featured-image{';
                $preventive_maintenance_tp_theme_css .='opacity:0.9';
            $preventive_maintenance_tp_theme_css .='}';
        }else if($preventive_maintenance_theme_lay == '1'){
            $preventive_maintenance_tp_theme_css .='#slider img{';
                $preventive_maintenance_tp_theme_css .='opacity:1';
            $preventive_maintenance_tp_theme_css .='}';
        }

    $preventive_maintenance_header_banner_image_overlay = get_theme_mod('preventive_maintenance_header_banner_image_overlay', true);
    if($preventive_maintenance_header_banner_image_overlay == false){
        $preventive_maintenance_tp_theme_css .='.single-page-img, .featured-image{';
            $preventive_maintenance_tp_theme_css .='opacity:1;';
        $preventive_maintenance_tp_theme_css .='}';
    }

    $preventive_maintenance_header_banner_image_ooverlay_color = get_theme_mod('preventive_maintenance_header_banner_image_ooverlay_color', true);
    if($preventive_maintenance_header_banner_image_ooverlay_color != false){
        $preventive_maintenance_tp_theme_css .='.box-image-page{';
            $preventive_maintenance_tp_theme_css .='background-color: '.esc_attr($preventive_maintenance_header_banner_image_ooverlay_color).';';
        $preventive_maintenance_tp_theme_css .='}';
    }


    /*------------------ Slider CSS -------------------*/
    $preventive_maintenance_slider_opacity_setting = get_theme_mod('preventive_maintenance_slider_opacity_setting', true);
    $preventive_maintenance_image_opacity_color    = get_theme_mod('preventive_maintenance_image_opacity_color', '');
    $preventive_maintenance_slider_opacity         = get_theme_mod('preventive_maintenance_slider_opacity', '0.7');

    if ($preventive_maintenance_slider_opacity_setting) {
        // Apply opacity value to slider image
        if ($preventive_maintenance_slider_opacity !== '') {
            $preventive_maintenance_tp_theme_css .= '#slider img {';
            $preventive_maintenance_tp_theme_css .= 'opacity: ' . esc_attr($preventive_maintenance_slider_opacity) . ';';
            $preventive_maintenance_tp_theme_css .= '}';
        }

        // Apply background color to slider if defined
        if ($preventive_maintenance_image_opacity_color !== '') {
            $preventive_maintenance_tp_theme_css .= '#slider {';
            $preventive_maintenance_tp_theme_css .= 'background-color: ' . esc_attr($preventive_maintenance_image_opacity_color) . ';';
            $preventive_maintenance_tp_theme_css .= '}';
        }
    } else {
        // If setting is disabled, force full opacity
        $preventive_maintenance_tp_theme_css .= '#slider img {';
        $preventive_maintenance_tp_theme_css .= 'opacity: 0.7;';
        $preventive_maintenance_tp_theme_css .= '}';
    }

    // Slider Height
    $preventive_maintenance_slider_img_height      = get_theme_mod('preventive_maintenance_slider_img_height');
    $preventive_maintenance_slider_img_height_resp = get_theme_mod('preventive_maintenance_slider_img_height_responsive');

    // Desktop height
    $preventive_maintenance_tp_theme_css .= '@media screen and (min-width: 768px) {';
    $preventive_maintenance_tp_theme_css .= '#slider img {';
    if ( $preventive_maintenance_slider_img_height ) {
        $preventive_maintenance_tp_theme_css .= 'height: ' . esc_attr( $preventive_maintenance_slider_img_height ) . ';';
    }
    $preventive_maintenance_tp_theme_css .= 'width: 100%; object-fit: cover;';
    $preventive_maintenance_tp_theme_css .= '}';
    $preventive_maintenance_tp_theme_css .= '}';

    // Mobile height
    $preventive_maintenance_tp_theme_css .= '@media screen and (max-width: 767px) {';
    $preventive_maintenance_tp_theme_css .= '#slider img {';
    if ( $preventive_maintenance_slider_img_height_resp ) {
        $preventive_maintenance_tp_theme_css .= 'height: ' . esc_attr( $preventive_maintenance_slider_img_height_resp ) . ' !important;';
    }
    $preventive_maintenance_tp_theme_css .= 'width: 100%; object-fit: cover;';
    $preventive_maintenance_tp_theme_css .= '}';
    $preventive_maintenance_tp_theme_css .= '}';

    //First Cap ( Blog Post )
    $preventive_maintenance_show_first_caps = get_theme_mod('preventive_maintenance_show_first_caps', 'false');
    if($preventive_maintenance_show_first_caps == 'true' ){
    $preventive_maintenance_tp_theme_css .='.blog .page-box p:nth-of-type(1)::first-letter{';
    $preventive_maintenance_tp_theme_css .=' font-size: 55px; font-weight: 600;';
    $preventive_maintenance_tp_theme_css .=' margin-right: 6px;';
    $preventive_maintenance_tp_theme_css .=' line-height: 1;';
    $preventive_maintenance_tp_theme_css .='}';
    }elseif($preventive_maintenance_show_first_caps == 'false' ){
    $preventive_maintenance_tp_theme_css .='.blog .page-box p:nth-of-type(1)::first-letter {';
    $preventive_maintenance_tp_theme_css .='display: none;';
    $preventive_maintenance_tp_theme_css .='}';
    }

    // Menu hover effect
    $preventive_maintenance_menus_item = get_theme_mod( 'preventive_maintenance_menus_item_style','None');
    if($preventive_maintenance_menus_item == 'None'){
        $preventive_maintenance_tp_theme_css .='.main-navigation a:hover{';
            $preventive_maintenance_tp_theme_css .='';
        $preventive_maintenance_tp_theme_css .='}';
    }else if($preventive_maintenance_menus_item == 'Zoom In'){
        $preventive_maintenance_tp_theme_css .='.main-navigation a:hover{';
            $preventive_maintenance_tp_theme_css .='transition: all 0.3s ease-in-out !important; transform: scale(1.2) !important;';
        $preventive_maintenance_tp_theme_css .='}';
    }

    
// footer widget letter case
$preventive_maintenance_footer_widget_title_text_tranform = get_theme_mod( 'preventive_maintenance_footer_widget_title_text_tranform','');
if($preventive_maintenance_footer_widget_title_text_tranform == 'Uppercase'){
$preventive_maintenance_tp_theme_css .='#footer h2, #footer h3, #footer h1.wp-block-heading, #footer h2.wp-block-heading, #footer h3.wp-block-heading, #footer h4.wp-block-heading, #footer h5.wp-block-heading, #footer h6.wp-block-heading {';
    $preventive_maintenance_tp_theme_css .='text-transform: uppercase;';
$preventive_maintenance_tp_theme_css .='}';
}else if($preventive_maintenance_footer_widget_title_text_tranform == 'Lowercase'){
$preventive_maintenance_tp_theme_css .='#footer h2, #footer h3, #footer h1.wp-block-heading, #footer h2.wp-block-heading, #footer h3.wp-block-heading, #footer h4.wp-block-heading, #footer h5.wp-block-heading, #footer h6.wp-block-heading {';
    $preventive_maintenance_tp_theme_css .='text-transform: lowercase;';
$preventive_maintenance_tp_theme_css .='}';
}
else if($preventive_maintenance_footer_widget_title_text_tranform == 'Capitalize'){
$preventive_maintenance_tp_theme_css .='#footer h2, #footer h3, #footer h1.wp-block-heading, #footer h2.wp-block-heading, #footer h3.wp-block-heading, #footer h4.wp-block-heading, #footer h5.wp-block-heading, #footer h6.wp-block-heading {';
    $preventive_maintenance_tp_theme_css .='text-transform: capitalize;';
$preventive_maintenance_tp_theme_css .='}';
}

//Footer Font Weight
$preventive_maintenance_footer_widget_title_font_weight = get_theme_mod( 'preventive_maintenance_footer_widget_title_font_weight','');
if($preventive_maintenance_footer_widget_title_font_weight == '100'){
$preventive_maintenance_tp_theme_css .='#footer h2, #footer h3, #footer h1.wp-block-heading, #footer h2.wp-block-heading, #footer h3.wp-block-heading, #footer h4.wp-block-heading, #footer h5.wp-block-heading, #footer h6.wp-block-heading {';
    $preventive_maintenance_tp_theme_css .='font-weight: 100;';
$preventive_maintenance_tp_theme_css .='}';
}else if($preventive_maintenance_footer_widget_title_font_weight == '200'){
$preventive_maintenance_tp_theme_css .='#footer h2, #footer h3, #footer h1.wp-block-heading, #footer h2.wp-block-heading, #footer h3.wp-block-heading, #footer h4.wp-block-heading, #footer h5.wp-block-heading, #footer h6.wp-block-heading {';
    $preventive_maintenance_tp_theme_css .='font-weight: 200;';
$preventive_maintenance_tp_theme_css .='}';
}else if($preventive_maintenance_footer_widget_title_font_weight == '300'){
$preventive_maintenance_tp_theme_css .='#footer h2, #footer h3, #footer h1.wp-block-heading, #footer h2.wp-block-heading, #footer h3.wp-block-heading, #footer h4.wp-block-heading, #footer h5.wp-block-heading, #footer h6.wp-block-heading {';
    $preventive_maintenance_tp_theme_css .='font-weight: 300;';
$preventive_maintenance_tp_theme_css .='}';
}else if($preventive_maintenance_footer_widget_title_font_weight == '400'){
$preventive_maintenance_tp_theme_css .='#footer h2, #footer h3, #footer h1.wp-block-heading, #footer h2.wp-block-heading, #footer h3.wp-block-heading, #footer h4.wp-block-heading, #footer h5.wp-block-heading, #footer h6.wp-block-heading {';
    $preventive_maintenance_tp_theme_css .='font-weight: 400;';
$preventive_maintenance_tp_theme_css .='}';
}else if($preventive_maintenance_footer_widget_title_font_weight == '500'){
$preventive_maintenance_tp_theme_css .='#footer h2, #footer h3, #footer h1.wp-block-heading, #footer h2.wp-block-heading, #footer h3.wp-block-heading, #footer h4.wp-block-heading, #footer h5.wp-block-heading, #footer h6.wp-block-heading {';
    $preventive_maintenance_tp_theme_css .='font-weight: 500;';
$preventive_maintenance_tp_theme_css .='}';
}else if($preventive_maintenance_footer_widget_title_font_weight == '600'){
$preventive_maintenance_tp_theme_css .='#footer h2, #footer h3, #footer h1.wp-block-heading, #footer h2.wp-block-heading, #footer h3.wp-block-heading, #footer h4.wp-block-heading, #footer h5.wp-block-heading, #footer h6.wp-block-heading {';
    $preventive_maintenance_tp_theme_css .='font-weight: 600;';
$preventive_maintenance_tp_theme_css .='}';
}else if($preventive_maintenance_footer_widget_title_font_weight == '700'){
$preventive_maintenance_tp_theme_css .='#footer h2, #footer h3, #footer h1.wp-block-heading, #footer h2.wp-block-heading, #footer h3.wp-block-heading, #footer h4.wp-block-heading, #footer h5.wp-block-heading, #footer h6.wp-block-heading {';
    $preventive_maintenance_tp_theme_css .='font-weight: 700;';
$preventive_maintenance_tp_theme_css .='}';
}else if($preventive_maintenance_footer_widget_title_font_weight == '800'){
$preventive_maintenance_tp_theme_css .='#footer h2, #footer h3, #footer h1.wp-block-heading, #footer h2.wp-block-heading, #footer h3.wp-block-heading, #footer h4.wp-block-heading, #footer h5.wp-block-heading, #footer h6.wp-block-heading {';
    $preventive_maintenance_tp_theme_css .='font-weight: 800;';
$preventive_maintenance_tp_theme_css .='}';
}else if($preventive_maintenance_footer_widget_title_font_weight == '900'){
$preventive_maintenance_tp_theme_css .='#footer h2, #footer h3, #footer h1.wp-block-heading, #footer h2.wp-block-heading, #footer h3.wp-block-heading, #footer h4.wp-block-heading, #footer h5.wp-block-heading, #footer h6.wp-block-heading {';
    $preventive_maintenance_tp_theme_css .='font-weight: 900;';
$preventive_maintenance_tp_theme_css .='}';
}

// footer widget position
$preventive_maintenance_footer_widget_title_position = get_theme_mod( 'preventive_maintenance_footer_widget_title_position','');
if($preventive_maintenance_footer_widget_title_position == 'Right'){
$preventive_maintenance_tp_theme_css .='#footer aside.widget-area{';
$preventive_maintenance_tp_theme_css .='text-align: right;';
$preventive_maintenance_tp_theme_css .='}';
}else if($preventive_maintenance_footer_widget_title_position == 'Left'){
$preventive_maintenance_tp_theme_css .='#footer aside.widget-area{';
$preventive_maintenance_tp_theme_css .='text-align: left;';
$preventive_maintenance_tp_theme_css .='}';
}else if($preventive_maintenance_footer_widget_title_position == 'Center'){
$preventive_maintenance_tp_theme_css .='#footer aside.widget-area{';
$preventive_maintenance_tp_theme_css .='text-align: center;';
$preventive_maintenance_tp_theme_css .='}';
}

// Slider animation
$preventive_maintenance_slider_sec_animation = get_theme_mod( 'preventive_maintenance_slider_sec_animation', true );
if ( $preventive_maintenance_slider_sec_animation ) {
    $preventive_maintenance_tp_theme_css .= '#slider { animation: bounceInDown 3s; animation-fill-mode: both; }';
}

// About Section ANimation
$preventive_maintenance_about_sec_animation = get_theme_mod( 'preventive_maintenance_about_sec_animation', true );
if ( $preventive_maintenance_about_sec_animation ) {
    $preventive_maintenance_tp_theme_css .= '#about { animation: bounceInDown 3s; animation-fill-mode: both; }';
}

// footer Section ANimation
$preventive_maintenance_footer_animation = get_theme_mod( 'preventive_maintenance_footer_animation', true );
if ( $preventive_maintenance_footer_animation ) {
    $preventive_maintenance_tp_theme_css .= '#footer { animation: bounceInDown 3s; animation-fill-mode: both; }';
}

// Output the complete CSS
if ( ! empty( $preventive_maintenance_tp_theme_css ) ) {
    echo '<style id="preventive-maintenance-dynamic-css">' . $preventive_maintenance_tp_theme_css . '</style>';
}
?>