<?php
	$modern_blogger_theme_color = get_theme_mod('modern_blogger_theme_color');

	$modern_blogger_custom_css = '';

	/*------------------ Theme Color Option -----------*/
	if ($modern_blogger_theme_color) {
		$modern_blogger_custom_css .= ':root {';
		$modern_blogger_custom_css .= '--primary-color: ' . esc_attr($modern_blogger_theme_color) . ' !important;';
		$modern_blogger_custom_css .= '} ';
	}
	
	/*-------- Menu Font Size --------*/
	$modern_blogger_menu_font_size = get_theme_mod('modern_blogger_menu_font_size',13);
	if($modern_blogger_menu_font_size != false){
		$modern_blogger_custom_css .='.nav-menu ul li a{';
			$modern_blogger_custom_css .='font-size: '.esc_attr($modern_blogger_menu_font_size).'px;';
		$modern_blogger_custom_css .='}';
	}

	$modern_blogger_menu_font_weight = get_theme_mod('modern_blogger_menu_font_weight');
	$modern_blogger_custom_css .='.nav-menu ul li a{';
		$modern_blogger_custom_css .='font-weight: '.esc_attr($modern_blogger_menu_font_weight).';';
	$modern_blogger_custom_css .='}';

	// menu padding
	$modern_blogger_menu_padding = get_theme_mod('modern_blogger_menu_padding',20);
	$modern_blogger_custom_css .='.nav-menu ul li a, .sf-arrows ul .sf-with-ul, .sf-arrows .sf-with-ul{';
		$modern_blogger_custom_css .='padding: '.esc_attr($modern_blogger_menu_padding).'px;';
	$modern_blogger_custom_css .='}';

	// menu case
	$modern_blogger_menu_case = get_theme_mod('modern_blogger_menu_case', 'Uppercase');
	if($modern_blogger_menu_case == 'capitalize' ){
		$modern_blogger_custom_css .='.nav-menu ul li a{';
			$modern_blogger_custom_css .=' text-transform: capitalize;';
		$modern_blogger_custom_css .='}';
	}elseif($modern_blogger_menu_case == 'lowercase' ){
		$modern_blogger_custom_css .='.nav-menu ul li a{';
			$modern_blogger_custom_css .=' text-transform: lowercase;';
		$modern_blogger_custom_css .='}';
	}
    
	// menu hover effect
	$modern_blogger_menus_item = get_theme_mod( 'modern_blogger_menus_item_style','None');
    if($modern_blogger_menus_item == 'None'){
		$modern_blogger_custom_css .='.nav-menu ul li a{';
			$modern_blogger_custom_css .='';
		$modern_blogger_custom_css .='}';
	}else if($modern_blogger_menus_item == 'Zoom In'){
		$modern_blogger_custom_css .='.nav-menu ul li a:hover{';
			$modern_blogger_custom_css .='transition: all 0.3s ease-in-out !important; transform: scale(1.2) !important;';
		$modern_blogger_custom_css .='}';
	}else if ($modern_blogger_menus_item == 'Underline Expand') { // New Option CSS
		$modern_blogger_custom_css .= '.nav-menu ul li a { position: relative; text-decoration: none; }';
			$modern_blogger_custom_css .= '.nav-menu ul li a::after {';
		$modern_blogger_custom_css .= 'content: ""; position: absolute; left: 50%; bottom: calc(' . esc_attr($modern_blogger_menu_padding) . 'px / 2); width: 0; height: 1px; background-color: currentColor;';
			$modern_blogger_custom_css .= 'transition: width 0.3s ease, left 0.3s ease;';
		$modern_blogger_custom_css .= '}';
			$modern_blogger_custom_css .= '.nav-menu ul li a:hover::after {';
		$modern_blogger_custom_css .= 'width: 100%; left: 0;';
			$modern_blogger_custom_css .= '}';
	}			

	// menu color
	$modern_blogger_menu_color = get_theme_mod('modern_blogger_menu_color');
	$modern_blogger_custom_css .='.nav-menu a,.nav-menu .current_page_item > a, .nav-menu .current-menu-item > a, .nav-menu .current_page_ancestor > a{';
			$modern_blogger_custom_css .='color: '.esc_attr($modern_blogger_menu_color).' !important;';
	$modern_blogger_custom_css .='}';

	// menu hover color
	$modern_blogger_menu_hover_color = get_theme_mod('modern_blogger_menu_hover_color');
	$modern_blogger_custom_css .='.nav-menu a:hover, .nav-menu ul li a:hover{';
			$modern_blogger_custom_css .='color: '.esc_attr($modern_blogger_menu_hover_color).' !important;';
	$modern_blogger_custom_css .='}';

	// Submenu color
	$modern_blogger_submenu_menu_color = get_theme_mod('modern_blogger_submenu_menu_color');
	$modern_blogger_custom_css .='.nav-menu ul.sub-menu a, .nav-menu ul.sub-menu li a,.nav-menu ul.children a, .nav-menu ul.children li a{';
			$modern_blogger_custom_css .='color: '.esc_attr($modern_blogger_submenu_menu_color).' !important;';
	$modern_blogger_custom_css .='}';

	// submenu hover color
	$modern_blogger_submenu_hover_color = get_theme_mod('modern_blogger_submenu_hover_color');
	$modern_blogger_custom_css .='.nav-menu ul.sub-menu a:hover, .nav-menu ul.sub-menu li a:hover,.nav-menu ul.children a:hover, .nav-menu ul.children li a:hover{';
			$modern_blogger_custom_css .='color: '.esc_attr($modern_blogger_submenu_hover_color).' !important;';
	$modern_blogger_custom_css .='}';

	// Breadcrumb Alignmennt
	$modern_blogger_single_page_breadcrumb_alignment = get_theme_mod('modern_blogger_single_page_breadcrumb_alignment', 'Left');
	if($modern_blogger_single_page_breadcrumb_alignment == 'Center' ){
		$modern_blogger_custom_css .='.bradcrumbs{';
			$modern_blogger_custom_css .='text-align: '. $modern_blogger_single_page_breadcrumb_alignment .';';
		$modern_blogger_custom_css .='}';
	}elseif($modern_blogger_single_page_breadcrumb_alignment == 'Left' ){
		$modern_blogger_custom_css .='.bradcrumbs{';
			$modern_blogger_custom_css .=' text-align: '. $modern_blogger_single_page_breadcrumb_alignment .';';
		$modern_blogger_custom_css .='}';
	}elseif($modern_blogger_single_page_breadcrumb_alignment == 'Right' ){
		$modern_blogger_custom_css .='.bradcrumbs{';
			$modern_blogger_custom_css .='text-align: '. $modern_blogger_single_page_breadcrumb_alignment .';';
		$modern_blogger_custom_css .='}';
	}

	// Breadcrumb color option
	$modern_blogger_breadcrumb_color = get_theme_mod('modern_blogger_breadcrumb_color');
	$modern_blogger_custom_css .='.bradcrumbs a,.bradcrumbs span{';
		$modern_blogger_custom_css .='color: '.esc_attr($modern_blogger_breadcrumb_color).'!important;';
	$modern_blogger_custom_css .='}';

	// Breadcrumb bg color option
	$modern_blogger_breadcrumb_background_color = get_theme_mod('modern_blogger_breadcrumb_background_color');
	$modern_blogger_custom_css .='.bradcrumbs a,.bradcrumbs span{';
		$modern_blogger_custom_css .='background-color: '.esc_attr($modern_blogger_breadcrumb_background_color).'!important;';
	$modern_blogger_custom_css .='}';

	// Breadcrumb hover color option
	$modern_blogger_breadcrumb_hover_color = get_theme_mod('modern_blogger_breadcrumb_hover_color');
	$modern_blogger_custom_css .='.bradcrumbs a:hover{';
		$modern_blogger_custom_css .='color: '.esc_attr($modern_blogger_breadcrumb_hover_color).'!important;';
	$modern_blogger_custom_css .='}';

	// Breadcrumb hover bg color option
	$modern_blogger_breadcrumb_hover_bg_color = get_theme_mod('modern_blogger_breadcrumb_hover_bg_color');
	$modern_blogger_custom_css .='.bradcrumbs a:hover{';
		$modern_blogger_custom_css .='background-color: '.esc_attr($modern_blogger_breadcrumb_hover_bg_color).'!important;';
	$modern_blogger_custom_css .='}';

	/*--------------------------- Slider Opacity -------------------*/
	$modern_blogger_theme_lay = get_theme_mod( 'modern_blogger_slider_image_opacity','0.9');
	if($modern_blogger_theme_lay == '0'){
		$modern_blogger_custom_css .='#slider-section img{';
			$modern_blogger_custom_css .='opacity:0';
		$modern_blogger_custom_css .='}';
		}else if($modern_blogger_theme_lay == '0.1'){
		$modern_blogger_custom_css .='#slider-section img{';
			$modern_blogger_custom_css .='opacity:0.1';
		$modern_blogger_custom_css .='}';
		}else if($modern_blogger_theme_lay == '0.2'){
		$modern_blogger_custom_css .='#slider-section img{';
			$modern_blogger_custom_css .='opacity:0.2';
		$modern_blogger_custom_css .='}';
		}else if($modern_blogger_theme_lay == '0.3'){
		$modern_blogger_custom_css .='#slider-section img{';
			$modern_blogger_custom_css .='opacity:0.3';
		$modern_blogger_custom_css .='}';
		}else if($modern_blogger_theme_lay == '0.4'){
		$modern_blogger_custom_css .='#slider-section img{';
			$modern_blogger_custom_css .='opacity:0.4';
		$modern_blogger_custom_css .='}';
		}else if($modern_blogger_theme_lay == '0.5'){
		$modern_blogger_custom_css .='#slider-section img{';
			$modern_blogger_custom_css .='opacity:0.5';
		$modern_blogger_custom_css .='}';
		}else if($modern_blogger_theme_lay == '0.6'){
		$modern_blogger_custom_css .='#slider-section img{';
			$modern_blogger_custom_css .='opacity:0.6';
		$modern_blogger_custom_css .='}';
		}else if($modern_blogger_theme_lay == '0.7'){
		$modern_blogger_custom_css .='#slider-section img{';
			$modern_blogger_custom_css .='opacity:0.7';
		$modern_blogger_custom_css .='}';
		}else if($modern_blogger_theme_lay == '0.8'){
		$modern_blogger_custom_css .='#slider-section img{';
			$modern_blogger_custom_css .='opacity:0.8';
		$modern_blogger_custom_css .='}';
		}else if($modern_blogger_theme_lay == '0.9'){
		$modern_blogger_custom_css .='#slider-section img{';
			$modern_blogger_custom_css .='opacity:0.9';
		$modern_blogger_custom_css .='}';
		}

		/*----------- Slider Content Layout ----------------*/
	$modern_blogger_slider_layout = get_theme_mod( 'modern_blogger_slider_alignment_option','Left Align');
    if($modern_blogger_slider_layout == 'Left Align'){
		$modern_blogger_custom_css .='#slider-section .slider-content{';
			$modern_blogger_custom_css .='text-align:left;left: 15%;right: 50%;';
		$modern_blogger_custom_css .='}';
		$modern_blogger_custom_css .='@media screen and (min-width: 721px) and (max-width:768px){
		#slider-section .slider-content{';
			$modern_blogger_custom_css .='text-align:left;left: 18%;right: 20%;';
		$modern_blogger_custom_css .='} }';
	}else if($modern_blogger_slider_layout == 'Center Align'){
		$modern_blogger_custom_css .='#slider-section .slider-content{';
			$modern_blogger_custom_css .='text-align:center;left: 30%;right: 30%;';
		$modern_blogger_custom_css .='}';
		$modern_blogger_custom_css .='@media screen and (min-width: 721px) and (max-width:768px){
		#slider-section .slider-content{';
			$modern_blogger_custom_css .='text-align:center;left: 15%;right: 15%;';
		$modern_blogger_custom_css .='} }';
	}else if($modern_blogger_slider_layout == 'Right Align'){
		$modern_blogger_custom_css .='#slider-section .slider-content{';
			$modern_blogger_custom_css .='text-align:right;left: 50%;right: 15%;';
		$modern_blogger_custom_css .='}';
		$modern_blogger_custom_css .='@media screen and (min-width: 721px) and (max-width:768px){
		#slider-section .slider-content{';
			$modern_blogger_custom_css .='text-align:right;left: 20%;right: 18%;';
		$modern_blogger_custom_css .='} }';
	}

	// Slider Arrows hover color
	$modern_blogger_slider_arrows_hover_color = get_theme_mod('modern_blogger_slider_arrows_hover_color','var(--primary-color)');
	$modern_blogger_custom_css .='#slider-section button.owl-prev i:hover, #slider-section button.owl-next i:hover{';
			$modern_blogger_custom_css .='background-color: '.esc_attr($modern_blogger_slider_arrows_hover_color).' !important;';
	$modern_blogger_custom_css .='}';

	/*------ slider arrow hide show---------*/
	$modern_blogger_slider_arrow_hide_show = get_theme_mod('modern_blogger_slider_arrow_hide_show',true);
	if($modern_blogger_slider_arrow_hide_show == false){
		$modern_blogger_custom_css .='#slider-section button.owl-prev i, #slider-section button.owl-next i{';
			$modern_blogger_custom_css .='display: none;';
		$modern_blogger_custom_css .='}';
	}

	// slider overlay
	$modern_blogger_slider_overlay = get_theme_mod('modern_blogger_slider_overlay', true);
	if($modern_blogger_slider_overlay == false){
		$modern_blogger_custom_css .='#slider-section img{';
			$modern_blogger_custom_css .='opacity:1;';
		$modern_blogger_custom_css .='}';
	} 

	$modern_blogger_slider_image_overlay_color = get_theme_mod('modern_blogger_slider_image_overlay_color', true);
	if($modern_blogger_slider_overlay != false){
		$modern_blogger_custom_css .='.slider-box{';
			$modern_blogger_custom_css .='background-color: '.esc_attr($modern_blogger_slider_image_overlay_color).'!important;';
		$modern_blogger_custom_css .='}';
	}	

	// Slider Button color
	$modern_blogger_slider_btn_color = get_theme_mod('modern_blogger_slider_btn_color','#fff');
	$modern_blogger_custom_css .='.slider-content .read-more{';
			$modern_blogger_custom_css .='color: '.esc_attr($modern_blogger_slider_btn_color).' !important;';
	$modern_blogger_custom_css .='}';

	// Slider button lable hover color
	$modern_blogger_slider_btn_lable_hover_color = get_theme_mod('modern_blogger_slider_btn_lable_hover_color','var(--primary-color)');
	$modern_blogger_custom_css .='.slider-content .read-more:hover{';
			$modern_blogger_custom_css .='color: '.esc_attr($modern_blogger_slider_btn_lable_hover_color).' !important;';
	$modern_blogger_custom_css .='}';

	/*---- Slider Height ------*/
	$modern_blogger_slider_height = get_theme_mod('modern_blogger_slider_height');
	$modern_blogger_custom_css .='#slider-section img{';
		$modern_blogger_custom_css .='height: '.esc_attr($modern_blogger_slider_height).'px;';
	$modern_blogger_custom_css .='}';
	$modern_blogger_custom_css .='@media screen and (max-width: 768px){
		#slider-section img{';
		$modern_blogger_custom_css .='height: auto;';
	$modern_blogger_custom_css .='} }';

	// Layout Options
	$modern_blogger_theme_layout = get_theme_mod( 'modern_blogger_theme_layout_options','Default Theme');
    if($modern_blogger_theme_layout == 'Default Theme'){
		$modern_blogger_custom_css .='body{';
			$modern_blogger_custom_css .='max-width: 100%;';
		$modern_blogger_custom_css .='}';
	}else if($modern_blogger_theme_layout == 'Container Theme'){
		$modern_blogger_custom_css .='body{';
			$modern_blogger_custom_css .='width: 100%;padding-right: 15px;padding-left: 15px;margin-right: auto;margin-left: auto;';
		$modern_blogger_custom_css .='}';
	}else if($modern_blogger_theme_layout == 'Box Container Theme'){
		$modern_blogger_custom_css .='body{';
			$modern_blogger_custom_css .='max-width: 1140px; width: 100%; padding-right: 15px; padding-left: 15px; margin-right: auto; margin-left: auto;';
		$modern_blogger_custom_css .='}';
	}

	/*-------- Blog Post Alignment ------*/
	$modern_blogger_post_alignment = get_theme_mod('modern_blogger_blog_post_alignment', 'center');
	if($modern_blogger_post_alignment == 'left' ){
		$modern_blogger_custom_css .='.blog-sec, .blog-sec h2, .post-info, .blog-sec .blogbtn{';
			$modern_blogger_custom_css .=' text-align: '. $modern_blogger_post_alignment .'!important;';
		$modern_blogger_custom_css .='}';
	}elseif($modern_blogger_post_alignment == 'right' ){
		$modern_blogger_custom_css .='.blog-sec, .blog-sec h2, .post-info, .blog-sec .blogbtn{';
			$modern_blogger_custom_css .='text-align: '. $modern_blogger_post_alignment .'!important;';
		$modern_blogger_custom_css .='}';
	}	

	//Blog Post Initial Cap
	$modern_blogger_initial_caps_enable = get_theme_mod('modern_blogger_initial_caps_enable', 'false');
	if($modern_blogger_initial_caps_enable == 'true' ){
		$modern_blogger_custom_css .='.blogger .entry-content p:nth-of-type(1)::first-letter,.blogger p:nth-of-type(1)::first-letter{';
			$modern_blogger_custom_css .=' font-size: 60px!important; font-weight: 800!important;';
		$modern_blogger_custom_css .=' margin-right: 4px; text-transform: uppercase;';
			$modern_blogger_custom_css .=' font-family: "Vollkorn", serif!important;';
		$modern_blogger_custom_css .='}';
	}elseif($modern_blogger_initial_caps_enable == 'false' ){
		$modern_blogger_custom_css .='.blogger .entry-content p:nth-of-type(1)::first-letter,.blogger p:nth-of-type(1)::first-letter{';
			$modern_blogger_custom_css .='display: none!important;';
		$modern_blogger_custom_css .='}';
	}

	// Metabox Seperator Blog Post
	$modern_blogger_metabox_seperator = get_theme_mod('modern_blogger_metabox_seperator','|');
	if($modern_blogger_metabox_seperator != '' ){
		$modern_blogger_custom_css .='#blog_post .blog-sec  .post-info span:after{';
			$modern_blogger_custom_css .=' content: "'.esc_attr($modern_blogger_metabox_seperator).'"; padding-left:10px;';
		$modern_blogger_custom_css .='}';
		$modern_blogger_custom_css .='#blog_post .blog-sec  .post-info span:last-child:after{';
			$modern_blogger_custom_css .=' content: none;';
		$modern_blogger_custom_css .='}';
	}	

	// Metabox Seperator Single post
	$modern_blogger_single_post_metabox_seperator = get_theme_mod('modern_blogger_single_post_metabox_seperator','|');
	if($modern_blogger_single_post_metabox_seperator != '' ){
		$modern_blogger_custom_css .='.post-info span:after{';
			$modern_blogger_custom_css .=' content: "'.esc_attr($modern_blogger_single_post_metabox_seperator).'"; padding-left:10px;';
		$modern_blogger_custom_css .='}';
		$modern_blogger_custom_css .='.post-info span:last-child:after{';
			$modern_blogger_custom_css .=' content: none;';
		$modern_blogger_custom_css .='}';
	}

	// Metabox Seperator Grid post
	$modern_blogger_grid_post_metabox_seperator = get_theme_mod('modern_blogger_grid_post_metabox_seperator','|');
	if($modern_blogger_grid_post_metabox_seperator != '' ){
		$modern_blogger_custom_css .='.grid-post-info span:after{';
			$modern_blogger_custom_css .=' content: "'.esc_attr($modern_blogger_grid_post_metabox_seperator).'"; padding-left:10px;';
		$modern_blogger_custom_css .='}';
		$modern_blogger_custom_css .='.grid-post-info span:last-child:after{';
			$modern_blogger_custom_css .=' content: none;';
		$modern_blogger_custom_css .='}';
	}
	
	// Single post image border radious
	$modern_blogger_single_post_img_border_radius = get_theme_mod('modern_blogger_single_post_img_border_radius', 0);
	$modern_blogger_custom_css .='.feature-box img{';
		$modern_blogger_custom_css .='border-radius: '.esc_attr($modern_blogger_single_post_img_border_radius).'px;';
	$modern_blogger_custom_css .='}';

	// Single post image box shadow
	$modern_blogger_single_post_img_box_shadow = get_theme_mod('modern_blogger_single_post_img_box_shadow',0);
	$modern_blogger_custom_css .='.feature-box img{';
		$modern_blogger_custom_css .='box-shadow: '.esc_attr($modern_blogger_single_post_img_box_shadow).'px '.esc_attr($modern_blogger_single_post_img_box_shadow).'px '.esc_attr($modern_blogger_single_post_img_box_shadow).'px #ccc;';
	$modern_blogger_custom_css .='}';

	// single post image dimention
	$modern_blogger_single_post_image_dimension = get_theme_mod('modern_blogger_single_post_image_dimension', 'default');
	$modern_blogger_single_post_image_custom_width = get_theme_mod('modern_blogger_single_post_image_custom_width',400);
	$modern_blogger_single_post_image_custom_height = get_theme_mod('modern_blogger_single_post_image_custom_height',400);
	if($modern_blogger_single_post_image_dimension == 'custom'){
		$modern_blogger_custom_css .='.singlepost-page .feature-box img{';
			$modern_blogger_custom_css .='width: '.esc_attr($modern_blogger_single_post_image_custom_width).'px; height: '.esc_attr($modern_blogger_single_post_image_custom_height).'px;';
		$modern_blogger_custom_css .='}';
	}

	/*--------- Preloader Color Option -------*/
	$modern_blogger_preloader_color = get_theme_mod('modern_blogger_preloader_color');

	if($modern_blogger_preloader_color != false){
		$modern_blogger_custom_css .=' .tg-loader{';
			$modern_blogger_custom_css .='border-color: '.esc_attr($modern_blogger_preloader_color).';';
		$modern_blogger_custom_css .='} ';
		$modern_blogger_custom_css .=' .tg-loader-inner, .preloader .preloader-container .animated-preloader, .preloader .preloader-container .animated-preloader:before{';
			$modern_blogger_custom_css .='background-color: '.esc_attr($modern_blogger_preloader_color).';';
		$modern_blogger_custom_css .='} ';
	}

	$modern_blogger_preloader_bg_color = get_theme_mod('modern_blogger_preloader_bg_color');

	if($modern_blogger_preloader_bg_color != false){
		$modern_blogger_custom_css .=' #overlayer, .preloader{';
			$modern_blogger_custom_css .='background-color: '.esc_attr($modern_blogger_preloader_bg_color).';';
		$modern_blogger_custom_css .='} ';
	}

	$modern_blogger_preloader_bg_img = get_theme_mod('modern_blogger_preloader_bg_img');
	if($modern_blogger_preloader_bg_img != false){
		$modern_blogger_custom_css .=' #overlayer, .preloader{';
			$modern_blogger_custom_css .='background: url('.esc_attr($modern_blogger_preloader_bg_img).');-webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover;';
		$modern_blogger_custom_css .='}';
	}

	/*------------ Button Settings option-----------------*/

	$modern_blogger_top_button_padding = get_theme_mod('modern_blogger_top_button_padding');
	$modern_blogger_bottom_button_padding = get_theme_mod('modern_blogger_bottom_button_padding');
	$modern_blogger_left_button_padding = get_theme_mod('modern_blogger_left_button_padding');
	$modern_blogger_right_button_padding = get_theme_mod('modern_blogger_right_button_padding');
	if($modern_blogger_top_button_padding != false || $modern_blogger_bottom_button_padding != false || $modern_blogger_left_button_padding != false || $modern_blogger_right_button_padding != false){
		$modern_blogger_custom_css .='.blogbtn a, .read-more a, #comments input[type="submit"].submit{';
			$modern_blogger_custom_css .='padding-top: '.esc_attr($modern_blogger_top_button_padding).'px; padding-bottom: '.esc_attr($modern_blogger_bottom_button_padding).'px; padding-left: '.esc_attr($modern_blogger_left_button_padding).'px; padding-right: '.esc_attr($modern_blogger_right_button_padding).'px; display:inline-block;';
		$modern_blogger_custom_css .='}';
	}

	$modern_blogger_button_border_radius = get_theme_mod('modern_blogger_button_border_radius');
	$modern_blogger_custom_css .='.blogbtn a, .read-more a, #comments input[type="submit"].submit{';
		$modern_blogger_custom_css .='border-radius: '.esc_attr($modern_blogger_button_border_radius).'px;';
	$modern_blogger_custom_css .='}';

	// button font weight
	$modern_blogger_button_font_weight = get_theme_mod('modern_blogger_button_font_weight', '500');
  	$modern_blogger_custom_css .='.blogbtn a{';
    $modern_blogger_custom_css .='font-weight: '.esc_attr($modern_blogger_button_font_weight).';';
  	$modern_blogger_custom_css .='}';


  	// button text transform
  	$modern_blogger_button_text_transform = get_theme_mod('modern_blogger_button_text_transform', 'Uppercase');
  	if($modern_blogger_button_text_transform == 'capitalize' ){
    	$modern_blogger_custom_css .='.blogbtn a{';
      	$modern_blogger_custom_css .=' text-transform: capitalize;';
    	$modern_blogger_custom_css .='}';
  	}elseif($modern_blogger_button_text_transform == 'lowercase' ){
    	$modern_blogger_custom_css .='.blogbtn a{';
      	$modern_blogger_custom_css .=' text-transform: lowercase;';
    	$modern_blogger_custom_css .='}';
  	}

	// Button letter spacing
	$modern_blogger_button_letter_spacing = get_theme_mod('modern_blogger_button_letter_spacing', '0');
	$modern_blogger_custom_css .='.blogbtn a{';
		$modern_blogger_custom_css .='letter-spacing: '.esc_attr($modern_blogger_button_letter_spacing).'px;';
	$modern_blogger_custom_css .='}';

	//Button hover effect
	$modern_blogger_button_hover_effect = get_theme_mod('modern_blogger_button_hover_effect', 'disable');
	if ($modern_blogger_button_hover_effect !== 'disable') {
		$modern_blogger_custom_css .= '.blogbtn a:hover {';
		switch ($modern_blogger_button_hover_effect) {
			case 'pulse':
				$modern_blogger_custom_css .= 'animation: pulse 0.5s ease-in-out;';
				break;
			case 'rubberBand':
				$modern_blogger_custom_css .= 'animation: rubberBand 0.5s ease-in-out;';
				break;
			case 'swing':
				$modern_blogger_custom_css .= 'animation: swing 0.5s ease-in-out;';
				break;
			case 'tada':
				$modern_blogger_custom_css .= 'animation: tada 0.5s ease-in-out;';
				break;
			case 'jello':
				$modern_blogger_custom_css .= 'animation: jello 0.5s ease-in-out;';
				break;
		}
		$modern_blogger_custom_css .= '}';
	}

	// sticky sidebar
	$modern_blogger_sticky_sidebar = get_theme_mod('modern_blogger_sticky_sidebar');
	if ( $modern_blogger_sticky_sidebar ) {
		$modern_blogger_custom_css .= '#sidebar {';
			$modern_blogger_custom_css .= 'position: sticky;';
			$modern_blogger_custom_css .= 'top: 25px;';
			$modern_blogger_custom_css .= 'align-self: start;';
		$modern_blogger_custom_css .= '}';
	}

	//keyframes for all animations
	$modern_blogger_custom_css .= '
	@keyframes pulse {
		0% { transform: scale(1); }
		50% { transform: scale(1.1); }
		100% { transform: scale(1); }
	}

	@keyframes rubberBand {
		0% { transform: scale(1); }
		30% { transform: scaleX(1.25) scaleY(0.75); }
		40% { transform: scaleX(0.75) scaleY(1.25); }
		50% { transform: scale(1); }
	}

	@keyframes swing {
		20% { transform: rotate(15deg); }
		40% { transform: rotate(-10deg); }
		60% { transform: rotate(5deg); }
		80% { transform: rotate(-5deg); }
		100% { transform: rotate(0deg); }
	}

	@keyframes tada {
		0% { transform: scale(1); }
		10%, 20% { transform: scale(0.9) rotate(-3deg); }
		30%, 50%, 70%, 90% { transform: scale(1.1) rotate(3deg); }
		40%, 60%, 80% { transform: scale(1.1) rotate(-3deg); }
		100% { transform: scale(1) rotate(0); }
	}

	@keyframes jello {
		0%, 11.1%, 100% { transform: none; }
		22.2% { transform: skewX(-12.5deg) skewY(-12.5deg); }
		33.3% { transform: skewX(6.25deg) skewY(6.25deg); }
		44.4% { transform: skewX(-3.125deg) skewY(-3.125deg); }
		55.5% { transform: skewX(1.5625deg) skewY(1.5625deg); }
		66.6% { transform: skewX(-0.78125deg) skewY(-0.78125deg); }
		77.7% { transform: skewX(0.390625deg) skewY(0.390625deg); }
		88.8% { transform: skewX(-0.1953125deg) skewY(-0.1953125deg); }
	}';

  	// widgets heading font size
	$modern_blogger_widgets_heading_fontsize = get_theme_mod('modern_blogger_widgets_heading_fontsize',25);
	if($modern_blogger_widgets_heading_fontsize != false){
		$modern_blogger_custom_css .='#footer h3, #footer h2, #footer .wp-block-search__label{';
			$modern_blogger_custom_css .='font-size: '.esc_attr($modern_blogger_widgets_heading_fontsize).'px; ';
		$modern_blogger_custom_css .='}';
	}

	// widgets heading font weight
	$modern_blogger_widgets_heading_font_weight = get_theme_mod('modern_blogger_widgets_heading_font_weight', '600');
  	$modern_blogger_custom_css .='#footer h3, #footer h2, #footer .wp-block-search__label{';
    $modern_blogger_custom_css .='font-weight: '.esc_attr($modern_blogger_widgets_heading_font_weight).';';
  	$modern_blogger_custom_css .='}';

	/*----------- Footer widgets heading alignment -----*/
	$modern_blogger_footer_widgets_heading = get_theme_mod( 'modern_blogger_footer_widgets_heading','Left');
    if($modern_blogger_footer_widgets_heading == 'Left'){
		$modern_blogger_custom_css .='#footer h3{';
		$modern_blogger_custom_css .='text-align: left;';
		$modern_blogger_custom_css .='}';
	}else if($modern_blogger_footer_widgets_heading == 'Center'){
		$modern_blogger_custom_css .='#footer h3{';
			$modern_blogger_custom_css .='text-align: center;';
		$modern_blogger_custom_css .='}';
	}else if($modern_blogger_footer_widgets_heading == 'Right'){
		$modern_blogger_custom_css .='#footer h3{';
			$modern_blogger_custom_css .='text-align: right;';
		$modern_blogger_custom_css .='}';
	}

	$modern_blogger_footer_widgets_content = get_theme_mod( 'modern_blogger_footer_widgets_content','Left');
    if($modern_blogger_footer_widgets_content == 'Left'){
		$modern_blogger_custom_css .='#footer .widget ul{';
		$modern_blogger_custom_css .='text-align: left;';
		$modern_blogger_custom_css .='}';
	}else if($modern_blogger_footer_widgets_content == 'Center'){
		$modern_blogger_custom_css .='#footer .widget ul{';
			$modern_blogger_custom_css .='text-align: center;';
		$modern_blogger_custom_css .='}';
	}else if($modern_blogger_footer_widgets_content == 'Right'){
		$modern_blogger_custom_css .='#footer .widget ul{';
			$modern_blogger_custom_css .='text-align: right;';
		$modern_blogger_custom_css .='}';
	}
   
	// Footer Heading Text Transform

	$modern_blogger_theme_lay = get_theme_mod( 'modern_blogger_footer_text_tranform','Capitalize');
    if($modern_blogger_theme_lay == 'Uppercase'){
		$modern_blogger_custom_css .='#footer h3{';
			$modern_blogger_custom_css .='text-transform: Uppercase;';
		$modern_blogger_custom_css .='}';
	}else if($modern_blogger_theme_lay == 'Lowercase'){
		$modern_blogger_custom_css .='#footer h3{';
			$modern_blogger_custom_css .='text-transform: Lowercase;';
		$modern_blogger_custom_css .='}';
	}
	else if($modern_blogger_theme_lay == 'Capitalize'){
		$modern_blogger_custom_css .='#footer h3{';
			$modern_blogger_custom_css .='text-transform: Capitalize;';
		$modern_blogger_custom_css .='}';
	}	

	// Footer Heading  letter spacing
	$modern_blogger_widgets_heading_letter_spacing = get_theme_mod('modern_blogger_widgets_heading_letter_spacing','');
	$modern_blogger_custom_css .='#footer h3{';
	$modern_blogger_custom_css .='letter-spacing: '.esc_attr($modern_blogger_widgets_heading_letter_spacing).'px;';
	$modern_blogger_custom_css .='}';	

	/*----------- Copyright css -----*/

	$modern_blogger_copyright_color = get_theme_mod('modern_blogger_copyright_color');
	$modern_blogger_custom_css .='#footer .copyright p,#footer .copyright a{';
		$modern_blogger_custom_css .='color: '.esc_attr($modern_blogger_copyright_color).'!important;';
	$modern_blogger_custom_css .='}';

	
	$modern_blogger_copyright_top_padding = get_theme_mod('modern_blogger_top_copyright_padding');
	$modern_blogger_copyright_bottom_padding = get_theme_mod('modern_blogger_bottom_copyright_padding');
	if($modern_blogger_copyright_top_padding != '' || $modern_blogger_copyright_bottom_padding != ''){
		$modern_blogger_custom_css .='.inner{';
			$modern_blogger_custom_css .='padding-top: '.esc_attr($modern_blogger_copyright_top_padding).'px; padding-bottom: '.esc_attr($modern_blogger_copyright_bottom_padding).'px; ';
		$modern_blogger_custom_css .='}';
	}

	$modern_blogger_copyright_alignment = get_theme_mod('modern_blogger_copyright_alignment', 'center');
	if($modern_blogger_copyright_alignment == 'center' ){
		$modern_blogger_custom_css .='#footer .copyright p{';
			$modern_blogger_custom_css .='text-align: '. $modern_blogger_copyright_alignment .';';
		$modern_blogger_custom_css .='}';
	}elseif($modern_blogger_copyright_alignment == 'left' ){
		$modern_blogger_custom_css .='#footer .copyright p{';
			$modern_blogger_custom_css .=' text-align: '. $modern_blogger_copyright_alignment .';';
		$modern_blogger_custom_css .='}';
	}elseif($modern_blogger_copyright_alignment == 'right' ){
		$modern_blogger_custom_css .='#footer .copyright p{';
			$modern_blogger_custom_css .='text-align: '. $modern_blogger_copyright_alignment .';';
		$modern_blogger_custom_css .='}';
	}

	$modern_blogger_copyright_font_size = get_theme_mod('modern_blogger_copyright_font_size');
	$modern_blogger_custom_css .='#footer .copyright p{';
		$modern_blogger_custom_css .='font-size: '.esc_attr($modern_blogger_copyright_font_size).'px;';
	$modern_blogger_custom_css .='}';

	$modern_blogger_back_to_top_color = get_theme_mod('modern_blogger_back_to_top_color');
	$modern_blogger_custom_css .='.back-to-top{';
		$modern_blogger_custom_css .='background-color: '.esc_attr($modern_blogger_back_to_top_color).'!important;';
	$modern_blogger_custom_css .='}';
		$modern_blogger_back_to_top_color = get_theme_mod('modern_blogger_back_to_top_color');
	$modern_blogger_custom_css .='.back-to-top::before{';
		$modern_blogger_custom_css .='border-bottom-color: '.esc_attr($modern_blogger_back_to_top_color).'!important;';
	$modern_blogger_custom_css .='}';

	$modern_blogger_back_to_top_text_color = get_theme_mod('modern_blogger_back_to_top_text_color');
	$modern_blogger_custom_css .='.back-to-top{';
		$modern_blogger_custom_css .='color: '.esc_attr($modern_blogger_back_to_top_text_color).'!important;';
	$modern_blogger_custom_css .='}';	

	// back to top icon hover color
	$modern_blogger_scroll_icon_hover_color = get_theme_mod('modern_blogger_scroll_icon_hover_color');
	$modern_blogger_custom_css .='.back-to-top:hover{';
		$modern_blogger_custom_css .='background-color: '.esc_attr($modern_blogger_scroll_icon_hover_color). ' !important;';
	$modern_blogger_custom_css .='}';
		$modern_blogger_scroll_icon_hover_color = get_theme_mod('modern_blogger_scroll_icon_hover_color');
	$modern_blogger_custom_css .='.back-to-top:hover::before{';
		$modern_blogger_custom_css .='border-bottom-color: '.esc_attr($modern_blogger_scroll_icon_hover_color).'!important;';
	$modern_blogger_custom_css .='}';

	/*------ Topbar padding ------*/
	$modern_blogger_top_topbar_padding = get_theme_mod('modern_blogger_top_topbar_padding');
	$modern_blogger_bottom_topbar_padding = get_theme_mod('modern_blogger_bottom_topbar_padding');
	if($modern_blogger_top_topbar_padding != false || $modern_blogger_bottom_topbar_padding != false){
		$modern_blogger_custom_css .='.top-bar, .page-template-custom-front-page .top-bar{';
			$modern_blogger_custom_css .='padding-top: '.esc_attr($modern_blogger_top_topbar_padding).'px !important; padding-bottom: '.esc_attr($modern_blogger_bottom_topbar_padding).'px !important; ';
		$modern_blogger_custom_css .='}';
	}

	/*------ Woocommerce ----*/
	$modern_blogger_product_border = get_theme_mod('modern_blogger_product_border',true);

	if($modern_blogger_product_border == false){
		$modern_blogger_custom_css .='.woocommerce ul.products li.product, .woocommerce-page ul.products li.product{';
			$modern_blogger_custom_css .='border: 0;';
		$modern_blogger_custom_css .='}';
	}

	$modern_blogger_product_top = get_theme_mod('modern_blogger_product_top_padding',10);
	$modern_blogger_product_bottom = get_theme_mod('modern_blogger_product_bottom_padding',10);
	$modern_blogger_product_left = get_theme_mod('modern_blogger_product_left_padding',10);
	$modern_blogger_product_right = get_theme_mod('modern_blogger_product_right_padding',10);
	if($modern_blogger_product_top != false || $modern_blogger_product_bottom != false || $modern_blogger_product_left != false || $modern_blogger_product_right != false){
		$modern_blogger_custom_css .='.woocommerce ul.products li.product, .woocommerce-page ul.products li.product{';
			$modern_blogger_custom_css .='padding-top: '.esc_attr($modern_blogger_product_top).'px; padding-bottom: '.esc_attr($modern_blogger_product_bottom).'px; padding-left: '.esc_attr($modern_blogger_product_left).'px; padding-right: '.esc_attr($modern_blogger_product_right).'px;';
		$modern_blogger_custom_css .='}';
	}

	$modern_blogger_product_border_radius = get_theme_mod('modern_blogger_product_border_radius');
	if($modern_blogger_product_border_radius != false){
		$modern_blogger_custom_css .='.woocommerce ul.products li.product, .woocommerce-page ul.products li.product{';
			$modern_blogger_custom_css .='border-radius: '.esc_attr($modern_blogger_product_border_radius).'px;';
		$modern_blogger_custom_css .='}';
	}

	$modern_blogger_product_box_shadow = get_theme_mod('modern_blogger_product_box_shadow','0');
	$modern_blogger_custom_css .='.woocommerce ul.products li.product, .woocommerce-page ul.products li.product{';
		$modern_blogger_custom_css .='box-shadow: '.esc_attr($modern_blogger_product_box_shadow).'px '.esc_attr($modern_blogger_product_box_shadow).'px '.esc_attr($modern_blogger_product_box_shadow).'px #eee;';
	$modern_blogger_custom_css .='}';	

	/*----- WooCommerce button css --------*/
	$modern_blogger_product_button_top = get_theme_mod('modern_blogger_product_button_top_padding',10);
	$modern_blogger_product_button_bottom = get_theme_mod('modern_blogger_product_button_bottom_padding',10);
	$modern_blogger_product_button_left = get_theme_mod('modern_blogger_product_button_left_padding',12);
	$modern_blogger_product_button_right = get_theme_mod('modern_blogger_product_button_right_padding',12);
	if($modern_blogger_product_button_top != false || $modern_blogger_product_button_bottom != false || $modern_blogger_product_button_left != false || $modern_blogger_product_button_right != false){
		$modern_blogger_custom_css .='.woocommerce ul.products li.product .button, .woocommerce div.product form.cart .button, a.button.wc-forward, .woocommerce .cart .button, .woocommerce .cart input.button, .woocommerce #payment #place_order, .woocommerce-page #payment #place_order, button.woocommerce-button.button.woocommerce-form-login__submit, .woocommerce button.button:disabled, .woocommerce button.button:disabled[disabled]{';
			$modern_blogger_custom_css .='padding-top: '.esc_attr($modern_blogger_product_button_top).'px; padding-bottom: '.esc_attr($modern_blogger_product_button_bottom).'px; padding-left: '.esc_attr($modern_blogger_product_button_left).'px; padding-right: '.esc_attr($modern_blogger_product_button_right).'px;';
		$modern_blogger_custom_css .='}';
	}

	$modern_blogger_product_button_border_radius = get_theme_mod('modern_blogger_product_button_border_radius');
	if($modern_blogger_product_button_border_radius != false){
		$modern_blogger_custom_css .='.woocommerce ul.products li.product .button, .woocommerce div.product form.cart .button, a.button.wc-forward, .woocommerce .cart .button, .woocommerce .cart input.button, a.checkout-button.button.alt.wc-forward, .woocommerce #payment #place_order, .woocommerce-page #payment #place_order, button.woocommerce-button.button.woocommerce-form-login__submit{';
			$modern_blogger_custom_css .='border-radius: '.esc_attr($modern_blogger_product_button_border_radius).'px;';
		$modern_blogger_custom_css .='}';
	}

	/*----- WooCommerce product sale css --------*/
	$modern_blogger_product_sale_top = get_theme_mod('modern_blogger_product_sale_top_padding');
	$modern_blogger_product_sale_bottom = get_theme_mod('modern_blogger_product_sale_bottom_padding');
	$modern_blogger_product_sale_left = get_theme_mod('modern_blogger_product_sale_left_padding');
	$modern_blogger_product_sale_right = get_theme_mod('modern_blogger_product_sale_right_padding');
	if($modern_blogger_product_sale_top != false || $modern_blogger_product_sale_bottom != false || $modern_blogger_product_sale_left != false || $modern_blogger_product_sale_right != false){
		$modern_blogger_custom_css .='.woocommerce span.onsale {';
			$modern_blogger_custom_css .='padding-top: '.esc_attr($modern_blogger_product_sale_top).'px; padding-bottom: '.esc_attr($modern_blogger_product_sale_bottom).'px; padding-left: '.esc_attr($modern_blogger_product_sale_left).'px; padding-right: '.esc_attr($modern_blogger_product_sale_right).'px;';
		$modern_blogger_custom_css .='}';
	}

	$modern_blogger_product_sale_border_radius = get_theme_mod('modern_blogger_product_sale_border_radius',0);
	if($modern_blogger_product_sale_border_radius != false){
		$modern_blogger_custom_css .='.woocommerce span.onsale {';
			$modern_blogger_custom_css .='border-radius: '.esc_attr($modern_blogger_product_sale_border_radius).'px;';
		$modern_blogger_custom_css .='}';
	}

	$modern_blogger_menu_case = get_theme_mod('modern_blogger_product_sale_position', 'Right');
	if($modern_blogger_menu_case == 'Right' ){
		$modern_blogger_custom_css .='.woocommerce ul.products li.product .onsale{';
			$modern_blogger_custom_css .=' left:auto; right:0;';
		$modern_blogger_custom_css .='}';
	}elseif($modern_blogger_menu_case == 'Left' ){
		$modern_blogger_custom_css .='.woocommerce ul.products li.product .onsale{';
			$modern_blogger_custom_css .=' left:-10px; right:auto;';
		$modern_blogger_custom_css .='}';
	}

	$modern_blogger_product_sale_font_size = get_theme_mod('modern_blogger_product_sale_font_size',13);
	$modern_blogger_custom_css .='.woocommerce span.onsale {';
		$modern_blogger_custom_css .='font-size: '.esc_attr($modern_blogger_product_sale_font_size).'px;';
	$modern_blogger_custom_css .='}';


	/*---- Comment form ----*/
	$modern_blogger_comment_width = get_theme_mod('modern_blogger_comment_width', '100');
	$modern_blogger_custom_css .='#comments textarea{';
		$modern_blogger_custom_css .=' width:'.esc_attr($modern_blogger_comment_width).'%;';
	$modern_blogger_custom_css .='}';

	$modern_blogger_comment_submit_text = get_theme_mod('modern_blogger_comment_submit_text', 'Post Comment');
	if($modern_blogger_comment_submit_text == ''){
		$modern_blogger_custom_css .='#comments p.form-submit {';
			$modern_blogger_custom_css .='display: none;';
		$modern_blogger_custom_css .='}';
	}

	$modern_blogger_comment_title = get_theme_mod('modern_blogger_comment_title', 'Leave a Reply');
	if($modern_blogger_comment_title == ''){
		$modern_blogger_custom_css .='#comments h2#reply-title {';
			$modern_blogger_custom_css .='display: none;';
		$modern_blogger_custom_css .='}';
	}

	/*------ Footer background css -------*/
	$modern_blogger_footer_bg_color = get_theme_mod('modern_blogger_footer_bg_color');
	if($modern_blogger_footer_bg_color != false){
		$modern_blogger_custom_css .='.footerinner{';
			$modern_blogger_custom_css .='background-color: '.esc_attr($modern_blogger_footer_bg_color).';';
		$modern_blogger_custom_css .='}';
	}

	$modern_blogger_footer_bg_image = get_theme_mod('modern_blogger_footer_bg_image');
	if($modern_blogger_footer_bg_image != false){
		$modern_blogger_custom_css .='.footerinner{';
			$modern_blogger_custom_css .='background: url('.esc_attr($modern_blogger_footer_bg_image).'); background-size: cover;';
		$modern_blogger_custom_css .='}';
	}

	//footer icon color
	$modern_blogger_footer_icon_color = get_theme_mod('modern_blogger_footer_icon_color', '#fff');
	$modern_blogger_custom_css .='#footer .copyright a i{';
		$modern_blogger_custom_css .='color: '.esc_attr($modern_blogger_footer_icon_color).'!important;';
	$modern_blogger_custom_css .='}';	

	/*-------- Footer Icon Alignment ------*/
	$modern_blogger_footer_icon_alignment = get_theme_mod('modern_blogger_footer_icon_alignment', 'Center');
	if($modern_blogger_footer_icon_alignment == 'Center' ){
		$modern_blogger_custom_css .='#footer .copyright{';
			$modern_blogger_custom_css .='text-align: '. $modern_blogger_footer_icon_alignment .';';
		$modern_blogger_custom_css .='}';
	}elseif($modern_blogger_footer_icon_alignment == 'Left' ){
		$modern_blogger_custom_css .='#footer .copyright{';
			$modern_blogger_custom_css .=' text-align: '. $modern_blogger_footer_icon_alignment .';';
		$modern_blogger_custom_css .='}';
	}elseif($modern_blogger_footer_icon_alignment == 'Right' ){
		$modern_blogger_custom_css .='#footer .copyright{';
			$modern_blogger_custom_css .='text-align: '. $modern_blogger_footer_icon_alignment .';';
		$modern_blogger_custom_css .='}';
	}

	//Footer Social Icon Font size
	$modern_blogger_footer_icon_font_size = get_theme_mod('modern_blogger_footer_icon_font_size');
	$modern_blogger_custom_css .='#footer .copyright a i{';
	$modern_blogger_custom_css .='font-size: '.esc_attr($modern_blogger_footer_icon_font_size).'px;';
	$modern_blogger_custom_css .='}';

    // footer image position
	$modern_blogger_footer_img_position = get_theme_mod('modern_blogger_footer_img_position','center center');
	if($modern_blogger_footer_img_position != false){
		$modern_blogger_custom_css .='.footerinner{';
			$modern_blogger_custom_css .='background-position: '.esc_attr($modern_blogger_footer_img_position).'!important;';
		$modern_blogger_custom_css .='}';
	}	

	// Footer Attatchment
	$modern_blogger_theme_lay = get_theme_mod( 'modern_blogger_footer_attatchment','scroll');
	if($modern_blogger_theme_lay == 'fixed'){
		$modern_blogger_custom_css .='.footerinner{';
			$modern_blogger_custom_css .='background-attachment: fixed;';
		$modern_blogger_custom_css .='}';
	}elseif ($modern_blogger_theme_lay == 'scroll'){
		$modern_blogger_custom_css .='.footerinner{';
			$modern_blogger_custom_css .='background-attachment: scroll;';
		$modern_blogger_custom_css .='}';
	}	

/*---------------------------Footer top bottom padding -------------------*/

	$modern_blogger_footer_padding = get_theme_mod('modern_blogger_footer_padding');
	if($modern_blogger_footer_padding != false){
		$modern_blogger_custom_css .='#footer .footerinner{';
			$modern_blogger_custom_css .='padding: '.esc_attr($modern_blogger_footer_padding).' 0 !important;';
		$modern_blogger_custom_css .='}';
	}


/*---------------------------Footer Style -------------------*/

	$modern_blogger_theme_lay = get_theme_mod( 'modern_blogger_footer_template','modern_blogger-footer-one');
    if($modern_blogger_theme_lay == 'modern_blogger-footer-one'){
		$modern_blogger_custom_css .='.footerinner {';
			$modern_blogger_custom_css .='';
		$modern_blogger_custom_css .='}';

	}else if($modern_blogger_theme_lay == 'modern_blogger-footer-two'){
		$modern_blogger_custom_css .='.footerinner {';
			$modern_blogger_custom_css .='background: #E3F2FD !important;';
		$modern_blogger_custom_css .='}';
		$modern_blogger_custom_css .='.footerinner p,.footerinner span,.footerinner li a,.footerinner #wp-calendar caption,.footerinner #wp-calendar td,.footerinner #wp-calendar th, .footerinner, .footerinner h3, .footerinner a.rsswidget, .footerinner #wp-calendar a, .copyright a, .footerinner .custom_details, .footerinner ins span, .footerinner .tagcloud a, .main-inner-box span.entry-date a, nav.woocommerce-MyAccount-navigation ul li:hover a, #footer ul li a, .footerinner table, .footerinner th, .footerinner td, .footerinner caption, #sidebar caption,.footerinner nav.wp-calendar-nav a,.footerinner .search-form .search-field{';
			$modern_blogger_custom_css .='color:#000 !important;';
		$modern_blogger_custom_css .='}';
		$modern_blogger_custom_css .='#footer p{';
			$modern_blogger_custom_css .='color:#000 !important;';
		$modern_blogger_custom_css .='}';
		$modern_blogger_custom_css .='.footerinner ul li::before{';
			$modern_blogger_custom_css .='background:#000;';
		$modern_blogger_custom_css .='}';
		$modern_blogger_custom_css .='.footerinner table, .footerinner th, .footerinner td,.footerinner.search-form .search-field,.footerinner .tagcloud a{';
			$modern_blogger_custom_css .='border: 1px solid #000;';
		$modern_blogger_custom_css .='}';

	}else if($modern_blogger_theme_lay == 'modern_blogger-footer-three'){
		$modern_blogger_custom_css .='.footerinner {';
			$modern_blogger_custom_css .='background: #0A0A1F !important;';
		$modern_blogger_custom_css .='}';
	}
	else if($modern_blogger_theme_lay == 'modern_blogger-footer-four'){
		$modern_blogger_custom_css .='.footerinner {';
			$modern_blogger_custom_css .='background: #F5F5DC !important;';
		$modern_blogger_custom_css .='}';
		$modern_blogger_custom_css .='.footerinner p,.footerinner span,.footerinner li a,.footerinner #wp-calendar caption,.footerinner #wp-calendar td,.footerinner #wp-calendar th, .footerinner, .footerinner h3, .footerinner a.rsswidget, .footerinner #wp-calendar a, .copyright a, .footerinner .custom_details, .footerinner ins span, .footerinner .tagcloud a, .main-inner-box span.entry-date a, nav.woocommerce-MyAccount-navigation ul li:hover a, #footer ul li a, .footerinner table, .footerinner th, .footerinner td, .footerinner caption, #sidebar caption,.footerinner nav.wp-calendar-nav a,.footerinner .search-form .search-field{';
			$modern_blogger_custom_css .='color:#000 !important;';
		$modern_blogger_custom_css .='}';
		$modern_blogger_custom_css .='#footer p{';
			$modern_blogger_custom_css .='color:#000 !important;';
		$modern_blogger_custom_css .='}';
		$modern_blogger_custom_css .='.footerinner ul li::before{';
			$modern_blogger_custom_css .='background:#000;';
		$modern_blogger_custom_css .='}';
		$modern_blogger_custom_css .='.footerinner table, .footerinner th, .footerinner td,.footerinner.search-form .search-field,.footerinner .tagcloud a{';
			$modern_blogger_custom_css .='border: 1px solid #000;';
		$modern_blogger_custom_css .='}';
	}
    else if($modern_blogger_theme_lay == 'modern_blogger-footer-five'){
	$modern_blogger_custom_css .='.footerinner {';
		$modern_blogger_custom_css .='background: #333333 !important;;';
	$modern_blogger_custom_css .='}';
   }
	/*----- Featured image css -----*/
	$modern_blogger_feature_image_border_radius = get_theme_mod('modern_blogger_feature_image_border_radius');
	if($modern_blogger_feature_image_border_radius != false){
		$modern_blogger_custom_css .='#blog_post .blog-sec img{';
			$modern_blogger_custom_css .='border-radius: '.esc_attr($modern_blogger_feature_image_border_radius).'px;';
		$modern_blogger_custom_css .='}';
	}

	$modern_blogger_feature_image_shadow = get_theme_mod('modern_blogger_feature_image_shadow');
	if($modern_blogger_feature_image_shadow != false){
		$modern_blogger_custom_css .='#blog_post .blog-sec img{';
			$modern_blogger_custom_css .='box-shadow: '.esc_attr($modern_blogger_feature_image_shadow).'px '.esc_attr($modern_blogger_feature_image_shadow).'px '.esc_attr($modern_blogger_feature_image_shadow).'px #aaa;';
		$modern_blogger_custom_css .='}';
	}

	// blog post Pagination Alignment
	$modern_blogger_post_pagination_alignment = get_theme_mod( 'modern_blogger_post_pagination_option','Right');
	if($modern_blogger_post_pagination_alignment == 'Left'){
		$modern_blogger_custom_css .='.navigation nav.pagination{';
			$modern_blogger_custom_css .='justify-content: left;';
		$modern_blogger_custom_css .='}';
	}else if($modern_blogger_post_pagination_alignment == 'Center'){
		$modern_blogger_custom_css .='.navigation nav.pagination{';
			$modern_blogger_custom_css .='justify-content: center;';
		$modern_blogger_custom_css .='}';
	}else if($modern_blogger_post_pagination_alignment == 'Right'){
		$modern_blogger_custom_css .='.navigation nav.pagination{';
			$modern_blogger_custom_css .='justify-content: right;';
		$modern_blogger_custom_css .='}';
	}
	
	/*----- Related posts image css-----*/
	$modern_blogger_related_posts_image_shadow = get_theme_mod('modern_blogger_related_posts_image_shadow');
	if($modern_blogger_related_posts_image_shadow != false){
		$modern_blogger_custom_css .='.related-posts .blog-sec img{';
			$modern_blogger_custom_css .='box-shadow: '.esc_attr($modern_blogger_related_posts_image_shadow).'px '.esc_attr($modern_blogger_related_posts_image_shadow).'px '.esc_attr($modern_blogger_related_posts_image_shadow).'px #aaa;';
		$modern_blogger_custom_css .='}';
	}
 
	$modern_blogger_related_image_border_radius = get_theme_mod('modern_blogger_related_image_border_radius');
	if($modern_blogger_related_image_border_radius != false){
		$modern_blogger_custom_css .='.related-posts .blog-sec img{';
			$modern_blogger_custom_css .='border-radius: '.esc_attr($modern_blogger_related_image_border_radius).'px;';
		$modern_blogger_custom_css .='}';
	}

	/*----- Related Post display type css ------*/
	$modern_blogger_related_post_display_type = get_theme_mod('modern_blogger_related_post_display_type', 'blocks');
	if($modern_blogger_related_post_display_type == 'without blocks' ){
		$modern_blogger_custom_css .='.related-posts .blog-sec{';
			$modern_blogger_custom_css .='border: 0!important;';
		$modern_blogger_custom_css .='}';
	}

	$modern_blogger_related_post_metabox_seperator = get_theme_mod('modern_blogger_related_post_metabox_seperator', '|');
	if($modern_blogger_related_post_metabox_seperator != '' ){
		$modern_blogger_custom_css .='.related-posts .blog-sec .post-info span:after{';
			$modern_blogger_custom_css .=' content: "'.esc_attr($modern_blogger_related_post_metabox_seperator).'"; padding-left:10px;';
		$modern_blogger_custom_css .='}';
		$modern_blogger_custom_css .='.related-posts .blog-sec .post-info span:last-child:after{';
			$modern_blogger_custom_css .=' content: none;';
		$modern_blogger_custom_css .='}';
	}	
 
	/*------ Sticky header padding ------------*/
	$modern_blogger_top_sticky_header_padding = get_theme_mod('modern_blogger_top_sticky_header_padding');
	$modern_blogger_bottom_sticky_header_padding = get_theme_mod('modern_blogger_bottom_sticky_header_padding');
	$modern_blogger_custom_css .=' .fixed-header{';
		$modern_blogger_custom_css .=' padding-top: '.esc_attr($modern_blogger_top_sticky_header_padding).'px; padding-bottom: '.esc_attr($modern_blogger_bottom_sticky_header_padding).'px';
	$modern_blogger_custom_css .='}';

		// featured image dimention
	$modern_blogger_blog_image_dimension = get_theme_mod('modern_blogger_blog_image_dimension', 'default');
	$modern_blogger_feature_image_custom_width = get_theme_mod('modern_blogger_feature_image_custom_width',250);
	$modern_blogger_feature_image_custom_height = get_theme_mod('modern_blogger_feature_image_custom_height',250);
	if($modern_blogger_blog_image_dimension == 'custom'){
		$modern_blogger_custom_css .='#blog_post .blog-sec img{';
			$modern_blogger_custom_css .='width: '.esc_attr($modern_blogger_feature_image_custom_width).'px; height: '.esc_attr($modern_blogger_feature_image_custom_height).'px;';
		$modern_blogger_custom_css .='}';
	}

	/*------ Related products ---------*/
	$modern_blogger_related_products = get_theme_mod('modern_blogger_single_related_products',true);
	if($modern_blogger_related_products == false){
		$modern_blogger_custom_css .=' .related.products{';
			$modern_blogger_custom_css .='display: none;';
		$modern_blogger_custom_css .='}';
	}

	// Featured image header
	$header_image_url = modern_blogger_banner_image( $image_url = '' );
	$modern_blogger_custom_css .='#page-site-header{';
		$modern_blogger_custom_css .='background-image: url('. esc_url( $header_image_url ).'); background-size: cover;';
	$modern_blogger_custom_css .='}';

	$modern_blogger_post_featured_image = get_theme_mod('modern_blogger_post_featured_image', 'in-content');
	if($modern_blogger_post_featured_image == 'banner' ){
		$modern_blogger_custom_css .='.single #wrapper h1, .page #wrapper h1, .page #wrapper img{';
			$modern_blogger_custom_css .=' display: none;';
		$modern_blogger_custom_css .='}';
		$modern_blogger_custom_css .='.page-template-custom-front-page #page-site-header{';
			$modern_blogger_custom_css .=' display: none;';
		$modern_blogger_custom_css .='}';
	}

	// Woocommerce Shop page pagination
	$modern_blogger_shop_page_navigation = get_theme_mod('modern_blogger_shop_page_navigation',true);
	if ($modern_blogger_shop_page_navigation == false) {
		$modern_blogger_custom_css .='.woocommerce nav.woocommerce-pagination{';
			$modern_blogger_custom_css .='display: none;';
		$modern_blogger_custom_css .='}';
	}

	/*----- Blog Post display type css ------*/
	$modern_blogger_blog_post_display_type = get_theme_mod('modern_blogger_blog_post_display_type', 'blocks');
	if($modern_blogger_blog_post_display_type == 'without blocks' ){
		$modern_blogger_custom_css .='.blog .blog-sec, .blog #sidebar .widget{';
			$modern_blogger_custom_css .='border: 0;';
		$modern_blogger_custom_css .='}';
	}

	/*----- grid Post display type css ------*/
	$modern_blogger_grid_post_display_type = get_theme_mod('modern_blogger_grid_post_display_type', 'blocks');
	if($modern_blogger_grid_post_display_type == 'without blocks' ){
		$modern_blogger_custom_css .='.grid-sec{';
			$modern_blogger_custom_css .='border: 0;';
		$modern_blogger_custom_css .='}';
	}
    /*----- grid Post css ------*/
	$modern_blogger_grid_post_image_border_radius = get_theme_mod('modern_blogger_grid_post_image_border_radius');
	 if($modern_blogger_grid_post_image_border_radius != false){
		 $modern_blogger_custom_css .='.grid-sec img{';
			 $modern_blogger_custom_css .='border-radius: '.esc_attr($modern_blogger_grid_post_image_border_radius).'px;';
		 $modern_blogger_custom_css .='}';
	 }
 
	$modern_blogger_grid_posts_image_shadow = get_theme_mod('modern_blogger_grid_posts_image_shadow');
	if($modern_blogger_grid_posts_image_shadow != false){
		$modern_blogger_custom_css .='.grid-sec img{';
			$modern_blogger_custom_css .='box-shadow: '.esc_attr($modern_blogger_grid_posts_image_shadow).'px '.esc_attr($modern_blogger_grid_posts_image_shadow).'px '.esc_attr($modern_blogger_grid_posts_image_shadow).'px #aaa;';
		$modern_blogger_custom_css .='}';
	}

	/*-------- grid post Alignment ------*/
	$modern_blogger_grid_alignment = get_theme_mod('modern_blogger_grid_alignment', 'center');
	if($modern_blogger_grid_alignment == 'left' ){
		$modern_blogger_custom_css .='.grid-sec, .grid-sec h2, .grid-post-info, .grid-sec .entry-content, .grid-sec .blogbtn{';
			$modern_blogger_custom_css .=' text-align: '. $modern_blogger_grid_alignment .'!important;';
		$modern_blogger_custom_css .='}';
	}elseif($modern_blogger_grid_alignment == 'right' ){
		$modern_blogger_custom_css .='.grid-sec, .grid-sec h2, .grid-post-info, .grid-sec .entry-content, .grid-sec .blogbtn{';
			$modern_blogger_custom_css .='text-align: '. $modern_blogger_grid_alignment .'!important;';
		$modern_blogger_custom_css .='}';
	}	


	/*---------- Responsive style ---------*/

	// responsive slider
	if (get_theme_mod('modern_blogger_slider_responsive',true) == true && get_theme_mod('modern_blogger_show_slider',false) == false) {
		$modern_blogger_custom_css .='@media screen and (min-width: 575px){
			#slider-section{';
			$modern_blogger_custom_css .=' display: none;';
		$modern_blogger_custom_css .='} }';
	}
	if (get_theme_mod('modern_blogger_slider_responsive',true) == false) {
		$modern_blogger_custom_css .='@media screen and (max-width: 575px){
			#slider-section{';
			$modern_blogger_custom_css .=' display: none;';
		$modern_blogger_custom_css .='} }';
	}

	if (get_theme_mod('modern_blogger_hide_topbar_responsive',true) == true && get_theme_mod('modern_blogger_top_header',false) == false) {
		$modern_blogger_custom_css .='.top-bar{';
			$modern_blogger_custom_css .=' display: none;';
		$modern_blogger_custom_css .='} ';
	}

	if (get_theme_mod('modern_blogger_hide_topbar_responsive',true) == false) {
		$modern_blogger_custom_css .='@media screen and (max-width: 575px){
			.top-bar{';
			$modern_blogger_custom_css .=' display: none;';
		$modern_blogger_custom_css .='} }';
	} else if(get_theme_mod('modern_blogger_hide_topbar_responsive',true) == true){
		$modern_blogger_custom_css .='@media screen and (max-width: 575px){
			.top-bar{';
			$modern_blogger_custom_css .=' display: block;';
		$modern_blogger_custom_css .='} }';
	}

	$modern_blogger_resp_sidebar = get_theme_mod( 'modern_blogger_sidebar_hide_show',true);
    if($modern_blogger_resp_sidebar == true){
    	$modern_blogger_custom_css .='@media screen and (max-width:575px) {';
		$modern_blogger_custom_css .='#sidebar{';
			$modern_blogger_custom_css .='display:block !important;';
		$modern_blogger_custom_css .='} }';
	}else if($modern_blogger_resp_sidebar == false){
		$modern_blogger_custom_css .='@media screen and (max-width:575px) {';
		$modern_blogger_custom_css .='#sidebar{';
			$modern_blogger_custom_css .='display:none !important;';
		$modern_blogger_custom_css .='} }';
	}

	// Site title Font Size
	$modern_blogger_site_title_font_size = get_theme_mod('modern_blogger_site_title_font_size', '25');
	$modern_blogger_custom_css .='.logo h1, .logo p.site-title{';
		$modern_blogger_custom_css .='font-size: '.esc_attr($modern_blogger_site_title_font_size).'px;';
	$modern_blogger_custom_css .='}';

	// Site tagline Font Size
	$modern_blogger_site_tagline_font_size = get_theme_mod('modern_blogger_site_tagline_font_size', '14');
	$modern_blogger_custom_css .='.logo p.site-description{';
		$modern_blogger_custom_css .='font-size: '.esc_attr($modern_blogger_site_tagline_font_size).'px;';
	$modern_blogger_custom_css .='}';

	// responsive settings
	if (get_theme_mod('modern_blogger_preloader_responsive',false) == true && get_theme_mod('modern_blogger_preloader',false) == false) {
		$modern_blogger_custom_css .='@media screen and (min-width: 575px){
			.preloader, #overlayer, .tg-loader{';
			$modern_blogger_custom_css .=' visibility: hidden;';
		$modern_blogger_custom_css .='} }';
	}
	if (get_theme_mod('modern_blogger_preloader_responsive',false) == false) {
		$modern_blogger_custom_css .='@media screen and (max-width: 575px){
			.preloader, #overlayer, .tg-loader{';
			$modern_blogger_custom_css .=' visibility: hidden;';
		$modern_blogger_custom_css .='} }';
	}

	// scroll to top
	$modern_blogger_scroll = get_theme_mod( 'modern_blogger_backtotop_responsive',true);
	if (get_theme_mod('modern_blogger_backtotop_responsive',true) == true && get_theme_mod('modern_blogger_hide_scroll',true) == false) {
    	$modern_blogger_custom_css .='.show-back-to-top{';
			$modern_blogger_custom_css .='visibility: hidden !important;';
		$modern_blogger_custom_css .='} ';
	}
    if($modern_blogger_scroll == true){
    	$modern_blogger_custom_css .='@media screen and (max-width:575px) {';
		$modern_blogger_custom_css .='.show-back-to-top{';
			$modern_blogger_custom_css .='visibility: visible !important;';
		$modern_blogger_custom_css .='} }';
	}else if($modern_blogger_scroll == false){
		$modern_blogger_custom_css .='@media screen and (max-width:575px) {';
		$modern_blogger_custom_css .='.show-back-to-top{';
			$modern_blogger_custom_css .='visibility: hidden !important;';
		$modern_blogger_custom_css .='} }';
	}

	/*------ Footer background css -------*/
	$modern_blogger_copyright_bg_color = get_theme_mod('modern_blogger_copyright_bg_color');
	if($modern_blogger_copyright_bg_color != false){
		$modern_blogger_custom_css .='.inner{';
			$modern_blogger_custom_css .='background-color: '.esc_attr($modern_blogger_copyright_bg_color).';';
		$modern_blogger_custom_css .='}';
	}
	
	// slider button
	if (get_theme_mod('modern_blogger_slider_button_responsive',true) == true && get_theme_mod('modern_blogger_slider_button',true) == false) {
		$modern_blogger_custom_css .='@media screen and (min-width: 575px){
			.read-more{';
			$modern_blogger_custom_css .=' display: none;';
		$modern_blogger_custom_css .='} }';
	}
	if (get_theme_mod('modern_blogger_slider_button_responsive',true) == false) {
		$modern_blogger_custom_css .='@media screen and (max-width: 575px){
			.read-more{';
			$modern_blogger_custom_css .=' display: none;';
		$modern_blogger_custom_css .='} }';
		$modern_blogger_custom_css .='@media screen and (max-width: 575px){
			#slider .carousel-caption{';
			$modern_blogger_custom_css .=' padding: 0px;';
		$modern_blogger_custom_css .='} }';
	}

	// Button Font Size
	$modern_blogger_button_font_size = get_theme_mod('modern_blogger_button_font_size', '16');
	$modern_blogger_custom_css .='.blogbtn a{';
		$modern_blogger_custom_css .='font-size: '.esc_attr($modern_blogger_button_font_size).'px;';
	$modern_blogger_custom_css .='}';

	// sticky sidebar
	$modern_blogger_sticky_sidebar = get_theme_mod('modern_blogger_sticky_sidebar');
	if ( $modern_blogger_sticky_sidebar ) {
		$modern_blogger_custom_css .= '@media (min-width: 768px) {';
			$modern_blogger_custom_css .= '#sidebar {';
				$modern_blogger_custom_css .= 'position: sticky;';
				$modern_blogger_custom_css .= 'top: 25px;';
				$modern_blogger_custom_css .= 'align-self: start;';
			$modern_blogger_custom_css .= '}';
		$modern_blogger_custom_css .= '}';
	}

	// Copyright Sticky 
	$modern_blogger_resp_stickycopyright = get_theme_mod( 'modern_blogger_stickycopyright_hide_show',false);
	if($modern_blogger_resp_stickycopyright == true && get_theme_mod( 'modern_blogger_copyright_sticky',false) != true){
    	$modern_blogger_custom_css .='.copyright-sticky{';
			$modern_blogger_custom_css .='position:static;';
		$modern_blogger_custom_css .='} ';
	}	