<?php

	$katib_writers_theme_color_first = get_theme_mod('katib_writers_theme_color_first');

	$katib_writers_custom_css = '';

	$katib_writers_custom_css .='a.wc-block-components-totals-coupon-link, a.components-button.wc-block-components-button.wp-element-button.wc-block-cart__submit-button.contained, a.wc-block-components-checkout-return-to-cart-button, .wc-block-components-totals-coupon__button.contained, button.wc-block-components-checkout-place-order-button ,.wc-block-grid__product-onsale ,#sidebox .wp-block-heading, #sidebox .wp-block-search__label ,.readbutton a, #about .aboutbtn a, .woocommerce span.onsale, .woocommerce #respond input#submit, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button,.woocommerce #respond input#submit.alt, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt, nav.woocommerce-MyAccount-navigation ul li,.post-link a, .post-info, #sidebox h2, button.search-submit:hover, .site-footer, .copyright, button, input[type="button"], input[type="submit"],.comment-reply-link,.search-form button.search-submit,.tags p a,.post-navigation .nav-next a,.post-navigation .nav-previous a,.page-numbers, #sidebox h3, .wp-block-button a, .nav-links .nav-next a, .nav-links .nav-previous a, #sidebox button[type="submit"], .site-footer button[type="submit"] , .breadcrumb a , .breadcrumb span {';
		$katib_writers_custom_css .='background-color: '.esc_attr($katib_writers_theme_color_first).';';
	$katib_writers_custom_css .='}';

	$katib_writers_custom_css .='.wc-block-grid__product-onsale {';
		$katib_writers_custom_css .='background-color: '.esc_attr($katib_writers_theme_color_first).'!important;';
	$katib_writers_custom_css .='}';

	$katib_writers_custom_css .='.logo h1 a, .search-body span i,#banner .box-content p, .logo p, .contact span, #about .about-text h2, .main-navigation ul ul li a, .main-navigation a, #banner .box-content h1, .woocommerce-info::before, .woocommerce-message::before,.main-navigation ul ul li a,.main-navigation li li:focus > a, .main-navigation li li:hover > a, #sidebox .textwidget p a,.site-title a, .search-body i, .contact a, a, .contact a:hover, .blogger h2 a:hover, .related-posts h3 a:hover{';
		$katib_writers_custom_css .='color: '.esc_attr($katib_writers_theme_color_first).';';
	$katib_writers_custom_css .='}';

	$katib_writers_custom_css .='.wc-block-grid__product-onsale {';
		$katib_writers_custom_css .='border-color: '.esc_attr($katib_writers_theme_color_first).'!important;';
	$katib_writers_custom_css .='}';

	$katib_writers_custom_css .='.main-navigation ul ul, .woocommerce-info, .woocommerce-message{';
		$katib_writers_custom_css .='border-color: '.esc_attr($katib_writers_theme_color_first).';';
	$katib_writers_custom_css .='}';

	$katib_writers_custom_css .='.main-navigation ul ul li:hover{';
		$katib_writers_custom_css .='border-left-color: '.esc_attr($katib_writers_theme_color_first).';';
	$katib_writers_custom_css .='}';
	
	/*----------------Theme color option-------------------*/
	$katib_writers_theme_color_second = get_theme_mod('katib_writers_theme_color_second');

	$katib_writers_custom_css .='button.wc-block-components-checkout-place-order-button:hover, a.wc-block-components-totals-coupon-link:hover, a.components-button.wc-block-components-button.wp-element-button.wc-block-cart__submit-button.contained:hover, a.wc-block-components-checkout-return-to-cart-button:hover ,#banner .social-media i:hover, .readbutton a:hover, #about .aboutbtn a:hover, .woocommerce #respond input#submit:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover,.woocommerce #respond input#submit.alt:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce input.button.alt:hover, .post-link a:hover, .search-form button.search-submit:hover,.scrollup i,.page-numbers:hover, .prev.page-numbers:hover,.tags p a:hover,.post-navigation .nav-next a:hover, .post-navigation .nav-previous a:hover,.widget .tagcloud a:hover, #sidebox .widget_price_filter .ui-slider-horizontal .ui-slider-range, #sidebox .widget_price_filter .ui-slider .ui-slider-handle, .site-footer .widget_price_filter .ui-slider-horizontal .ui-slider-range, .site-footer .widget_price_filter .ui-slider .ui-slider-handle, .woocommerce #respond input#submit:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover, .woocommerce #respond input#submit.alt:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce input.button.alt:hover,.woocommerce form.woocommerce-product-search button, .site-footer .woocommerce .widget_shopping_cart .buttons a, .site-footer .woocommerce.widget_shopping_cart .buttons a, .site-footer .widget_price_filter .price_slider_amount .button, .widget-area .search-form button.search-submit,.nav-links .nav-previous a:hover, .nav-links .nav-next a:hover,#sidebox button[type="submit"]:hover, .site-footer button[type="submit"]:hover,#comments input:hover , .breadcrumb a:hover , .breadcrumb span:hover {';
		$katib_writers_custom_css .='background-color: '.esc_attr($katib_writers_theme_color_second).';';
	$katib_writers_custom_css .='}';

	$katib_writers_custom_css .='#banner .box-content p i,#banner .box-content p i, .contact i, .main-navigation a:hover,.post-info a:hover,#sidebox ul li a:hover, .entry-date:hover a, .entry-date:hover i, .entry-author:hover a, .entry-author:hover i{';
		$katib_writers_custom_css .='color: '.esc_attr($katib_writers_theme_color_second).';';
	$katib_writers_custom_css .='}';

	$katib_writers_custom_css .='.scrollup i{';
		$katib_writers_custom_css .='border-color: '.esc_attr($katib_writers_theme_color_second).';';
	$katib_writers_custom_css .='}';

	$katib_writers_custom_css .='.copyright{';
		$katib_writers_custom_css .='border-top-color: '.esc_attr($katib_writers_theme_color_second).';';
	$katib_writers_custom_css .='}';

	$katib_writers_custom_css .='.site-footer ul li a:hover{';
		$katib_writers_custom_css .='color: '.esc_attr($katib_writers_theme_color_second).'!important;';
	$katib_writers_custom_css .='}';

	$katib_writers_custom_css .='.wp-block-button .wp-block-button__link:hover, .wp-block-button .wp-block-button__link:focus ,.wp-block-button a:hover{';
		$katib_writers_custom_css .='background-color: '.esc_attr($katib_writers_theme_color_second).'!important;';
	$katib_writers_custom_css .='}';
	

	/*---------------------------Width Layout -------------------*/
	$katib_writers_theme_lay = get_theme_mod( 'katib_writers_theme_options','Default');
    if($katib_writers_theme_lay == 'Default'){
		$katib_writers_custom_css .='body{';
			$katib_writers_custom_css .='max-width: 100%;';
		$katib_writers_custom_css .='}';
		$katib_writers_custom_css .='.page-template-custom-home-page .middle-header{';
			$katib_writers_custom_css .='width: 97.3%';
		$katib_writers_custom_css .='}';
	}else if($katib_writers_theme_lay == 'Wide Layout'){
		$katib_writers_custom_css .='body{';
			$katib_writers_custom_css .='width: 100%;padding-right: 15px;padding-left: 15px;margin-right: auto;margin-left: auto;';
		$katib_writers_custom_css .='}';
		$katib_writers_custom_css .='.page-template-custom-home-page .middle-header{';
			$katib_writers_custom_css .='width: 97.7%';
		$katib_writers_custom_css .='}';
	}else if($katib_writers_theme_lay == 'Box Layout'){
		$katib_writers_custom_css .='body{';
			$katib_writers_custom_css .='max-width: 1140px; width: 100%; padding-right: 15px; padding-left: 15px; margin-right: auto; margin-left: auto;';
		$katib_writers_custom_css .='}';
		$katib_writers_custom_css .='.page-template-home-custom #masthead .main-header{';
			$katib_writers_custom_css .='width: 87%;';
		$katib_writers_custom_css .='}';
		$katib_writers_custom_css .='
		@media screen and (max-width: 768px){
		.page-template-home-custom #masthead .main-header{';
		$katib_writers_custom_css .='width: 100%;';
		$katib_writers_custom_css .='} }';

	}

	/*--------------------------- Slider Opacity -------------------*/
	$katib_writers_slider_layout = get_theme_mod( 'katib_writers_slider_opacity_color','0.3');
	if($katib_writers_slider_layout == '0'){
		$katib_writers_custom_css .='#banner img{';
			$katib_writers_custom_css .='opacity:0';
		$katib_writers_custom_css .='}';
		}else if($katib_writers_slider_layout == '0.1'){
		$katib_writers_custom_css .='#banner img{';
			$katib_writers_custom_css .='opacity:0.1';
		$katib_writers_custom_css .='}';
		}else if($katib_writers_slider_layout == '0.2'){
		$katib_writers_custom_css .='#banner img{';
			$katib_writers_custom_css .='opacity:0.2';
		$katib_writers_custom_css .='}';
		}else if($katib_writers_slider_layout == '0.3'){
		$katib_writers_custom_css .='#banner img{';
			$katib_writers_custom_css .='opacity:0.3';
		$katib_writers_custom_css .='}';
		}else if($katib_writers_slider_layout == '0.4'){
		$katib_writers_custom_css .='#banner img{';
			$katib_writers_custom_css .='opacity:0.4';
		$katib_writers_custom_css .='}';
		}else if($katib_writers_slider_layout == '0.5'){
		$katib_writers_custom_css .='#banner img{';
			$katib_writers_custom_css .='opacity:0.5';
		$katib_writers_custom_css .='}';
		}else if($katib_writers_slider_layout == '0.6'){
		$katib_writers_custom_css .='#banner img{';
			$katib_writers_custom_css .='opacity:0.6';
		$katib_writers_custom_css .='}';
		}else if($katib_writers_slider_layout == '0.7'){
		$katib_writers_custom_css .='#banner img{';
			$katib_writers_custom_css .='opacity:0.7';
		$katib_writers_custom_css .='}';
		}else if($katib_writers_slider_layout == '0.8'){
		$katib_writers_custom_css .='#banner img{';
			$katib_writers_custom_css .='opacity:0.8';
		$katib_writers_custom_css .='}';
		}else if($katib_writers_slider_layout == '0.9'){
		$katib_writers_custom_css .='#banner img{';
			$katib_writers_custom_css .='opacity:0.9';
		$katib_writers_custom_css .='}';
		}

	/*---------------------------Slider Content Layout -------------------*/
	$katib_writers_slider_layout = get_theme_mod( 'katib_writers_slider_content_option','Left');
    if($katib_writers_slider_layout == 'Left'){
		$katib_writers_custom_css .='#banner .box-content, #banner .box-content h1, #banner .box-content p, #banner .box-content .readbutton{';
			$katib_writers_custom_css .='text-align:left;';
		$katib_writers_custom_css .='}';
		$katib_writers_custom_css .='
		@media screen and (max-width: 767px){
		#banner .box-content, #banner .box-content h1, #banner .box-content p, #banner .box-content .readbutton, .social-media{';
		$katib_writers_custom_css .='text-align:left;';
		$katib_writers_custom_css .='} }';
		$katib_writers_custom_css .='
		@media screen and (max-width: 767px){
		#banner .box-content{';
		$katib_writers_custom_css .='top:48%;';
		$katib_writers_custom_css .='} }';
	}else if($katib_writers_slider_layout == 'Center'){
		$katib_writers_custom_css .='#banner .box-content, #banner .box-content h1, #banner .box-content p, #banner .box-content .readbutton{';
			$katib_writers_custom_css .='text-align:center; left:20%; right:20%;';
		$katib_writers_custom_css .='}';
		$katib_writers_custom_css .='
		@media screen and (max-width: 767px){
		#banner .box-content{';
		$katib_writers_custom_css .='top:48%;';
		$katib_writers_custom_css .='} }';
	}else if($katib_writers_slider_layout == 'Right'){
		$katib_writers_custom_css .='#banner .box-content, #banner .box-content h1, #banner .box-content p, #banner .box-content .readbutton{';
			$katib_writers_custom_css .='text-align:right; left:30%; right:10%;';
		$katib_writers_custom_css .='}';
		$katib_writers_custom_css .='
		@media screen and (max-width: 375px){
		#banner .box-content, #banner .box-content h1, #banner .box-content p, #banner .box-content .readbutton, .social-media{';
		$katib_writers_custom_css .='text-align:right; left:15%';
		$katib_writers_custom_css .='} }';
		$katib_writers_custom_css .='
		@media screen and (max-width: 767px){
		#banner .box-content{';
		$katib_writers_custom_css .='top:48%;';
		$katib_writers_custom_css .='} }';
	}

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

    
	$katib_writers_btn_font_size_option = get_theme_mod('katib_writers_btn_font_size_option', 15);
	$katib_writers_custom_css .='.post-link a,#slider .readbutton, .form-submit input[type="submit"]{';
	$katib_writers_custom_css .='font-size: '.esc_attr($katib_writers_btn_font_size_option).'px;';
	$katib_writers_custom_css .='}';

	$katib_writers_top_bottom_padding = get_theme_mod('katib_writers_top_bottom_padding');
	$katib_writers_left_right_padding = get_theme_mod('katib_writers_left_right_padding');
	$katib_writers_custom_css .='.post-link a, #banner .readbutton a, .form-submit input[type="submit"], #about .aboutbtn a{';
		$katib_writers_custom_css .='padding-top: '.esc_attr($katib_writers_top_bottom_padding).'px; padding-bottom: '.esc_attr($katib_writers_top_bottom_padding).'px; padding-left: '.esc_attr($katib_writers_left_right_padding).'px; padding-right: '.esc_attr($katib_writers_left_right_padding).'px; display:inline-block;';
	$katib_writers_custom_css .='}';
	
	$katib_writers_border_radius = get_theme_mod('katib_writers_border_radius');
	$katib_writers_custom_css .='.post-link a, #banner .readbutton a, .form-submit input[type="submit"], #about .aboutbtn a{';
		$katib_writers_custom_css .='border-radius: '.esc_attr($katib_writers_border_radius).'px;';
	$katib_writers_custom_css .='}';

	// Button Text Transform
	$katib_writers_theme_lay = get_theme_mod( 'katib_writers_button_text_transform','Uppercase');
	   if($katib_writers_theme_lay == 'Uppercase'){
		$katib_writers_custom_css .='.post-link a,#slider .readbutton, .form-submit input[type="submit"]{';
		$katib_writers_custom_css .='text-transform: uppercase;';
		$katib_writers_custom_css .='}';
	   }else if($katib_writers_theme_lay == 'Lowercase'){
		$katib_writers_custom_css .='.post-link a,#slider .readbutton, .form-submit input[type="submit"]{';
		$katib_writers_custom_css .='text-transform: lowercase;';
		$katib_writers_custom_css .='}';
	   }
	   else if($katib_writers_theme_lay == 'Capitalize'){
	    $katib_writers_custom_css .='.post-link a,#slider .readbutton, .form-submit input[type="submit"]{';
	    $katib_writers_custom_css .='text-transform: capitalize;';
		$katib_writers_custom_css .='}';
	   }

	// font weight
    $katib_writers_btn_font_weight = get_theme_mod('katib_writers_btn_font_weight');{
	$katib_writers_custom_css .='.post-link a,#slider .readbutton, .form-submit input[type="submit"]{';
	$katib_writers_custom_css .='font-weight: '.esc_attr($katib_writers_btn_font_weight).';';
	$katib_writers_custom_css .='}';
	}   
    
	//Button hover effect
	$katib_writers_button_hover_effect = get_theme_mod('katib_writers_button_hover_effect', 'disable');
	if ($katib_writers_button_hover_effect !== 'disable') {
		$katib_writers_custom_css .= '.post-link a:hover {';
		switch ($katib_writers_button_hover_effect) {
			case 'pulse':
				$katib_writers_custom_css .= 'animation: pulse 0.5s ease-in-out;';
				break;
			case 'rubberBand':
				$katib_writers_custom_css .= 'animation: rubberBand 0.5s ease-in-out;';
				break;
			case 'swing':
				$katib_writers_custom_css .= 'animation: swing 0.5s ease-in-out;';
				break;
			case 'tada':
				$katib_writers_custom_css .= 'animation: tada 0.5s ease-in-out;';
				break;
			case 'jello':
				$katib_writers_custom_css .= 'animation: jello 0.5s ease-in-out;';
				break;
		}
		$katib_writers_custom_css .= '}';
	}

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

	/*--------- Preloader Color Option -------*/
	$katib_writers_loader_color_setting = get_theme_mod('katib_writers_loader_color_setting');
	$katib_writers_custom_css .=' .circle .inner{';
		$katib_writers_custom_css .='border-color: '.esc_attr($katib_writers_loader_color_setting).';';
	$katib_writers_custom_css .='} ';

	$katib_writers_loader_background_color = get_theme_mod('katib_writers_loader_background_color');
	$katib_writers_custom_css .=' #pre-loader{';
		$katib_writers_custom_css .='background-color: '.esc_attr($katib_writers_loader_background_color).';';
	$katib_writers_custom_css .='} ';

	$katib_writers_theme_lay = get_theme_mod( 'katib_writers_preloader_types','Default');
    if($katib_writers_theme_lay == 'Default'){
		$katib_writers_custom_css .='{';
			$katib_writers_custom_css .='';
		$katib_writers_custom_css .='}';
	}elseif($katib_writers_theme_lay == 'Circle'){
		$katib_writers_custom_css .='.circle .inner{';
			$katib_writers_custom_css .='width:unset;';
		$katib_writers_custom_css .='}';
	}elseif($katib_writers_theme_lay == 'Two Circle'){
		$katib_writers_custom_css .='.circle .inner{';
			$katib_writers_custom_css .='width:80%;
    border-right: 5px;';
		$katib_writers_custom_css .='}';
	}

	/*------------------Blog Layout -------------------*/
	$katib_writers_theme_lay = get_theme_mod( 'katib_writers_blog_post_layout','Default');
    if($katib_writers_theme_lay == 'Default'){
		$katib_writers_custom_css .='.blogger{';
			$katib_writers_custom_css .='';
		$katib_writers_custom_css .='}';
	}else if($katib_writers_theme_lay == 'Left'){
		$katib_writers_custom_css .='.blogger, .blogger h2, .post-info, .text p, .blogger .post-link, #our-services p{';
			$katib_writers_custom_css .='text-align:Left;';
		$katib_writers_custom_css .='}';
		$katib_writers_custom_css .='.blogger .post-link{';
			$katib_writers_custom_css .='margin:20px 0;';
		$katib_writers_custom_css .='}';
		$katib_writers_custom_css .='.post-info hr{';
			$katib_writers_custom_css .='margin-bottom:10px;';
		$katib_writers_custom_css .='}';
		$katib_writers_custom_css .='.blogger h2{';
			$katib_writers_custom_css .='margin-top:10px;';
		$katib_writers_custom_css .='}';
	}else if($katib_writers_theme_lay == 'Image and Content'){
		$katib_writers_custom_css .='.blogger, .blogger h2, .post-info, .text p, #our-services p{';
			$katib_writers_custom_css .='text-align:Left;';
		$katib_writers_custom_css .='}';
		$katib_writers_custom_css .='.blogger .post-link{';
			$katib_writers_custom_css .='text-align:right;';
		$katib_writers_custom_css .='}';
		$katib_writers_custom_css .='.blogger .post-info a, .blogger .post-info i{';
			$katib_writers_custom_css .='font-size:12px;';
		$katib_writers_custom_css .='}';
		$katib_writers_custom_css .='@media screen and (max-width:575px) {';
		$katib_writers_custom_css .='.blogger .post-info{';
			$katib_writers_custom_css .='margin-top:10px;';
		$katib_writers_custom_css .='} }';
	}else if($katib_writers_theme_lay == 'Content and Image'){
		$katib_writers_custom_css .='.blogger, .blogger h2, .post-info, .text p, #our-services p{';
			$katib_writers_custom_css .='text-align:Left;';
		$katib_writers_custom_css .='}';
		$katib_writers_custom_css .='.blogger .post-link{';
			$katib_writers_custom_css .='text-align:right;';
		$katib_writers_custom_css .='}';
		$katib_writers_custom_css .='.blogger .post-info a, .blogger .post-info i{';
			$katib_writers_custom_css .='font-size:12px;';
		$katib_writers_custom_css .='}';
		$katib_writers_custom_css .='@media screen and (max-width:575px) {';
		$katib_writers_custom_css .='.blogger .post-info{';
			$katib_writers_custom_css .='margin-top:10px;';
		$katib_writers_custom_css .='} }';
	}


	$katib_writers_loader_background_image = get_theme_mod('katib_writers_loader_background_image');
	if($katib_writers_loader_background_image != false){
		$katib_writers_custom_css .='#pre-loader{';
			$katib_writers_custom_css .='background: url('.esc_attr($katib_writers_loader_background_image).');-webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover;';
		$katib_writers_custom_css .='}';
	}

	// Responsive Media
    	$katib_writers_preloader = get_theme_mod( 'katib_writers_enable_disable_preloader', false);
	if($katib_writers_preloader == true && get_theme_mod( 'katib_writers_loader_setting', false) == false){
    	$katib_writers_custom_css .='#pre-loader{';
			$katib_writers_custom_css .='visibility:hidden;';
		$katib_writers_custom_css .='} ';
	}
    if($katib_writers_preloader == true){
    	$katib_writers_custom_css .='@media screen and (max-width:575px) {';
		$katib_writers_custom_css .='#pre-loader{';
			$katib_writers_custom_css .='visibility:visible;';
		$katib_writers_custom_css .='} }';
	}else if($katib_writers_preloader == false){
		$katib_writers_custom_css .='@media screen and (max-width:575px) {';
		$katib_writers_custom_css .='#pre-loader{';
			$katib_writers_custom_css .='visibility:hidden;';
		$katib_writers_custom_css .='} }';
	}

	$katib_writers_sidebar = get_theme_mod( 'katib_writers_enable_disable_sidebar',true);
    if($katib_writers_sidebar == true){
    	$katib_writers_custom_css .='@media screen and (max-width:575px) {';
		$katib_writers_custom_css .='#sidebox{';
			$katib_writers_custom_css .='display:block;';
		$katib_writers_custom_css .='} }';
	}else if($katib_writers_sidebar == false){
		$katib_writers_custom_css .='@media screen and (max-width:575px) {';
		$katib_writers_custom_css .='#sidebox{';
			$katib_writers_custom_css .='display:none;';
		$katib_writers_custom_css .='} }';
	}

	$katib_writers_banner = get_theme_mod( 'katib_writers_enable_disable_banner',true);
    if($katib_writers_banner == true){
    	$katib_writers_custom_css .='@media screen and (max-width:575px) {';
		$katib_writers_custom_css .='#banner{';
			$katib_writers_custom_css .='display:block;';
		$katib_writers_custom_css .='} }';
	}else if($katib_writers_banner == false){
		$katib_writers_custom_css .='@media screen and (max-width:575px) {';
		$katib_writers_custom_css .='#banner{';
			$katib_writers_custom_css .='display:none;';
		$katib_writers_custom_css .='} }';
	}

	$katib_writers_bannerbutton = get_theme_mod( 'katib_writers_show_hide_banner_button',true);
	if($katib_writers_bannerbutton == true && get_theme_mod( 'katib_writers_banner_button',true) == false){
    	$katib_writers_custom_css .='#banner .box-content .readbutton{';
			$katib_writers_custom_css .='display:none;';
		$katib_writers_custom_css .='} ';
	}
    if($katib_writers_bannerbutton == true){
    	$katib_writers_custom_css .='@media screen and (max-width:575px) {';
		$katib_writers_custom_css .='.readbutton{';
			$katib_writers_custom_css .='display:block;';
		$katib_writers_custom_css .='} }';
	}else if($katib_writers_bannerbutton == false){
		$katib_writers_custom_css .='@media screen and (max-width:575px){';
		$katib_writers_custom_css .='.readbutton{';
			$katib_writers_custom_css .='display:none;';
		$katib_writers_custom_css .='} }';
	}

	$katib_writers_bannerbutton = get_theme_mod( 'katib_writers_enable_disable_scrolltop',false);
	if($katib_writers_bannerbutton == true && get_theme_mod( 'katib_writers_hide_show_scroll',false) != true){
    	$katib_writers_custom_css .='.scrollup i{';
			$katib_writers_custom_css .='display:none;';
		$katib_writers_custom_css .='} ';
	}
    if($katib_writers_bannerbutton == true){
    	$katib_writers_custom_css .='@media screen and (max-width:575px) {';
		$katib_writers_custom_css .='.scrollup i{';
			$katib_writers_custom_css .='display:block;';
		$katib_writers_custom_css .='} }';
	}else if($katib_writers_bannerbutton == false){
		$katib_writers_custom_css .='@media screen and (max-width:575px){';
		$katib_writers_custom_css .='.scrollup i{';
			$katib_writers_custom_css .='display:none;';
		$katib_writers_custom_css .='} }';
	}

	// Copyright top-bottom padding setting 
	$katib_writers_copyright_top_bottom_padding = get_theme_mod('katib_writers_copyright_top_bottom_padding');
	$katib_writers_custom_css .='.copyright{';
		$katib_writers_custom_css .='padding-top: '.esc_attr($katib_writers_copyright_top_bottom_padding).'px; padding-bottom: '.esc_attr($katib_writers_copyright_top_bottom_padding).'px;';
	$katib_writers_custom_css .='}';

	$katib_writers_footer_text_font_size = get_theme_mod('katib_writers_footer_text_font_size', 16);
	$katib_writers_custom_css .='.site-info{';
		$katib_writers_custom_css .='font-size: '.esc_attr($katib_writers_footer_text_font_size).'px;';
	$katib_writers_custom_css .='}';

	$katib_writers_footer_icon_font_size = get_theme_mod('katib_writers_footer_icon_font_size');{
		$katib_writers_custom_css .='.site-info .socialicons i{';
			$katib_writers_custom_css .='font-size: '.esc_attr($katib_writers_footer_icon_font_size).'px;';
		$katib_writers_custom_css .='}';
	}

	// Slider Height 
	$katib_writers_banner_height_option = get_theme_mod('katib_writers_banner_height_option');
	$katib_writers_custom_css .='#banner img{';
		$katib_writers_custom_css .='height: '.esc_attr($katib_writers_banner_height_option).'px;';
	$katib_writers_custom_css .='}';

	// scroll to top setting
	$katib_writers_scroll_border_radius = get_theme_mod('katib_writers_scroll_border_radius');
	$katib_writers_custom_css .='.scrollup i{';
		$katib_writers_custom_css .='border-radius: '.esc_attr($katib_writers_scroll_border_radius).'px;';
	$katib_writers_custom_css .='}';

	$katib_writers_scroll_top_fontsize = get_theme_mod('katib_writers_scroll_top_fontsize');
	$katib_writers_custom_css .='.scrollup i{';
		$katib_writers_custom_css .='font-size: '.esc_attr($katib_writers_scroll_top_fontsize).'px;';
	$katib_writers_custom_css .='}';

	$katib_writers_scroll_top_bottom_padding = get_theme_mod('katib_writers_scroll_top_bottom_padding');
	$katib_writers_scroll_left_right_padding = get_theme_mod('katib_writers_scroll_left_right_padding');
	$katib_writers_custom_css .='.scrollup i{';
		$katib_writers_custom_css .='padding-top: '.esc_attr($katib_writers_scroll_top_bottom_padding).'px; padding-bottom: '.esc_attr($katib_writers_scroll_top_bottom_padding).'px; padding-left: '.esc_attr($katib_writers_scroll_left_right_padding).'px; padding-right: '.esc_attr($katib_writers_scroll_left_right_padding).'px;';
	$katib_writers_custom_css .='}';

	// comment settings
	$katib_writers_comment_button_text = get_theme_mod('katib_writers_comment_button_text', 'Post Comment');
	if($katib_writers_comment_button_text == ''){
		$katib_writers_custom_css .='#comments p.form-submit {';
			$katib_writers_custom_css .='display: none;';
		$katib_writers_custom_css .='}';
	}

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

	$katib_writers_comment_form_size = get_theme_mod( 'katib_writers_comment_form_size',100);
	$katib_writers_custom_css .='#comments textarea{';
		$katib_writers_custom_css .='width: '.esc_attr($katib_writers_comment_form_size).'%;';
	$katib_writers_custom_css .='}';

	/*------------ Woocommerce Settings  --------------*/
	$katib_writers_shop_button_padding_top = get_theme_mod('katib_writers_shop_button_padding_top', 9);
	$katib_writers_custom_css .='.woocommerce #respond input#submit, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit.alt, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt, .woocommerce button.button:disabled, .woocommerce button.button:disabled[disabled]{';
		$katib_writers_custom_css .='padding-top: '.esc_attr($katib_writers_shop_button_padding_top).'px; padding-bottom: '.esc_attr($katib_writers_shop_button_padding_top).'px;';
	$katib_writers_custom_css .='}';

	$katib_writers_shop_button_padding_left = get_theme_mod('katib_writers_shop_button_padding_left', 16);
	$katib_writers_custom_css .='.woocommerce #respond input#submit, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit.alt, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt, .woocommerce button.button:disabled, .woocommerce button.button:disabled[disabled]{';
		$katib_writers_custom_css .='padding-left: '.esc_attr($katib_writers_shop_button_padding_left).'px; padding-right: '.esc_attr($katib_writers_shop_button_padding_left).'px;';
	$katib_writers_custom_css .='}';

	$katib_writers_shop_button_border_radius = get_theme_mod('katib_writers_shop_button_border_radius',3);
	$katib_writers_custom_css .='.woocommerce #respond input#submit, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit.alt, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt{';
		$katib_writers_custom_css .='border-radius: '.esc_attr($katib_writers_shop_button_border_radius).'px;';
	$katib_writers_custom_css .='}';

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

	$katib_writers_shop_products_border = get_theme_mod('katib_writers_shop_products_border', true);
	if($katib_writers_shop_products_border == false){
		$katib_writers_custom_css .='.woocommerce .products li{';
			$katib_writers_custom_css .='border: none;';
		$katib_writers_custom_css .='}';
	}

	$katib_writers_shop_page_top_padding = get_theme_mod('katib_writers_shop_page_top_padding',10);
	$katib_writers_custom_css .='.woocommerce ul.products li.product, .woocommerce-page ul.products li.product{';
		$katib_writers_custom_css .='padding-top: '.esc_attr($katib_writers_shop_page_top_padding).'px !important; padding-bottom: '.esc_attr($katib_writers_shop_page_top_padding).'px !important;';
	$katib_writers_custom_css .='}';

	$katib_writers_shop_page_left_padding = get_theme_mod('katib_writers_shop_page_left_padding',10);
	$katib_writers_custom_css .='.woocommerce ul.products li.product, .woocommerce-page ul.products li.product{';
		$katib_writers_custom_css .='padding-left: '.esc_attr($katib_writers_shop_page_left_padding).'px !important; padding-right: '.esc_attr($katib_writers_shop_page_left_padding).'px !important;';
	$katib_writers_custom_css .='}';

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

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

	// footer widget background

	$katib_writers_footer_widget_background = get_theme_mod('katib_writers_footer_widget_background', '#054e47');
	$katib_writers_custom_css .='.site-footer{';
		$katib_writers_custom_css .='background-color: '.esc_attr($katib_writers_footer_widget_background).';';
	$katib_writers_custom_css .='}';

	$katib_writers_footer_widget_image = get_theme_mod('katib_writers_footer_widget_image');
	if($katib_writers_footer_widget_image != false){
		$katib_writers_custom_css .='.site-footer{';
			$katib_writers_custom_css .='background: url('.esc_attr($katib_writers_footer_widget_image).');';
		$katib_writers_custom_css .='background-repeat: no-repeat;';
		$katib_writers_custom_css .='background-size: cover;';
			$katib_writers_custom_css .='}';
	}

	$katib_writers_theme_lay = get_theme_mod( 'katib_writers_img_footer','scroll');
	if($katib_writers_theme_lay == 'fixed'){
		$katib_writers_custom_css .='.site-footer{';
			$katib_writers_custom_css .='background-attachment: fixed !important;';
		$katib_writers_custom_css .='}';
	}elseif ($katib_writers_theme_lay == 'scroll'){
		$katib_writers_custom_css .='.site-footer{';
			$katib_writers_custom_css .='background-attachment: scroll !important;';
		$katib_writers_custom_css .='}';
	}

	$katib_writers_footer_img_position = get_theme_mod('katib_writers_footer_img_position','center center');
	if($katib_writers_footer_img_position != false){
		$katib_writers_custom_css .='.site-footer{';
			$katib_writers_custom_css .='background-position: '.esc_attr($katib_writers_footer_img_position).'!important;';
		$katib_writers_custom_css .='}';
	} 

	$katib_writers_footer_heading_alignment = get_theme_mod( 'katib_writers_footer_heading_option','Left');
    if($katib_writers_footer_heading_alignment == 'Left'){
		$katib_writers_custom_css .='.site-footer h3{';
		$katib_writers_custom_css .='text-align: left;';
		$katib_writers_custom_css .='}';
	}else if($katib_writers_footer_heading_alignment == 'Center'){
		$katib_writers_custom_css .='.site-footer h3{';
			$katib_writers_custom_css .='text-align: center;';
		$katib_writers_custom_css .='}';
	}else if($katib_writers_footer_heading_alignment == 'Right'){
		$katib_writers_custom_css .='.site-footer h3{';
			$katib_writers_custom_css .='text-align: right;';
		$katib_writers_custom_css .='}';
	}

	// Footer Heading Text Transform
	$katib_writers_theme_lay = get_theme_mod( 'katib_writers_footer_text_tranform','Capitalize');
	if($katib_writers_theme_lay == 'Uppercase'){
		$katib_writers_custom_css .='.site-footer h3{';
			$katib_writers_custom_css .='text-transform: Uppercase!important;';
		$katib_writers_custom_css .='}';
	}else if($katib_writers_theme_lay == 'Lowercase'){
		$katib_writers_custom_css .='.site-footer h3{';
			$katib_writers_custom_css .='text-transform: Lowercase!important;';
		$katib_writers_custom_css .='}';
	}
	else if($katib_writers_theme_lay == 'Capitalize'){
		$katib_writers_custom_css .='.site-footer h3{';
			$katib_writers_custom_css .='text-transform: Capitalize!important;';
		$katib_writers_custom_css .='}';
	}	

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

	$katib_writers_footer_content_alignment = get_theme_mod( 'katib_writers_footer_content_option','Left');
    if($katib_writers_footer_content_alignment == 'Left'){
		$katib_writers_custom_css .='.site-footer ul, .site-footer p, .site-footer .tagcloud{';
		$katib_writers_custom_css .='text-align: left;';
		$katib_writers_custom_css .='}';
	}else if($katib_writers_footer_content_alignment == 'Center'){
		$katib_writers_custom_css .='.site-footer ul, .site-footer p, .site-footer .tagcloud{';
			$katib_writers_custom_css .='text-align: center;';
		$katib_writers_custom_css .='}';
	}else if($katib_writers_footer_content_alignment == 'Right'){
		$katib_writers_custom_css .='.site-footer ul, .site-footer p, .site-footer .tagcloud{';
			$katib_writers_custom_css .='text-align: right;';
		$katib_writers_custom_css .='}';
	}

	//footer icon color
	$katib_writers_footer_icon_color = get_theme_mod('katib_writers_footer_icon_color', '#fff');
	$katib_writers_custom_css .='.site-info .socialicons a{';
	$katib_writers_custom_css .='color: '.esc_attr($katib_writers_footer_icon_color).'!important;';
	$katib_writers_custom_css .='}';	

	/*---------------------------Footer top bottom padding -------------------*/
	$katib_writers_footer_padding = get_theme_mod('katib_writers_footer_padding');
	if($katib_writers_footer_padding != false){
		$katib_writers_custom_css .='.site-footer{';
			$katib_writers_custom_css .='padding: '.esc_attr($katib_writers_footer_padding).' 0 !important;';
		$katib_writers_custom_css .='}';
	}

	/*------------- Navigation Menu Font Size ------------------*/
	$katib_writers_navigation_menu_font_size = get_theme_mod('katib_writers_navigation_menu_font_size');{
		$katib_writers_custom_css .='.main-navigation a, .navigation-top a{';
			$katib_writers_custom_css .='font-size: '.esc_attr($katib_writers_navigation_menu_font_size).'px;';
		$katib_writers_custom_css .='}';
	}

	$katib_writers_theme_lay = get_theme_mod( 'katib_writers_menu_text_tranform','Default');
	if($katib_writers_theme_lay == 'Capitalize'){
		$katib_writers_custom_css .='.main-navigation a, .navigation-top a,.main-navigation ul ul a, .main-navigation ul ul li a{';
			$katib_writers_custom_css .='text-transform:capitalize;';
		$katib_writers_custom_css .='}';
	}else if($katib_writers_theme_lay == 'Lowercase'){
		$katib_writers_custom_css .='.main-navigation a, .navigation-top a,.main-navigation ul ul a, .main-navigation ul ul li a{';
			$katib_writers_custom_css .='text-transform:lowercase;';
		$katib_writers_custom_css .='}';
	}

	/*------------- Navigation Menu Font Weight ------------------*/
	$katib_writers_menu_font_weight = get_theme_mod('katib_writers_menu_font_weight');
	$katib_writers_custom_css .='.main-navigation a, .navigation-top a,.main-navigation ul li a{';
		$katib_writers_custom_css .='font-weight: '.esc_attr($katib_writers_menu_font_weight).';';
	$katib_writers_custom_css .='}';

	// menu color
	$katib_writers_menu_color = get_theme_mod('katib_writers_menu_color');
	$katib_writers_custom_css .='.main-navigation a, .main-navigation ul li a, #site-navigation li a{';
			$katib_writers_custom_css .='color: '.esc_attr($katib_writers_menu_color).' !important;';
	$katib_writers_custom_css .='}';

	// Sub menu color
	$katib_writers_sub_menu_color = get_theme_mod('katib_writers_sub_menu_color');
	$katib_writers_custom_css .='.main-navigation ul.sub-menu a, .main-navigation ul.sub-menu li a, #site-navigation ul.sub-menu li a{';
			$katib_writers_custom_css .='color: '.esc_attr($katib_writers_sub_menu_color).' !important;';
	$katib_writers_custom_css .='}';

	// menu hover color
	$katib_writers_menu_hover_color = get_theme_mod('katib_writers_menu_hover_color');
	$katib_writers_custom_css .='.main-navigation a:hover, .main-navigation ul li a:hover, .main-navigation .current_page_item > a:hover, .main-navigation .current-menu-item > a:hover, .main-navigation .current_page_ancestor > a:hover, #site-navigation li a:hover{';
			$katib_writers_custom_css .='color: '.esc_attr($katib_writers_menu_hover_color).' !important;';
	$katib_writers_custom_css .='}';

	// Sub menu hover color
	$katib_writers_sub_menu_hover_color = get_theme_mod('katib_writers_sub_menu_hover_color');
	$katib_writers_custom_css .='.main-navigation ul.sub-menu a:hover, .main-navigation ul.sub-menu li a:hover, .main-navigation .current_page_item > a:hover, .main-navigation .current-menu-item > a:hover, .main-navigation .current_page_ancestor > a:hover, #site-navigation ul.sub-menu li a:hover{';
			$katib_writers_custom_css .='color: '.esc_attr($katib_writers_sub_menu_hover_color).' !important;';
	$katib_writers_custom_css .='}';

	// menu hover effect
	$katib_writers_menus_item = get_theme_mod( 'katib_writers_menus_item_style','None');
    if($katib_writers_menus_item == 'None'){
		$katib_writers_custom_css .='.main-navigation ul li a{';
			$katib_writers_custom_css .='';
		$katib_writers_custom_css .='}';
	}else if($katib_writers_menus_item == 'Zoom In'){
		$katib_writers_custom_css .='.main-navigation ul li a:hover{';
			$katib_writers_custom_css .='transition: all 0.3s ease-in-out !important; transform: scale(1.2) !important;';
		$katib_writers_custom_css .='}';
	}	

	// site title color option
	$katib_writers_site_title_color_setting = get_theme_mod('katib_writers_site_title_color_setting');
	$katib_writers_custom_css .=' .logo h1 a, .site-title a{';
		$katib_writers_custom_css .='color: '.esc_attr($katib_writers_site_title_color_setting).';';
	$katib_writers_custom_css .='} ';

	$katib_writers_tagline_color_setting = get_theme_mod('katib_writers_tagline_color_setting');
	$katib_writers_custom_css .=' .logo p{';
		$katib_writers_custom_css .='color: '.esc_attr($katib_writers_tagline_color_setting).';';
	$katib_writers_custom_css .='} ';

	// site title font size option
	$katib_writers_site_title_font_size = get_theme_mod('katib_writers_site_title_font_size', 35);{
	$katib_writers_custom_css .='.logo h1, .site-title a{';
	$katib_writers_custom_css .='font-size: '.esc_attr($katib_writers_site_title_font_size).'px;';
		$katib_writers_custom_css .='}';
	}

	$katib_writers_site_tagline_font_size_settings = get_theme_mod('katib_writers_site_tagline_font_size_settings', 14);{
	$katib_writers_custom_css .='.logo p{';
	$katib_writers_custom_css .='font-size: '.esc_attr($katib_writers_site_tagline_font_size_settings).'px !important;';
		$katib_writers_custom_css .='}';
	}

	// -------------- site logo margin ------------
	$katib_writers_logo_margin = get_theme_mod('katib_writers_logo_margin', '');{ 
	$katib_writers_custom_css .='.logo{';
	$katib_writers_custom_css .='margin: '.esc_attr($katib_writers_logo_margin).'px ;';
	$katib_writers_custom_css .='}';
	}
	//  ------------------logo padding-----------
	$katib_writers_logo_padding = get_theme_mod('katib_writers_logo_padding');
	$katib_writers_custom_css .='.logo{';
	$katib_writers_custom_css .='padding: '.esc_attr($katib_writers_logo_padding).'px;';
	$katib_writers_custom_css .='}';

	/*------------------ Background Skin Option  -------------------*/
	$katib_writers_theme_lay = get_theme_mod( 'katib_writers_background_image_type','Transparent');
    if($katib_writers_theme_lay == 'Background'){
		$katib_writers_custom_css .='.blogger, #sidebox .widget, .about-text, .related-posts .page-box, .woocommerce ul.products li.product, .woocommerce-page ul.products li.product, .background-img-skin, .pages-te, .woocommerce .woocommerce-ordering{';
			$katib_writers_custom_css .='background-color: #fff; padding:10px;';
		$katib_writers_custom_css .='}';
	}else if($katib_writers_theme_lay == 'Transparent'){
		$katib_writers_custom_css .='{';
			$katib_writers_custom_css .='background-color: transparent;';
		$katib_writers_custom_css .='}';
	}

	// css
	$katib_writers_banner_page = get_theme_mod( 'katib_writers_banner_page', false);
	if($katib_writers_banner_page == false){
		$katib_writers_custom_css .='.page-template-home-custom #masthead .main-header{';
			$katib_writers_custom_css .='position: static;';
		$katib_writers_custom_css .='}';
	}

	// slider overlay
	$katib_writers_show_banner_image_overlay = get_theme_mod('katib_writers_show_banner_image_overlay', true);
	if($katib_writers_show_banner_image_overlay == false){
		$katib_writers_custom_css .='#banner img{';
			$katib_writers_custom_css .='opacity:1;';
		$katib_writers_custom_css .='}';
	} 
	$katib_writers_color_banner_image_overlay = get_theme_mod('katib_writers_color_banner_image_overlay', true);
	if($katib_writers_show_banner_image_overlay != false){
		$katib_writers_custom_css .='#banner{';
			$katib_writers_custom_css .='background-color: '.esc_attr($katib_writers_color_banner_image_overlay).';';
		$katib_writers_custom_css .='}';
	}

	// woocommerce product sale settings
	$katib_writers_border_radius_product_sale_text = get_theme_mod('katib_writers_border_radius_product_sale_text',50);
	$katib_writers_custom_css .='.woocommerce span.onsale {';
		$katib_writers_custom_css .='border-radius: '.esc_attr($katib_writers_border_radius_product_sale_text).'%;';
	$katib_writers_custom_css .='}';

	$katib_writers_position_product_sale = get_theme_mod('katib_writers_position_product_sale', 'Right');
	if($katib_writers_position_product_sale == 'Right' ){
		$katib_writers_custom_css .='.woocommerce ul.products li.product .onsale{';
			$katib_writers_custom_css .=' left:auto; right:0;';
		$katib_writers_custom_css .='}';
	}elseif($katib_writers_position_product_sale == 'Left' ){
		$katib_writers_custom_css .='.woocommerce ul.products li.product .onsale{';
			$katib_writers_custom_css .=' left:0; right:auto;';
		$katib_writers_custom_css .='}';
	}

	$katib_writers_product_sale_text_size = get_theme_mod('katib_writers_product_sale_text_size',14);
	$katib_writers_custom_css .='.woocommerce span.onsale{';
		$katib_writers_custom_css .='font-size: '.esc_attr($katib_writers_product_sale_text_size).'px;';
	$katib_writers_custom_css .='}';

	$katib_writers_top_bottom_product_sale_padding = get_theme_mod('katib_writers_top_bottom_product_sale_padding');
	$katib_writers_left_right_product_sale_padding = get_theme_mod('katib_writers_left_right_product_sale_padding');
	$katib_writers_custom_css .='.woocommerce span.onsale{';
		$katib_writers_custom_css .='padding-top: '.esc_attr($katib_writers_top_bottom_product_sale_padding).'px; padding-bottom: '.esc_attr($katib_writers_top_bottom_product_sale_padding).'px; padding-left: '.esc_attr($katib_writers_left_right_product_sale_padding).'px; padding-right: '.esc_attr($katib_writers_left_right_product_sale_padding).'px; display:inline-block;';
	$katib_writers_custom_css .='}';

	// woocommerce Product Navigation
	$katib_writers_shop_products_navigation = get_theme_mod('katib_writers_shop_products_navigation', 'Yes');
	if($katib_writers_shop_products_navigation == 'No'){
		$katib_writers_custom_css .='.woocommerce nav.woocommerce-pagination{';
			$katib_writers_custom_css .='display: none;';
		$katib_writers_custom_css .='}';
	}

	// Post Block
	$katib_writers_post_break_block_setting = get_theme_mod( 'katib_writers_post_break_block_setting','Into Blocks');
    if($katib_writers_post_break_block_setting == 'Without Blocks'){
		$katib_writers_custom_css .='.blogger{';
			$katib_writers_custom_css .='border: none; margin:30px 0;';
		$katib_writers_custom_css .='}';
	}

	// Pagination Alignment
	$katib_writers_post_pagination_alignment = get_theme_mod( 'katib_writers_post_pagination_option','Left');
    if($katib_writers_post_pagination_alignment == 'Left'){
		$katib_writers_custom_css .='.navigation nav.pagination{';
		$katib_writers_custom_css .='justify-content: left;';
		$katib_writers_custom_css .='}';
	}else if($katib_writers_post_pagination_alignment == 'Center'){
		$katib_writers_custom_css .='.navigation nav.pagination{';
			$katib_writers_custom_css .='justify-content: center;';
		$katib_writers_custom_css .='}';
	}else if($katib_writers_post_pagination_alignment == 'Right'){
		$katib_writers_custom_css .='.navigation nav.pagination{';
			$katib_writers_custom_css .='justify-content: right;';
		$katib_writers_custom_css .='}';
	}

	// fixed header padding option
	$katib_writers_fixed_header_padding_option = get_theme_mod('katib_writers_fixed_header_padding_option');
	$katib_writers_custom_css .='.fixed-header{';
		$katib_writers_custom_css .='padding: '.esc_attr($katib_writers_fixed_header_padding_option).'px;';
	$katib_writers_custom_css .='}';

	// slider top and bottom padding
	$katib_writers_padding_top_bottom_slider_content = get_theme_mod('katib_writers_padding_top_bottom_slider_content');
	$katib_writers_padding_left_right_slider_content = get_theme_mod('katib_writers_padding_left_right_slider_content');
	$katib_writers_custom_css .='#banner .box-content, #banner .box-content h1, #banner .box-content p, #banner .box-content .readbutton{';
		$katib_writers_custom_css .='top: '.esc_attr($katib_writers_padding_top_bottom_slider_content).'%; bottom: '.esc_attr($katib_writers_padding_top_bottom_slider_content).'%;left: '.esc_attr($katib_writers_padding_left_right_slider_content).'%;right: '.esc_attr($katib_writers_padding_left_right_slider_content).'%;';
	$katib_writers_custom_css .='}';

	// featured image setting
	$katib_writers_post_image_border_radius = get_theme_mod('katib_writers_post_image_border_radius', 0);
	$katib_writers_custom_css .='.post-image img, .wrapper img{';
		$katib_writers_custom_css .='border-radius: '.esc_attr($katib_writers_post_image_border_radius).'px;';
	$katib_writers_custom_css .='}';

	$katib_writers_featured_image_box_shadow = get_theme_mod('katib_writers_featured_image_box_shadow',0);
	$katib_writers_custom_css .='.post-image img, .wrapper img{';
		$katib_writers_custom_css .='box-shadow: '.esc_attr($katib_writers_featured_image_box_shadow).'px '.esc_attr($katib_writers_featured_image_box_shadow).'px '.esc_attr($katib_writers_featured_image_box_shadow).'px #ccc;';
	$katib_writers_custom_css .='}';
	
    //Copyright background css
	$katib_writers_copyright_background_color = get_theme_mod('katib_writers_copyright_background_color');
	$katib_writers_custom_css .='.copyright{';
		$katib_writers_custom_css .='background-color: '.esc_attr($katib_writers_copyright_background_color).';';
	$katib_writers_custom_css .='}';

	$katib_writers_copyright_text_color = get_theme_mod('katib_writers_copyright_text_color');
	$katib_writers_custom_css .='.site-info , .site-info a{';
		$katib_writers_custom_css .='color: '.esc_attr($katib_writers_copyright_text_color).'!important;';
	$katib_writers_custom_css .='}';

	// Single Post Categories
	$katib_writers_show_hide_single_post_categories = get_theme_mod('katib_writers_show_hide_single_post_categories',false);
	if ($katib_writers_show_hide_single_post_categories == false) {
		$katib_writers_custom_css .='.post-info{';
			$katib_writers_custom_css .=' margin-top:20px;';
		$katib_writers_custom_css .='}';
	}
    
	// Banner Width Layout
	$katib_writers_banner_width_options = get_theme_mod('katib_writers_banner_width_options', 'Full Width');
	if($katib_writers_banner_width_options == 'Full Width' ){
		$katib_writers_custom_css .='.page-template-home-custom #masthead .main-header{';
			$katib_writers_custom_css .=' position:absolute;';
		$katib_writers_custom_css .='}';
	}elseif($katib_writers_banner_width_options == 'Container Width' ){
		$katib_writers_custom_css .='.page-template-home-custom #masthead .main-header{';
			$katib_writers_custom_css .=' position:static;';
		$katib_writers_custom_css .='}';
	}

    /*------------- Banner ------------*/

	$katib_writers_banner_show_hide = get_theme_mod('katib_writers_banner_show_hide', false);
	if($katib_writers_banner_show_hide == false){
		$katib_writers_custom_css .='.page-template-home-custom #masthead .main-header{';
		$katib_writers_custom_css .='position: static;';
		$katib_writers_custom_css .='}';
	}

     // Blog post image border radious
    $katib_writers_blog_post_img_border_radius = get_theme_mod('katib_writers_blog_post_img_border_radius', 0);
	$katib_writers_custom_css .='.blogger .post-image img{';
		$katib_writers_custom_css .='border-radius: '.esc_attr($katib_writers_blog_post_img_border_radius).'px;';
	$katib_writers_custom_css .='}';

     // Blog post image box shadow
	$katib_writers_blog_post_img_box_shadow = get_theme_mod('katib_writers_blog_post_img_box_shadow',0);
	$katib_writers_custom_css .='.blogger .post-image img{';
		$katib_writers_custom_css .='box-shadow: '.esc_attr($katib_writers_blog_post_img_box_shadow).'px '.esc_attr($katib_writers_blog_post_img_box_shadow).'px '.esc_attr($katib_writers_blog_post_img_box_shadow).'px #ccc;';
	$katib_writers_custom_css .='}';

	// featured image dimention
	$katib_writers_post_image_dimention = get_theme_mod('katib_writers_post_image_dimention', 'Default');
	$katib_writers_post_featured_image_width = get_theme_mod('katib_writers_post_featured_image_width');
	$katib_writers_post_featured_image_height = get_theme_mod('katib_writers_post_featured_image_height');
	if($katib_writers_post_image_dimention == 'Custom Image Size'){
		$katib_writers_custom_css .='.blogger .post-image img{';
			$katib_writers_custom_css .='width: '.esc_attr($katib_writers_post_featured_image_width).'px; height: '.esc_attr($katib_writers_post_featured_image_height).'px;';
		$katib_writers_custom_css .='}';
	}

    // Single post image border radious
	$katib_writers_single_post_img_border_radius = get_theme_mod('katib_writers_single_post_img_border_radius', 0);
	$katib_writers_custom_css .='.blogger.singlebox img{';
		$katib_writers_custom_css .='border-radius: '.esc_attr($katib_writers_single_post_img_border_radius).'px;';
	$katib_writers_custom_css .='}';

	 // Single post image box shadow
	$katib_writers_single_post_img_box_shadow = get_theme_mod('katib_writers_single_post_img_box_shadow',0);
	$katib_writers_custom_css .='.blogger.singlebox img{';
		$katib_writers_custom_css .='box-shadow: '.esc_attr($katib_writers_single_post_img_box_shadow).'px '.esc_attr($katib_writers_single_post_img_box_shadow).'px '.esc_attr($katib_writers_single_post_img_box_shadow).'px #ccc;';
	$katib_writers_custom_css .='}';

	// Single post comments
	$katib_writers_post_comment_enable = get_theme_mod('katib_writers_post_comment_enable',true);
	if($katib_writers_post_comment_enable == false){
		$katib_writers_custom_css .='#comments{';
			$katib_writers_custom_css .='display: none;';
		$katib_writers_custom_css .='}';
	} 

	// single post image dimention
	$katib_writers_single_post_image_dimention = get_theme_mod('katib_writers_single_post_image_dimention', 'Default');
	$katib_writers_single_post_featured_image_width = get_theme_mod('katib_writers_single_post_featured_image_width');
	$katib_writers_single_post_featured_image_height = get_theme_mod('katib_writers_single_post_featured_image_height');
	if($katib_writers_single_post_image_dimention == 'Custom Image Size'){
		$katib_writers_custom_css .='.blogger.singlebox .single-post-image img{';
			$katib_writers_custom_css .='width: '.esc_attr($katib_writers_single_post_featured_image_width).'px; height: '.esc_attr($katib_writers_single_post_featured_image_height).'px;';
		$katib_writers_custom_css .='}';
	}

	// Related post image box shadow
	$katib_writers_related_post_image_shadow = get_theme_mod('katib_writers_related_post_image_shadow',0);
	if($katib_writers_related_post_image_shadow != false){
		$katib_writers_custom_css .='.page-box .post-image img{';
			$katib_writers_custom_css .='box-shadow: '.esc_attr($katib_writers_related_post_image_shadow).'px '.esc_attr($katib_writers_related_post_image_shadow).'px '.esc_attr($katib_writers_related_post_image_shadow).'px #cccccc;';
		$katib_writers_custom_css .='}';
	}

	//scroll to top css
	$katib_writers_scroll_background_color = get_theme_mod('katib_writers_scroll_background_color');
	$katib_writers_custom_css .='.scrollup i{';
	$katib_writers_custom_css .='background: '.esc_attr($katib_writers_scroll_background_color).';';
	$katib_writers_custom_css .='border-color: '.esc_attr($katib_writers_scroll_background_color).';';
	$katib_writers_custom_css .='}';

	$katib_writers_scroll_icon_color = get_theme_mod('katib_writers_scroll_icon_color');
	$katib_writers_custom_css .='.scrollup i{';
	$katib_writers_custom_css .='color: '.esc_attr($katib_writers_scroll_icon_color).';';
	$katib_writers_custom_css .='}';

	$katib_writers_scroll_background_hover_color = get_theme_mod('katib_writers_scroll_background_hover_color');
	$katib_writers_custom_css .='.scrollup i:hover{';
	$katib_writers_custom_css .='background: '.esc_attr($katib_writers_scroll_background_hover_color).';';
	$katib_writers_custom_css .='border-color: '.esc_attr($katib_writers_scroll_background_hover_color).';';
	$katib_writers_custom_css .='}';

	//Initial Cap
	$katib_writers_caps_enable = get_theme_mod('katib_writers_caps_enable', 'false');
	if($katib_writers_caps_enable == 'true' ){
	$katib_writers_custom_css .='.blogger .text p:nth-of-type(1)::first-letter{';
	$katib_writers_custom_css .=' font-size: 60px; font-weight: 800;';
	$katib_writers_custom_css .=' margin-right: 7px;';
	$katib_writers_custom_css .=' font-family: "Vollkorn", serif;';
	$katib_writers_custom_css .=' line-height: 1;';
	$katib_writers_custom_css .='}';
	}elseif($katib_writers_caps_enable == 'false' ){
	$katib_writers_custom_css .='.blogger .text p:nth-of-type(1)::first-letter {';
	$katib_writers_custom_css .='display: none;';
	$katib_writers_custom_css .='}';
	}