<?php
	$mega_construction_first_theme_color = get_theme_mod('mega_construction_first_theme_color');
	$mega_construction_second_theme_color = get_theme_mod('mega_construction_second_theme_color');
	$mega_construction_custom_css = '';

	/*------------------ Theme Color Option -----------*/
	if ($mega_construction_first_theme_color) {
		$mega_construction_custom_css .= ':root {';
		$mega_construction_custom_css .= '--primary-color: ' . esc_attr($mega_construction_first_theme_color) . ' !important;';
		$mega_construction_custom_css .= '} ';
	}

	if ($mega_construction_second_theme_color) {
		$mega_construction_custom_css .= ':root {';
		$mega_construction_custom_css .= '--secondary-color: ' . esc_attr($mega_construction_second_theme_color) . ' !important;';
		$mega_construction_custom_css .= '} ';
	}

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

	/*------- Slider Opacity -----------*/

	$mega_construction_slider_layout = get_theme_mod( 'mega_construction_slider_opacity_color','0.7');
	if($mega_construction_slider_layout == '0'){
		$mega_construction_custom_css .='#slider img{';
			$mega_construction_custom_css .='opacity:0';
		$mega_construction_custom_css .='}';
	}else if($mega_construction_slider_layout == '0.1'){
		$mega_construction_custom_css .='#slider img{';
			$mega_construction_custom_css .='opacity:0.1';
		$mega_construction_custom_css .='}';
	}else if($mega_construction_slider_layout == '0.2'){
		$mega_construction_custom_css .='#slider img{';
			$mega_construction_custom_css .='opacity:0.2';
		$mega_construction_custom_css .='}';
	}else if($mega_construction_slider_layout == '0.3'){
		$mega_construction_custom_css .='#slider img{';
			$mega_construction_custom_css .='opacity:0.3';
		$mega_construction_custom_css .='}';
	}else if($mega_construction_slider_layout == '0.4'){
		$mega_construction_custom_css .='#slider img{';
			$mega_construction_custom_css .='opacity:0.4';
		$mega_construction_custom_css .='}';
	}else if($mega_construction_slider_layout == '0.5'){
		$mega_construction_custom_css .='#slider img{';
			$mega_construction_custom_css .='opacity:0.5';
		$mega_construction_custom_css .='}';
	}else if($mega_construction_slider_layout == '0.6'){
		$mega_construction_custom_css .='#slider img{';
			$mega_construction_custom_css .='opacity:0.6';
		$mega_construction_custom_css .='}';
	}else if($mega_construction_slider_layout == '0.7'){
		$mega_construction_custom_css .='#slider img{';
			$mega_construction_custom_css .='opacity:0.7';
		$mega_construction_custom_css .='}';
	}else if($mega_construction_slider_layout == '0.8'){
		$mega_construction_custom_css .='#slider img{';
			$mega_construction_custom_css .='opacity:0.8';
		$mega_construction_custom_css .='}';
	}else if($mega_construction_slider_layout == '0.9'){
		$mega_construction_custom_css .='#slider img{';
			$mega_construction_custom_css .='opacity:0.9';
		$mega_construction_custom_css .='}';
	}

	/*-----------Slider Content Layout ----------------*/

	$mega_construction_slider_layout = get_theme_mod( 'mega_construction_slider_alignment_option','Center Align');
    if($mega_construction_slider_layout == 'Left Align'){
    	$mega_construction_custom_css .='@media screen and (min-width:720px) {';
		$mega_construction_custom_css .='#slider .carousel-caption, #slider .inner_carousel{';
			$mega_construction_custom_css .='text-align:left;';
		$mega_construction_custom_css .='}';
		$mega_construction_custom_css .='#slider .carousel-caption{';
		$mega_construction_custom_css .='left:15%; right:50%;';
		$mega_construction_custom_css .='} }';
	}else if($mega_construction_slider_layout == 'Center Align'){
		$mega_construction_custom_css .='#slider .carousel-caption, #slider .inner_carousel{';
			$mega_construction_custom_css .='text-align:center;';
		$mega_construction_custom_css .='}';
		$mega_construction_custom_css .='#slider .carousel-caption{';
		$mega_construction_custom_css .='left:15%; right:15%;';
		$mega_construction_custom_css .='}';
	}else if($mega_construction_slider_layout == 'Right Align'){
		$mega_construction_custom_css .='@media screen and (min-width:720px) {';
		$mega_construction_custom_css .='#slider .carousel-caption, #slider .inner_carousel{';
			$mega_construction_custom_css .='text-align:right;';
		$mega_construction_custom_css .='}';
		$mega_construction_custom_css .='#slider .carousel-caption{';
		$mega_construction_custom_css .='left:50%; right:15%;';
		$mega_construction_custom_css .='} }';
	}

	// Slider Arrows hover color
	$mega_construction_slider_arrows_hover_color = get_theme_mod('mega_construction_slider_arrows_hover_color');
	$mega_construction_custom_css .='#slider .carousel-control-prev-icon i:hover,#slider .carousel-control-next-icon i:hover{';
			$mega_construction_custom_css .='color: '.esc_attr($mega_construction_slider_arrows_hover_color).' !important;';
	$mega_construction_custom_css .='}';

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

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

	$mega_construction_preloader_bg_color = get_theme_mod('mega_construction_preloader_bg_color');

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

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

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

	$mega_construction_top_button_padding = get_theme_mod('mega_construction_top_button_padding');
	$mega_construction_bottom_button_padding = get_theme_mod('mega_construction_bottom_button_padding');
	$mega_construction_left_button_padding = get_theme_mod('mega_construction_left_button_padding');
	$mega_construction_right_button_padding = get_theme_mod('mega_construction_right_button_padding');
	if($mega_construction_top_button_padding != false || $mega_construction_bottom_button_padding != false || $mega_construction_left_button_padding != false || $mega_construction_right_button_padding != false){
		$mega_construction_custom_css .='.blogbtn a, #comments input[type="submit"].submit{';
			$mega_construction_custom_css .='padding-top: '.esc_attr($mega_construction_top_button_padding).'px; padding-bottom: '.esc_attr($mega_construction_bottom_button_padding).'px; padding-left: '.esc_attr($mega_construction_left_button_padding).'px; padding-right: '.esc_attr($mega_construction_right_button_padding).'px; display:inline-block;';
		$mega_construction_custom_css .='}';
	}

	$mega_construction_button_border_radius = get_theme_mod('mega_construction_button_border_radius',0);
	$mega_construction_custom_css .='.blogbtn a, #comments input[type="submit"].submit, .hvr-sweep-to-right:before{';
		$mega_construction_custom_css .='border-radius: '.esc_attr($mega_construction_button_border_radius).'px;';
	$mega_construction_custom_css .='}';

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


  	// button text transform
  	$mega_construction_button_text_transform = get_theme_mod('mega_construction_button_text_transform');
  	if($mega_construction_button_text_transform == 'uppercase' ){
    	$mega_construction_custom_css .='.blogbtn a{';
      	$mega_construction_custom_css .=' text-transform: uppercase;';
    	$mega_construction_custom_css .='}';
  	}elseif($mega_construction_button_text_transform == 'Capitalize' ){
    	$mega_construction_custom_css .='.blogbtn a{';
      	$mega_construction_custom_css .=' text-transform: Capitalize;';
    	$mega_construction_custom_css .='}';
  	}elseif($mega_construction_button_text_transform == 'lowercase' ){
    	$mega_construction_custom_css .='.blogbtn a{';
      	$mega_construction_custom_css .=' text-transform: lowercase;';
    	$mega_construction_custom_css .='}';
  	}

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

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

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

	$mega_construction_footer_widgets_content = get_theme_mod( 'mega_construction_footer_widgets_content','Left');
    if($mega_construction_footer_widgets_content == 'Left'){
		$mega_construction_custom_css .='#footer .widget ul,.tagcloud,.calendar_wrap caption,.calendar_wrap span{';
		$mega_construction_custom_css .='text-align: left;';
		$mega_construction_custom_css .='}';
	}else if($mega_construction_footer_widgets_content == 'Center'){
		$mega_construction_custom_css .='#footer .widget ul,.tagcloud,.calendar_wrap caption,.calendar_wrap span{';
			$mega_construction_custom_css .='text-align: center;';
		$mega_construction_custom_css .='}';
	}else if($mega_construction_footer_widgets_content == 'Right'){
		$mega_construction_custom_css .='#footer .widget ul,.tagcloud,.calendar_wrap caption,.calendar_wrap span{';
			$mega_construction_custom_css .='text-align: right;';
		$mega_construction_custom_css .='}';
	}

   
	// Footer Heading Text Transform

	$mega_construction_theme_lay = get_theme_mod( 'mega_construction_footer_text_tranform','Capitalize');
    if($mega_construction_theme_lay == 'Uppercase'){
		$mega_construction_custom_css .='#footer h3{';
			$mega_construction_custom_css .='text-transform: Uppercase;';
		$mega_construction_custom_css .='}';
	}else if($mega_construction_theme_lay == 'Lowercase'){
		$mega_construction_custom_css .='#footer h3{';
			$mega_construction_custom_css .='text-transform: Lowercase;';
		$mega_construction_custom_css .='}';
	}
	else if($mega_construction_theme_lay == 'Capitalize'){
		$mega_construction_custom_css .='#footer h3{';
			$mega_construction_custom_css .='text-transform: Capitalize;';
		$mega_construction_custom_css .='}';
	}		

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

	$mega_construction_theme_lay = get_theme_mod( 'mega_construction_footer_template','mega_construction-footer-one');
    if($mega_construction_theme_lay == 'mega_construction-footer-one'){
		$mega_construction_custom_css .='.copyright-wrapper{';
			$mega_construction_custom_css .='';
		$mega_construction_custom_css .='}';

	}else if($mega_construction_theme_lay == 'mega_construction-footer-two'){
		$mega_construction_custom_css .='.copyright-wrapper{';
			$mega_construction_custom_css .='background: #E3F2FD !important;';
		$mega_construction_custom_css .='}';
		$mega_construction_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{';
			$mega_construction_custom_css .='color:#000 !important;';
		$mega_construction_custom_css .='}';
		$mega_construction_custom_css .='#footer p{';
			$mega_construction_custom_css .='color:#000 !important;';
		$mega_construction_custom_css .='}';
		$mega_construction_custom_css .='.footerinner ul li::before{';
			$mega_construction_custom_css .='background:#000;';
		$mega_construction_custom_css .='}';
		$mega_construction_custom_css .='.footerinner table, .footerinner th, .footerinner td,.footerinner.search-form .search-field,.footerinner .tagcloud a{';
			$mega_construction_custom_css .='border: 1px solid #000;';
		$mega_construction_custom_css .='}';

	}else if($mega_construction_theme_lay == 'mega_construction-footer-three'){
		$mega_construction_custom_css .='.copyright-wrapper{';
			$mega_construction_custom_css .='background: #0A0A1F !important;;';
		$mega_construction_custom_css .='}';
	}
	else if($mega_construction_theme_lay == 'mega_construction-footer-four'){
		$mega_construction_custom_css .='.copyright-wrapper{';
			$mega_construction_custom_css .='background: #F5F5DC !important;;';
		$mega_construction_custom_css .='}';
		$mega_construction_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{';
			$mega_construction_custom_css .='color:#000 !important;';
		$mega_construction_custom_css .='}';
		$mega_construction_custom_css .='#footer p{';
			$mega_construction_custom_css .='color:#000 !important;';
		$mega_construction_custom_css .='}';
		$mega_construction_custom_css .='.footerinner ul li::before{';
			$mega_construction_custom_css .='background:#000;';
		$mega_construction_custom_css .='}';
		$mega_construction_custom_css .='.footerinner table, .footerinner th, .footerinner td,.footerinner.search-form .search-field,.footerinner .tagcloud a{';
			$mega_construction_custom_css .='border: 1px solid #000;';
		$mega_construction_custom_css .='}';
	}
    else if($mega_construction_theme_lay == 'mega_construction-footer-five'){
	$mega_construction_custom_css .='.copyright-wrapper{';
		$mega_construction_custom_css .='background: #333333 !important;;';
	$mega_construction_custom_css .='}';
   }	

	/*----------- Copyright css -----*/
	$mega_construction_copyright_top_padding = get_theme_mod('mega_construction_top_copyright_padding');
	$mega_construction_copyright_bottom_padding = get_theme_mod('mega_construction_bottom_copyright_padding');
	if($mega_construction_copyright_top_padding != false || $mega_construction_copyright_bottom_padding != false){
		$mega_construction_custom_css .='.inner{';
			$mega_construction_custom_css .='padding-top: '.esc_attr($mega_construction_copyright_top_padding).'px; padding-bottom: '.esc_attr($mega_construction_copyright_bottom_padding).'px; ';
		$mega_construction_custom_css .='}';
	}

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

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

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

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

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

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

	/*------ Slider Show/Hide ------*/
	$mega_construction_slider = get_theme_mod('mega_construction_slider_hide');
	if($mega_construction_slider == false ){
		$mega_construction_custom_css .='.page-template-custom-front-page .mega-construction-logo{';
			$mega_construction_custom_css .='position: static; transform: none; border-bottom: 1px solid #e4e4e4; max-width: 100%;';
		$mega_construction_custom_css .='}';
		$mega_construction_custom_css .='.page-template-custom-front-page .mega-construction-logo h1 a, .page-template-custom-front-page .mega-construction-logo p.site-title a{';
			$mega_construction_custom_css .='color: var(--primary-color);';
		$mega_construction_custom_css .='}';
		$mega_construction_custom_css .='.page-template-custom-front-page .mega-construction-logo p{';
			$mega_construction_custom_css .='color: #666;';
		$mega_construction_custom_css .='}';
		$mega_construction_custom_css .='.page-template-custom-front-page header{';
			$mega_construction_custom_css .='background: #fff;';
		$mega_construction_custom_css .='}';
	}

	/*-------- Blog Post Alignment ------*/
	$mega_construction_post_alignment = get_theme_mod('mega_construction_blog_post_alignment', 'left');
	if($mega_construction_post_alignment == 'center' ){
		$mega_construction_custom_css .='.blog-sec, .blog-sec h2, .post-info,.blog-sec .blogbtn{';
			$mega_construction_custom_css .='text-align: '. $mega_construction_post_alignment .';';
		$mega_construction_custom_css .='}';
	}elseif($mega_construction_post_alignment == 'left' ){
		$mega_construction_custom_css .='.blog-sec, .blog-sec h2, .post-info,.blog-sec .blogbtn{';
			$mega_construction_custom_css .=' text-align: '. $mega_construction_post_alignment .';';
		$mega_construction_custom_css .='}';
	}elseif($mega_construction_post_alignment == 'right' ){
		$mega_construction_custom_css .='.blog-sec, .blog-sec h2, .post-info,.blog-sec .blogbtn{';
			$mega_construction_custom_css .='text-align: '. $mega_construction_post_alignment .';';
		$mega_construction_custom_css .='}';
	}

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

	/*------- Topbar settings -----*/
	$mega_construction_top_header = get_theme_mod('mega_construction_top_header',true);
	if($mega_construction_top_header == false){
		$mega_construction_custom_css .=' .menu-sec{';
			$mega_construction_custom_css .='margin: 0;';
		$mega_construction_custom_css .='} ';
	}

	// Header Social Icons Font Size
    $mega_construction_header_icons_font_size = get_theme_mod('mega_construction_header_icons_font_size', '30');
    $mega_construction_custom_css .='#contact-us i{';
        $mega_construction_custom_css .='font-size: '.esc_attr($mega_construction_header_icons_font_size).'px;';
    $mega_construction_custom_css .='}';

	//Header icon color
	$mega_construction_header_icon_color = get_theme_mod('mega_construction_header_icon_color', '');
	$mega_construction_custom_css .='#contact-us i{';
		$mega_construction_custom_css .='color: '.esc_attr($mega_construction_header_icon_color).'!important;';
	$mega_construction_custom_css .='}';

	/*------ Topbar padding ------*/
	$mega_construction_top_topbar_padding = get_theme_mod('mega_construction_top_topbar_padding');
	$mega_construction_bottom_topbar_padding = get_theme_mod('mega_construction_bottom_topbar_padding');
	if($mega_construction_top_topbar_padding != false || $mega_construction_bottom_topbar_padding != false){
		$mega_construction_custom_css .='#contact-us{';
			$mega_construction_custom_css .='padding-top: '.esc_attr($mega_construction_top_topbar_padding).'px !important; padding-bottom: '.esc_attr($mega_construction_bottom_topbar_padding).'px !important; ';
		$mega_construction_custom_css .='}';
	}

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

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

	$mega_construction_product_top = get_theme_mod('mega_construction_product_top_padding', 10);
	$mega_construction_product_bottom = get_theme_mod('mega_construction_product_bottom_padding', 10);
	$mega_construction_product_left = get_theme_mod('mega_construction_product_left_padding', 10);
	$mega_construction_product_right = get_theme_mod('mega_construction_product_right_padding', 10);
	$mega_construction_custom_css .='.woocommerce ul.products li.product, .woocommerce-page ul.products li.product{';
		$mega_construction_custom_css .='padding-top: '.esc_attr($mega_construction_product_top).'px; padding-bottom: '.esc_attr($mega_construction_product_bottom).'px; padding-left: '.esc_attr($mega_construction_product_left).'px; padding-right: '.esc_attr($mega_construction_product_right).'px;';
	$mega_construction_custom_css .='}';

	$mega_construction_product_border_radius = get_theme_mod('mega_construction_product_border_radius');
	$mega_construction_custom_css .='.woocommerce ul.products li.product, .woocommerce-page ul.products li.product{';
		$mega_construction_custom_css .='border-radius: '.esc_attr($mega_construction_product_border_radius).'px;';
	$mega_construction_custom_css .='}';

	/*----- WooCommerce button css --------*/
	$mega_construction_product_button_top = get_theme_mod('mega_construction_product_button_top_padding',10);
	$mega_construction_product_button_bottom = get_theme_mod('mega_construction_product_button_bottom_padding',10);
	$mega_construction_product_button_left = get_theme_mod('mega_construction_product_button_left_padding',15);
	$mega_construction_product_button_right = get_theme_mod('mega_construction_product_button_right_padding',15);
	$mega_construction_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]{';
		$mega_construction_custom_css .='padding-top: '.esc_attr($mega_construction_product_button_top).'px; padding-bottom: '.esc_attr($mega_construction_product_button_bottom).'px; padding-left: '.esc_attr($mega_construction_product_button_left).'px; padding-right: '.esc_attr($mega_construction_product_button_right).'px;';
	$mega_construction_custom_css .='}';

	$mega_construction_product_button_border_radius = get_theme_mod('mega_construction_product_button_border_radius');
	$mega_construction_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{';
		$mega_construction_custom_css .='border-radius: '.esc_attr($mega_construction_product_button_border_radius).'px;';
	$mega_construction_custom_css .='}';

	/*----- WooCommerce product sale css --------*/
	$mega_construction_product_sale_top = get_theme_mod('mega_construction_product_sale_top_padding');
	$mega_construction_product_sale_bottom = get_theme_mod('mega_construction_product_sale_bottom_padding');
	$mega_construction_product_sale_left = get_theme_mod('mega_construction_product_sale_left_padding');
	$mega_construction_product_sale_right = get_theme_mod('mega_construction_product_sale_right_padding');
	$mega_construction_custom_css .='.woocommerce span.onsale {';
		$mega_construction_custom_css .='padding-top: '.esc_attr($mega_construction_product_sale_top).'px; padding-bottom: '.esc_attr($mega_construction_product_sale_bottom).'px; padding-left: '.esc_attr($mega_construction_product_sale_left).'px; padding-right: '.esc_attr($mega_construction_product_sale_right).'px;';
	$mega_construction_custom_css .='}';

	$mega_construction_product_sale_border_radius = get_theme_mod('mega_construction_product_sale_border_radius',50);
	$mega_construction_custom_css .='.woocommerce span.onsale {';
		$mega_construction_custom_css .='border-radius: '.esc_attr($mega_construction_product_sale_border_radius).'px;';
	$mega_construction_custom_css .='}';

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

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

	/*---- Slider Image overlay -----*/
	$mega_construction_slider_image_overlay = get_theme_mod('mega_construction_slider_image_overlay',true);
	if($mega_construction_slider_image_overlay == false){
		$mega_construction_custom_css .='#slider img {';
			$mega_construction_custom_css .='opacity: 1;';
		$mega_construction_custom_css .='}';
	}

	$mega_construction_slider_overlay_color = get_theme_mod('mega_construction_slider_overlay_color');
	if($mega_construction_slider_overlay_color != false){
		$mega_construction_custom_css .='#slider  {';
			$mega_construction_custom_css .='background-color: '.esc_attr($mega_construction_slider_overlay_color).';';
		$mega_construction_custom_css .='}';
	}

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

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

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

	/*------ Footer background css -------*/
	$mega_construction_footer_bg_color = get_theme_mod('mega_construction_footer_bg_color');
	if($mega_construction_footer_bg_color != false){
		$mega_construction_custom_css .='.copyright-wrapper{';
			$mega_construction_custom_css .='background: '.esc_attr($mega_construction_footer_bg_color).';';
		$mega_construction_custom_css .='}';
	}
	$mega_construction_footer_bg_image = get_theme_mod('mega_construction_footer_bg_image');
	if($mega_construction_footer_bg_image != false){
		$mega_construction_custom_css .='.copyright-wrapper{';
			$mega_construction_custom_css .='background: url('.esc_attr($mega_construction_footer_bg_image).'); background-size: cover;';
		$mega_construction_custom_css .='}';
	}
	/*---------------------------Footer top bottom padding -------------------*/
	$mega_construction_footer_padding = get_theme_mod('mega_construction_footer_padding');
	if($mega_construction_footer_padding != false){
		$mega_construction_custom_css .='#footer .footerinner{';
			$mega_construction_custom_css .='padding: '.esc_attr($mega_construction_footer_padding).' 0 !important;';
		$mega_construction_custom_css .='}';
	}
	//footer icon color
	$mega_construction_footer_icon_color = get_theme_mod('mega_construction_footer_icon_color', '');
	$mega_construction_custom_css .='#footer .copyright a i{';
		$mega_construction_custom_css .='color: '.esc_attr($mega_construction_footer_icon_color);
	$mega_construction_custom_css .='}';	

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

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

	//Footer Social Icon Top Bottom padding 
	$mega_construction_footer_icon_to_top_padding = get_theme_mod('mega_construction_footer_icon_to_top_padding');
	$mega_construction_custom_css .='#footer .copyright a i{';
	$mega_construction_custom_css .='padding-top: '.esc_attr($mega_construction_footer_icon_to_top_padding).'px;';
	$mega_construction_custom_css .='padding-bottom: '.esc_attr($mega_construction_footer_icon_to_top_padding).'px;';
	$mega_construction_custom_css .='}';

    // footer image position
	$mega_construction_footer_img_position = get_theme_mod('mega_construction_footer_img_position','center center');
	if($mega_construction_footer_img_position != false){
		$mega_construction_custom_css .='.copyright-wrapper{';
			$mega_construction_custom_css .='background-position: '.esc_attr($mega_construction_footer_img_position).'!important;';
		$mega_construction_custom_css .='}';
	}	

	// Footer Attatchment
	$mega_construction_theme_lay = get_theme_mod( 'mega_construction_footer_attatchment','scroll');
	if($mega_construction_theme_lay == 'fixed'){
		$mega_construction_custom_css .='.copyright-wrapper{';
			$mega_construction_custom_css .='background-attachment: fixed;';
		$mega_construction_custom_css .='}';
	}elseif ($mega_construction_theme_lay == 'scroll'){
		$mega_construction_custom_css .='.copyright-wrapper{';
			$mega_construction_custom_css .='background-attachment: scroll;';
		$mega_construction_custom_css .='}';
	}		

	/*----- Featured image css -----*/
	$mega_construction_feature_image_border_radius = get_theme_mod('mega_construction_feature_image_border_radius');
	if($mega_construction_feature_image_border_radius != false){
		$mega_construction_custom_css .='#blog_post .blog-sec img{';
			$mega_construction_custom_css .='border-radius: '.esc_attr($mega_construction_feature_image_border_radius).'px;';
		$mega_construction_custom_css .='}';
	}

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

	// blog post Pagination Alignment
	$mega_construction_post_pagination_alignment = get_theme_mod( 'mega_construction_post_pagination_option','Right');
	if($mega_construction_post_pagination_alignment == 'Left'){
		$mega_construction_custom_css .='.navigation nav.pagination{';
			$mega_construction_custom_css .='justify-content: left;';
		$mega_construction_custom_css .='}';
	}else if($mega_construction_post_pagination_alignment == 'Center'){
		$mega_construction_custom_css .='.navigation nav.pagination{';
			$mega_construction_custom_css .='justify-content: center;';
		$mega_construction_custom_css .='}';
	}else if($mega_construction_post_pagination_alignment == 'Right'){
		$mega_construction_custom_css .='.navigation nav.pagination{';
			$mega_construction_custom_css .='justify-content: right;';
		$mega_construction_custom_css .='}';
	}
     /*----- Related posts image css-----*/
	 
	 $mega_construction_related_image_border_radius = get_theme_mod('mega_construction_related_image_border_radius');
	 if($mega_construction_related_image_border_radius != false){
		 $mega_construction_custom_css .='.related-posts .blog-sec img{';
			 $mega_construction_custom_css .='border-radius: '.esc_attr($mega_construction_related_image_border_radius).'px;';
		 $mega_construction_custom_css .='}';
	 }

	 /*----- Related Post display type css ------*/
	$mega_construction_related_post_display_type = get_theme_mod('mega_construction_related_post_display_type', 'blocks');
	if($mega_construction_related_post_display_type == 'without blocks' ){
		$mega_construction_custom_css .='.related-posts .blog-sec{';
			$mega_construction_custom_css .='border: 0!important;';
		$mega_construction_custom_css .='}';
	}
	// Metabox Seperator related post
	$mega_construction_related_post_metabox_seperator = get_theme_mod('mega_construction_related_post_metabox_seperator', '|');
	if($mega_construction_related_post_metabox_seperator != '' ){
		$mega_construction_custom_css .='.related-posts .blog-sec .post-info span:after{';
			$mega_construction_custom_css .=' content: "'.esc_attr($mega_construction_related_post_metabox_seperator).'"; padding-left:10px;';
		$mega_construction_custom_css .='}';
		$mega_construction_custom_css .='.related-posts .blog-sec .post-info span:last-child:after{';
			$mega_construction_custom_css .=' content: none;';
		$mega_construction_custom_css .='}';
	}	
	/*------ Sticky header padding ------------*/
	$mega_construction_top_sticky_header_padding = get_theme_mod('mega_construction_top_sticky_header_padding');
	$mega_construction_bottom_sticky_header_padding = get_theme_mod('mega_construction_bottom_sticky_header_padding');
	$mega_construction_custom_css .=' .fixed-header{';
		$mega_construction_custom_css .=' padding-top: '.esc_attr($mega_construction_top_sticky_header_padding).'px; padding-bottom: '.esc_attr($mega_construction_bottom_sticky_header_padding).'px';
	$mega_construction_custom_css .='}';

	
	// featured image dimention
	$mega_construction_blog_image_dimension = get_theme_mod('mega_construction_blog_image_dimension', 'default');
	$mega_construction_feature_image_custom_width = get_theme_mod('mega_construction_feature_image_custom_width',250);
	$mega_construction_feature_image_custom_height = get_theme_mod('mega_construction_feature_image_custom_height',250);
	if($mega_construction_blog_image_dimension == 'custom'){
		$mega_construction_custom_css .='#blog_post .blog-sec img{';
			$mega_construction_custom_css .='width: '.esc_attr($mega_construction_feature_image_custom_width).'px; height: '.esc_attr($mega_construction_feature_image_custom_height).'px;';
		$mega_construction_custom_css .='}';
	}

	/*------ Related products ---------*/
	$mega_construction_related_products = get_theme_mod('mega_construction_single_related_products',true);
	if($mega_construction_related_products == false){
		$mega_construction_custom_css .=' .related.products{';
			$mega_construction_custom_css .='display: none;';
		$mega_construction_custom_css .='}';
	}

	/*-------- Menu Font Size --------*/
	$mega_construction_menu_font_size = get_theme_mod('mega_construction_menu_font_size',14);
	if($mega_construction_menu_font_size != false){
		$mega_construction_custom_css .='.nav-menu li a{';
			$mega_construction_custom_css .='font-size: '.esc_attr($mega_construction_menu_font_size).'px;';
		$mega_construction_custom_css .='}';
	}

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

	$mega_construction_menu_case = get_theme_mod('mega_construction_menu_case', 'uppercase');
	if($mega_construction_menu_case == 'uppercase' ){
		$mega_construction_custom_css .='.nav-menu li a{';
			$mega_construction_custom_css .=' text-transform: uppercase;';
		$mega_construction_custom_css .='}';
	}elseif($mega_construction_menu_case == 'capitalize' ){
		$mega_construction_custom_css .='.nav-menu li a{';
			$mega_construction_custom_css .=' text-transform: capitalize;';
		$mega_construction_custom_css .='}';
	}

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

	$mega_construction_post_featured_image = get_theme_mod('mega_construction_post_featured_image', 'in-content');
	if($mega_construction_post_featured_image == 'banner' ){
		$mega_construction_custom_css .='.single #wrapper h1, .page #wrapper h1, .page #wrapper img, .page .title-box{';
			$mega_construction_custom_css .=' display: none;';
		$mega_construction_custom_css .='}';
		$mega_construction_custom_css .='#page-site-header{';
			$mega_construction_custom_css .=' margin-bottom: 20px;';
		$mega_construction_custom_css .='}';
		$mega_construction_custom_css .='.page-template-custom-front-page #page-site-header{';
			$mega_construction_custom_css .=' display: none;';
		$mega_construction_custom_css .='}';
	}

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

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

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

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

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

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

	/*----- grid Post display type css ------*/
	$mega_construction_grid_post_display_type = get_theme_mod('mega_construction_grid_post_display_type', 'blocks');
	if($mega_construction_grid_post_display_type == 'without blocks' ){
		$mega_construction_custom_css .='.grid-sec{';
			$mega_construction_custom_css .='border: 0;';
		$mega_construction_custom_css .='}';
	}

    /*----- grid Post css ------*/
	$mega_construction_grid_post_image_border_radius = get_theme_mod('mega_construction_grid_post_image_border_radius');
	 if($mega_construction_grid_post_image_border_radius != false){
		 $mega_construction_custom_css .='.grid-sec img{';
			 $mega_construction_custom_css .='border-radius: '.esc_attr($mega_construction_grid_post_image_border_radius).'px;';
		 $mega_construction_custom_css .='}';
	 }

	 /*-------- grid post Alignment ------*/
	$mega_construction_grid_alignment = get_theme_mod('mega_construction_grid_alignment','center');
	if($mega_construction_grid_alignment == 'center' ){
		$mega_construction_custom_css .='.grid-sec, .grid-sec h2, .grid-post-info, .grid-sec .entry-content, .grid-sec .blogbtn{';
			$mega_construction_custom_css .=' text-align: '. $mega_construction_grid_alignment .'!important;';
		$mega_construction_custom_css .='}';
	}elseif($mega_construction_grid_alignment == 'right' ){
		$mega_construction_custom_css .='.grid-sec, .grid-sec h2, .grid-post-info, .grid-sec .entry-content, .grid-sec .blogbtn{';
			$mega_construction_custom_css .='text-align: '. $mega_construction_grid_alignment .'!important;';
		$mega_construction_custom_css .='}';
	}elseif($mega_construction_grid_alignment == 'left' ){
		$mega_construction_custom_css .='.grid-sec, .grid-sec h2, .grid-post-info, .grid-sec .entry-content, .grid-sec .blogbtn{';
			$mega_construction_custom_css .='text-align: '. $mega_construction_grid_alignment .'!important;';
		$mega_construction_custom_css .='}';
	}		
 
	// Site title Font Size
	$mega_construction_site_title_font_size = get_theme_mod('mega_construction_site_title_font_size', '30');
	$mega_construction_custom_css .='.mega-construction-logo h1, .mega-construction-logo p.site-title{';
		$mega_construction_custom_css .='font-size: '.esc_attr($mega_construction_site_title_font_size).'px;';
	$mega_construction_custom_css .='}';

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

	/*---- Slider Content Position -----*/
	$mega_construction_top_position = get_theme_mod('mega_construction_slider_top_position');
	$mega_construction_bottom_position = get_theme_mod('mega_construction_slider_bottom_position');
	$mega_construction_left_position = get_theme_mod('mega_construction_slider_left_position');
	$mega_construction_right_position = get_theme_mod('mega_construction_slider_right_position');
	if($mega_construction_top_position != false || $mega_construction_bottom_position != false || $mega_construction_left_position != false || $mega_construction_right_position != false){
		$mega_construction_custom_css .='#slider .carousel-caption{';
			$mega_construction_custom_css .='top: '.esc_attr($mega_construction_top_position).'%; bottom: '.esc_attr($mega_construction_bottom_position).'%; left: '.esc_attr($mega_construction_left_position).'%; right: '.esc_attr($mega_construction_right_position).'%;';
		$mega_construction_custom_css .='}';
	}

	// responsive settings

	if (get_theme_mod('mega_construction_slider_responsive',true) == true && get_theme_mod('mega_construction_slider_hide',false) == false) {
		$mega_construction_custom_css .='@media screen and (min-width: 575px){
			#slider{';
			$mega_construction_custom_css .=' display: none;';
		$mega_construction_custom_css .='} }';
	}
	if (get_theme_mod('mega_construction_slider_responsive',true) == false) {
		$mega_construction_custom_css .='@media screen and (max-width: 575px){
			#slider{';
			$mega_construction_custom_css .=' display: none;';
		$mega_construction_custom_css .='} }';
	}

	$mega_construction_scroll = get_theme_mod( 'mega_construction_backtotop_responsive',true);
	if (get_theme_mod('mega_construction_backtotop_responsive',true) == true && get_theme_mod('mega_construction_hide_scroll',true) == false) {
    	$mega_construction_custom_css .='.show-back-to-top{';
			$mega_construction_custom_css .='visibility: hidden !important;';
		$mega_construction_custom_css .='} ';
	}
    if($mega_construction_scroll == true){
    	$mega_construction_custom_css .='@media screen and (max-width:575px) {';
		$mega_construction_custom_css .='.show-back-to-top{';
			$mega_construction_custom_css .='visibility: visible !important;';
		$mega_construction_custom_css .='} }';
	}else if($mega_construction_scroll == false){
		$mega_construction_custom_css .='@media screen and (max-width:575px) {';
		$mega_construction_custom_css .='.show-back-to-top{';
			$mega_construction_custom_css .='visibility: hidden !important;';
		$mega_construction_custom_css .='} }';
	}

	$mega_construction_resp_sidebar = get_theme_mod( 'mega_construction_sidebar_hide_show',true);
    if($mega_construction_resp_sidebar == true){
    	$mega_construction_custom_css .='@media screen and (max-width:575px) {';
		$mega_construction_custom_css .='#sidebar{';
			$mega_construction_custom_css .='display:block;';
		$mega_construction_custom_css .='} }';
	}else if($mega_construction_resp_sidebar == false){
		$mega_construction_custom_css .='@media screen and (max-width:575px) {';
		$mega_construction_custom_css .='#sidebar{';
			$mega_construction_custom_css .='display:none;';
		$mega_construction_custom_css .='} }';
	}

	//Toggle Button Color Option
	$mega_construction_toggle_button_bg_color_settings = get_theme_mod('mega_construction_toggle_button_bg_color_settings');
	$mega_construction_custom_css .='@media screen and (max-width: 1000px){ 
		.menu-sec {';
	$mega_construction_custom_css .='background-color: '.esc_attr($mega_construction_toggle_button_bg_color_settings).';';
	$mega_construction_custom_css .='} }';
	
	if (get_theme_mod('mega_construction_preloader_responsive',false) == false && get_theme_mod('mega_construction_preloader',false) == false) {
		$mega_construction_custom_css .='@media screen and (min-width: 575px){
			.preloader, #overlayer, .tg-loader{';
			$mega_construction_custom_css .=' visibility: hidden;';
		$mega_construction_custom_css .='} }';
	}
	if (get_theme_mod('mega_construction_preloader_responsive',false) == false) {
		$mega_construction_custom_css .='@media screen and (max-width: 575px){
			.preloader, #overlayer, .tg-loader{';
			$mega_construction_custom_css .=' visibility: hidden;';
		$mega_construction_custom_css .='} }';
	}

	if (get_theme_mod('mega_construction_sticky_header_responsive') == false) {
		$mega_construction_custom_css .='@media screen and (max-width: 575px){
			.sticky{';
			$mega_construction_custom_css .=' position: static;';
		$mega_construction_custom_css .='} }';
	}

	/*------ Footer background css -------*/
	$mega_construction_copyright_bg_color = get_theme_mod('mega_construction_copyright_bg_color');
	if($mega_construction_copyright_bg_color != false){
		$mega_construction_custom_css .='#footer .inner{';
			$mega_construction_custom_css .='background-color: '.esc_attr($mega_construction_copyright_bg_color).'!important;';
		$mega_construction_custom_css .='}';
	}

	// site logo padding 
	$mega_construction_logo_spacing = get_theme_mod('mega_construction_logo_spacing', '');
	$mega_construction_has_custom_logo = get_theme_mod('mega_construction_has_custom_logo', '90');
	$mega_construction_custom_css .='.mega-construction-logo{';
	$mega_construction_custom_css .='padding: '.esc_attr($mega_construction_logo_spacing).'px !important;';
	$mega_construction_custom_css .='}';

	// site title color
	$mega_construction_site_title_text_color = get_theme_mod('mega_construction_site_title_text_color');
	$mega_construction_custom_css .='.mega-construction-logo h1 a, .mega-construction-logo p.site-title a{';
		$mega_construction_custom_css .='color: '.esc_attr($mega_construction_site_title_text_color).' !important;';
	$mega_construction_custom_css .='}';

	// site tagline color
	$mega_construction_site_tagline_text_color = get_theme_mod('mega_construction_site_tagline_text_color');
	$mega_construction_custom_css .='.mega-construction-logo p.site-description{';
		$mega_construction_custom_css .='color: '.esc_attr($mega_construction_site_tagline_text_color).' !important;';
	$mega_construction_custom_css .='}';

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

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

	$mega_construction_menus_item = get_theme_mod( 'mega_construction_menus_item_style','None');
    if($mega_construction_menus_item == 'None'){
		$mega_construction_custom_css .='.nav-menu ul li a{';
			$mega_construction_custom_css .='';
		$mega_construction_custom_css .='}';
	}else if($mega_construction_menus_item == 'Zoom In'){
		$mega_construction_custom_css .='.nav-menu ul li a:hover{';
			$mega_construction_custom_css .='transition: all 0.3s ease-in-out !important; transform: scale(1.1) !important;';
		$mega_construction_custom_css .='}';
	}else if ($mega_construction_menus_item == 'Underline Expand') { 
		$mega_construction_custom_css .= '.nav-menu ul li a { position: relative; text-decoration: none; }';
	$mega_construction_custom_css .= '.nav-menu ul li a::after {';
		$mega_construction_custom_css .= 'content: ""; position: absolute; left: 50%; bottom: calc(' . esc_attr($mega_construction_menu_padding) . 'px / 2); width: 0; height: 2px; background-color: currentColor;';
	$mega_construction_custom_css .= 'transition: width 0.3s ease, left 0.3s ease;';
		$mega_construction_custom_css .= '}';
	$mega_construction_custom_css .= '.nav-menu ul li a:hover::after {';
		$mega_construction_custom_css .= 'width: 100%; left: 0;';
	$mega_construction_custom_css .= '}';
	}				

	// menu hover color
	$mega_construction_menu_hover_color = get_theme_mod('mega_construction_menu_hover_color');
	$mega_construction_custom_css .='.nav-menu a:hover, .nav-menu ul li a:hover,#sidelong-menu .nav-menu ul li.page_item a:hover{';
			$mega_construction_custom_css .='color: '.esc_attr($mega_construction_menu_hover_color).' !important;';
	$mega_construction_custom_css .='}';

	// Submenu color
	$mega_construction_submenu_menu_color = get_theme_mod('mega_construction_submenu_menu_color');
	$mega_construction_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{';
			$mega_construction_custom_css .='color: '.esc_attr($mega_construction_submenu_menu_color).' !important;';
	$mega_construction_custom_css .='}';

	// submenu hover color
	$mega_construction_submenu_hover_color = get_theme_mod('mega_construction_submenu_hover_color');
	$mega_construction_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{';
			$mega_construction_custom_css .='color: '.esc_attr($mega_construction_submenu_hover_color).' !important;';
	$mega_construction_custom_css .='}';

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

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

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

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

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

	// Single post image border radious
	$mega_construction_single_post_img_border_radius = get_theme_mod('mega_construction_single_post_img_border_radius', 0);
	$mega_construction_custom_css .='.feature-box img{';
		$mega_construction_custom_css .='border-radius: '.esc_attr($mega_construction_single_post_img_border_radius).'px;';
	$mega_construction_custom_css .='}';

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

	// single post image dimention
	$mega_construction_single_post_image_dimension = get_theme_mod('mega_construction_single_post_image_dimension', 'default');
	$mega_construction_single_post_image_custom_width = get_theme_mod('mega_construction_single_post_image_custom_width',400);
	$mega_construction_single_post_image_custom_height = get_theme_mod('mega_construction_single_post_image_custom_height',400);
	if($mega_construction_single_post_image_dimension == 'custom'){
		$mega_construction_custom_css .='.single-feature-img img{';
			$mega_construction_custom_css .='width: '.esc_attr($mega_construction_single_post_image_custom_width).'px; height: '.esc_attr($mega_construction_single_post_image_custom_height).'px;';
		$mega_construction_custom_css .='}';
	}


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

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

	//Button hover effect
	$mega_construction_button_hover_effect = get_theme_mod('mega_construction_button_hover_effect', 'disable');
	if ($mega_construction_button_hover_effect !== 'disable') {
		$mega_construction_custom_css .= '.blogbtn a:hover {';
		switch ($mega_construction_button_hover_effect) {
			case 'pulse':
				$mega_construction_custom_css .= 'animation: pulse 0.5s ease-in-out;';
				break;
			case 'rubberBand':
				$mega_construction_custom_css .= 'animation: rubberBand 0.5s ease-in-out;';
				break;
			case 'swing':
				$mega_construction_custom_css .= 'animation: swing 0.5s ease-in-out;';
				break;
			case 'tada':
				$mega_construction_custom_css .= 'animation: tada 0.5s ease-in-out;';
				break;
			case 'jello':
				$mega_construction_custom_css .= 'animation: jello 0.5s ease-in-out;';
				break;
		}
		$mega_construction_custom_css .= '}';
	}
	// sticky sidebar
	$mega_construction_sticky_sidebar = get_theme_mod('mega_construction_sticky_sidebar');
	if ( $mega_construction_sticky_sidebar ) {
		$mega_construction_custom_css .= '@media (min-width: 768px) {';
			$mega_construction_custom_css .= '#sidebar {';
				$mega_construction_custom_css .= 'position: sticky;';
				$mega_construction_custom_css .= 'top: 25px;';
				$mega_construction_custom_css .= 'align-self: start;';
			$mega_construction_custom_css .= '}';
		$mega_construction_custom_css .= '}';
	}

	// Copyright Sticky 
	$mega_construction_resp_stickycopyright = get_theme_mod( 'mega_construction_stickycopyright_hide_show',false);
	if($mega_construction_resp_stickycopyright == true && get_theme_mod( 'mega_construction_copyright_sticky',false) != true){
    	$mega_construction_custom_css .='.copyright-sticky{';
			$mega_construction_custom_css .='position:static;';
		$mega_construction_custom_css .='} ';
	}	

	// change the Category style //
	$mega_construction_single_post_styling = get_theme_mod( 'mega_construction_single_post_styling','Button');
		if($mega_construction_single_post_styling == 'Underline'){
		$mega_construction_custom_css .='.single-post-category .post-categories li a{';
			$mega_construction_custom_css .='text-decoration: underline; color: #000 !important; background-color:transparent;';
		$mega_construction_custom_css .='}';
	}
	else if($mega_construction_single_post_styling == 'Default'){
		$mega_construction_custom_css .='.single-post-category .post-categories li a{';
			$mega_construction_custom_css .='text-decoration: none; color: #000 !important; background-color:transparent;';
		$mega_construction_custom_css .='}';
	}



	//keyframes for all animations
	$mega_construction_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); }
	}';
