<?php

	$it_company_first_theme_color = get_theme_mod('it_company_first_theme_color');
	$it_services_custom_css = '';

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

	/*----- Blog Post display type css ------*/
	
	$it_company_blog_post_display_type = get_theme_mod('it_company_blog_post_display_type', 'blocks');
	if($it_company_blog_post_display_type == 'blocks' ){
		$it_services_custom_css .='.blog .blog-sec{';
			$it_services_custom_css .=' box-shadow: 2px 2px '.esc_attr($it_company_first_theme_color).'; border: 1px solid #e4e4e4;';
		$it_services_custom_css .='}';
	}elseif($it_company_blog_post_display_type == 'without blocks' ){
		$it_services_custom_css .='.blog .blog-sec{';
			$it_services_custom_css .=' box-shadow: none !important; border: 0 !important;';
		$it_services_custom_css .='}';
	}
	// Metabox Seperator Blog Post
	$it_company_metabox_seperator = get_theme_mod('it_company_metabox_seperator');
	if($it_company_metabox_seperator != '' ){
		$it_services_custom_css .='.blog-sec  .post-info span:after{';
			$it_services_custom_css .=' content: "'.esc_attr($it_company_metabox_seperator).'"; padding-left:10px;';
		$it_services_custom_css .='}';
		$it_services_custom_css .='.blog-sec  .post-info span:last-child:after{';
			$it_services_custom_css .=' content: none;';
		$it_services_custom_css .='}';
	}	

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

	$it_company_slider_layout = get_theme_mod( 'it_company_slider_alignment_option','Left Align');
    if($it_company_slider_layout == 'Left Align'){
    	$it_services_custom_css .='@media screen and (min-width:720px) {';
		$it_services_custom_css .='#slider .carousel-caption, #slider .inner_carousel{';
			$it_services_custom_css .='text-align:left;';
		$it_services_custom_css .='}';
		$it_services_custom_css .='#slider .carousel-caption{';
		$it_services_custom_css .='left:17%; right:50%;';
		$it_services_custom_css .='}}';
	}else if($it_company_slider_layout == 'Center Align'){
		$it_services_custom_css .='#slider .carousel-caption, #slider .inner_carousel{';
			$it_services_custom_css .='text-align:center;';
		$it_services_custom_css .='}';
		$it_services_custom_css .='#slider .carousel-caption{';
		$it_services_custom_css .='left:24%; right:24%;';
		$it_services_custom_css .='}';
	}else if($it_company_slider_layout == 'Right Align'){
		$it_services_custom_css .='@media screen and (min-width:720px) {';
		$it_services_custom_css .='#slider .carousel-caption, #slider .inner_carousel{';
			$it_services_custom_css .='text-align:right;';
		$it_services_custom_css .='}';
		$it_services_custom_css .='#slider .carousel-caption{';
		$it_services_custom_css .='left:50%; right:18%;';
		$it_services_custom_css .='}}';
	}


	