<?php 

	$digital_marketing_expert_custom_style = '';

	// Logo Size
	$digital_marketing_expert_logo_top_padding = get_theme_mod('digital_marketing_expert_logo_top_padding');
	$digital_marketing_expert_logo_bottom_padding = get_theme_mod('digital_marketing_expert_logo_bottom_padding');
	$digital_marketing_expert_logo_left_padding = get_theme_mod('digital_marketing_expert_logo_left_padding');
	$digital_marketing_expert_logo_right_padding = get_theme_mod('digital_marketing_expert_logo_right_padding');

	if( $digital_marketing_expert_logo_top_padding != '' || $digital_marketing_expert_logo_bottom_padding != '' || $digital_marketing_expert_logo_left_padding != '' || $digital_marketing_expert_logo_right_padding != ''){
		$digital_marketing_expert_custom_style .=' .logo {';
			$digital_marketing_expert_custom_style .=' padding-top: '.esc_attr($digital_marketing_expert_logo_top_padding).'px; padding-bottom: '.esc_attr($digital_marketing_expert_logo_bottom_padding).'px; padding-left: '.esc_attr($digital_marketing_expert_logo_left_padding).'px; padding-right: '.esc_attr($digital_marketing_expert_logo_right_padding).'px;';
		$digital_marketing_expert_custom_style .=' }';
	}

	$digital_marketing_expert_logo_size = get_theme_mod('digital_marketing_expert_logo_size');
	if( $digital_marketing_expert_logo_size != '' ) {
		if($digital_marketing_expert_logo_size >= 0 && $digital_marketing_expert_logo_size <= 100) {
			$calculated_width = $digital_marketing_expert_logo_size * 3.5;
			$digital_marketing_expert_custom_style .= ' .custom-logo-link img {';
			$digital_marketing_expert_custom_style .= ' width: ' . esc_attr($calculated_width) . 'px;';
			$digital_marketing_expert_custom_style .= ' }';
		}
	}

	// Header Image
	$header_image_url = digital_marketing_expert_header_image( $image_url = '' );
	$digital_marketing_expert_custom_style .=' #inner-pages-header {';
		$digital_marketing_expert_custom_style .=' background-image: url('. esc_url( $header_image_url ).'); background-size: cover; background-repeat: no-repeat;';
	$digital_marketing_expert_custom_style .=' }';

	// Site Title Font Size
	$digital_marketing_expert_slider_hide_show = get_theme_mod('digital_marketing_expert_slider_hide_show',false);
	if( $digital_marketing_expert_slider_hide_show == true){
		$digital_marketing_expert_custom_style .=' .page-template-custom-home-page #inner-pages-header {';
			$digital_marketing_expert_custom_style .=' display:none;';
		$digital_marketing_expert_custom_style .=' }';
	}

	$digital_marketing_expert_site_title_color = get_theme_mod('digital_marketing_expert_site_title_color');
	if ( $digital_marketing_expert_site_title_color != '') {
		$digital_marketing_expert_custom_style .=' h1.site-title a, p.site-title a {';
			$digital_marketing_expert_custom_style .=' color:'.esc_attr($digital_marketing_expert_site_title_color).';';
		$digital_marketing_expert_custom_style .=' }';
	}

	$digital_marketing_expert_site_tagline_color = get_theme_mod('digital_marketing_expert_site_tagline_color');
	if ( $digital_marketing_expert_site_tagline_color != '') {
		$digital_marketing_expert_custom_style .=' p.site-description {';
			$digital_marketing_expert_custom_style .=' color:'.esc_attr($digital_marketing_expert_site_tagline_color).';';
		$digital_marketing_expert_custom_style .=' }';
	}

	//layout width
	$digital_marketing_expert_boxfull_width = get_theme_mod('digital_marketing_expert_boxfull_width');
	if ($digital_marketing_expert_boxfull_width !== '') {
		switch ($digital_marketing_expert_boxfull_width) {
			case 'container':
				$digital_marketing_expert_custom_style .= ' body, #header, .bottom-header {
					max-width: 1140px;
					width: 100%;
					padding-right: 15px;
					padding-left: 15px;
					margin-right: auto;
					margin-left: auto;
					}';
				break;
			case 'container-fluid':
				$digital_marketing_expert_custom_style .= ' body, #header, .bottom-header { 
					width: 100%;
					padding-right: 15px;
					padding-left: 15px;
					margin-right: auto;
					margin-left: auto;
					}';
				break;
			case 'none':
				// No specific width specified, so no additional style needed.
				break;
			default:
				// Handle unexpected values.
				break;
		}
	}

	//Menu animation
	$digital_marketing_expert_dropdown_anim = get_theme_mod('digital_marketing_expert_dropdown_anim');

	if ( $digital_marketing_expert_dropdown_anim != '') {
		$digital_marketing_expert_custom_style .=' .nav-menu ul ul {';
			$digital_marketing_expert_custom_style .=' animation:'.esc_attr($digital_marketing_expert_dropdown_anim).' 1s ease;';
		$digital_marketing_expert_custom_style .=' }';
	}

	//header color
	$digital_marketing_expert_menu_color = get_theme_mod('digital_marketing_expert_menu_color');
	if ( $digital_marketing_expert_menu_color != '') {
		$digital_marketing_expert_custom_style .=' .nav-menu ul li a {';
			$digital_marketing_expert_custom_style .=' color:'.esc_attr($digital_marketing_expert_menu_color).';';
		$digital_marketing_expert_custom_style .=' }';
	}

	$digital_marketing_expert_social_color = get_theme_mod('digital_marketing_expert_social_color');
	$digital_marketing_expert_socialbg_color = get_theme_mod('digital_marketing_expert_socialbg_color');
	if ( $digital_marketing_expert_social_color != '') {
		$digital_marketing_expert_custom_style .=' .social-icons i {';
			$digital_marketing_expert_custom_style .=' color:'.esc_attr($digital_marketing_expert_social_color).'; background-color:'.esc_attr($digital_marketing_expert_socialbg_color).';';
		$digital_marketing_expert_custom_style .=' }';
	}

	$digital_marketing_expert_hdrbtn_color = get_theme_mod('digital_marketing_expert_hdrbtn_color');
	$digital_marketing_expert_hdrbtnbg_color = get_theme_mod('digital_marketing_expert_hdrbtnbg_color');
	if ( $digital_marketing_expert_hdrbtn_color != '') {
		$digital_marketing_expert_custom_style .=' .contact-btn a {';
			$digital_marketing_expert_custom_style .=' color:'.esc_attr($digital_marketing_expert_hdrbtn_color).'; background-color:'.esc_attr($digital_marketing_expert_hdrbtnbg_color).';';
		$digital_marketing_expert_custom_style .=' }';
	}

	//Slider color
	$digital_marketing_expert_slider_font_size = get_theme_mod('digital_marketing_expert_slider_font_size');
	if ( $digital_marketing_expert_slider_font_size != '') {
		$digital_marketing_expert_custom_style .=' #slider h2 {';
			$digital_marketing_expert_custom_style .=' font-size:'.esc_attr($digital_marketing_expert_slider_font_size).'px;';
		$digital_marketing_expert_custom_style .=' }';
	}

	$digital_marketing_expert_slider_text_font_size = get_theme_mod('digital_marketing_expert_slider_text_font_size');
	if ( $digital_marketing_expert_slider_text_font_size != '') {
		$digital_marketing_expert_custom_style .=' #slider p {';
			$digital_marketing_expert_custom_style .=' font-size:'.esc_attr($digital_marketing_expert_slider_text_font_size).'px;';
		$digital_marketing_expert_custom_style .=' }';
	}

	$digital_marketing_expert_slider_opacity = get_theme_mod('digital_marketing_expert_slider_opacity');
	if ( $digital_marketing_expert_slider_opacity != '') {
		$digital_marketing_expert_custom_style .=' #slider .shape {';
			$digital_marketing_expert_custom_style .=' opacity:'.esc_attr($digital_marketing_expert_slider_opacity).';';
		$digital_marketing_expert_custom_style .=' }';
	}

	$digital_marketing_expert_slidertitle_color = get_theme_mod('digital_marketing_expert_slidertitle_color');
	if ( $digital_marketing_expert_slidertitle_color != '') {
		$digital_marketing_expert_custom_style .=' #slider h2 a {';
			$digital_marketing_expert_custom_style .=' color:'.esc_attr($digital_marketing_expert_slidertitle_color).';';
		$digital_marketing_expert_custom_style .=' }';
	}

	$digital_marketing_expert_slidertext_color = get_theme_mod('digital_marketing_expert_slidertext_color');
	if ( $digital_marketing_expert_slidertext_color != '') {
		$digital_marketing_expert_custom_style .=' #slider p {';
			$digital_marketing_expert_custom_style .=' color:'.esc_attr($digital_marketing_expert_slidertext_color).';';
		$digital_marketing_expert_custom_style .=' }';
	}

	$digital_marketing_expert_sliderbtn_color = get_theme_mod('digital_marketing_expert_sliderbtn_color');
	$digital_marketing_expert_sliderbtnbg_color = get_theme_mod('digital_marketing_expert_sliderbtnbg_color');
	if ( $digital_marketing_expert_sliderbtn_color != '') {
		$digital_marketing_expert_custom_style .=' #slider a.getstarted-btn {';
			$digital_marketing_expert_custom_style .=' color:'.esc_attr($digital_marketing_expert_sliderbtn_color).'; background-color:'.esc_attr($digital_marketing_expert_sliderbtnbg_color).';';
		$digital_marketing_expert_custom_style .=' }';
	}

	$digital_marketing_expert_sliderbtnhvr_color = get_theme_mod('digital_marketing_expert_sliderbtnhvr_color');
	$digital_marketing_expert_sliderbtnhvrbg_color = get_theme_mod('digital_marketing_expert_sliderbtnhvrbg_color');
	if ( $digital_marketing_expert_sliderbtnhvr_color != '') {
		$digital_marketing_expert_custom_style .=' #slider a.getstarted-btn:hover {';
			$digital_marketing_expert_custom_style .=' color:'.esc_attr($digital_marketing_expert_sliderbtnhvr_color).'; background-color:'.esc_attr($digital_marketing_expert_sliderbtnhvrbg_color).';';
		$digital_marketing_expert_custom_style .=' }';
	}

	//Service color
	$digital_marketing_expert_section_title_font_size = get_theme_mod('digital_marketing_expert_section_title_font_size');
	if ( $digital_marketing_expert_section_title_font_size != '') {
		$digital_marketing_expert_custom_style .=' #service-section h3 {';
			$digital_marketing_expert_custom_style .=' font-size:'.esc_attr($digital_marketing_expert_section_title_font_size).'px;';
		$digital_marketing_expert_custom_style .=' }';
	}

	$digital_marketing_expert_section_text_font_size = get_theme_mod('digital_marketing_expert_section_text_font_size');
	if ( $digital_marketing_expert_section_text_font_size != '') {
		$digital_marketing_expert_custom_style .=' #service-section p {';
			$digital_marketing_expert_custom_style .=' font-size:'.esc_attr($digital_marketing_expert_section_text_font_size).'px;';
		$digital_marketing_expert_custom_style .=' }';
	}

	$digital_marketing_expert_service_section_color = get_theme_mod('digital_marketing_expert_service_section_color');

	if ( $digital_marketing_expert_service_section_color != '') {
		$digital_marketing_expert_custom_style .='#service-section .service-head h3{';
			$digital_marketing_expert_custom_style .=' color:'.esc_attr($digital_marketing_expert_service_section_color).';';
		$digital_marketing_expert_custom_style .=' }';
	}

	$digital_marketing_expert_service_section_text_color = get_theme_mod('digital_marketing_expert_service_section_text_color');

	if ( $digital_marketing_expert_service_section_text_color != '') {
		$digital_marketing_expert_custom_style .='#service-section .service-head p{';
			$digital_marketing_expert_custom_style .=' color:'.esc_attr($digital_marketing_expert_service_section_text_color).';';
		$digital_marketing_expert_custom_style .=' }';
	}

	$digital_marketing_expert_service_color = get_theme_mod('digital_marketing_expert_service_color');

	if ( $digital_marketing_expert_service_color != '') {
		$digital_marketing_expert_custom_style .='.service-box h4 a{';
			$digital_marketing_expert_custom_style .=' color:'.esc_attr($digital_marketing_expert_service_color).';';
		$digital_marketing_expert_custom_style .=' }';
	}

	$digital_marketing_expert_service_text_color = get_theme_mod('digital_marketing_expert_service_text_color');

	if ( $digital_marketing_expert_service_text_color != '') {
		$digital_marketing_expert_custom_style .='.service-box p{';
			$digital_marketing_expert_custom_style .=' color:'.esc_attr($digital_marketing_expert_service_text_color).';';
		$digital_marketing_expert_custom_style .=' }';
	}

	$digital_marketing_expert_service_btn_color = get_theme_mod('digital_marketing_expert_service_btn_color');

	if ( $digital_marketing_expert_service_btn_color != '') {
		$digital_marketing_expert_custom_style .='.service-content .read-btn a, .article_content .read-btn a{';
			$digital_marketing_expert_custom_style .=' color:'.esc_attr($digital_marketing_expert_service_btn_color).';';
		$digital_marketing_expert_custom_style .=' }';
	}

	$digital_marketing_expert_service_btnbg_color1 = get_theme_mod('digital_marketing_expert_service_btnbg_color1');
	$digital_marketing_expert_service_btnbg_color2 = get_theme_mod('digital_marketing_expert_service_btnbg_color2');
	$digital_marketing_expert_service_btnbg_color3 = get_theme_mod('digital_marketing_expert_service_btnbg_color3');
	if ( $digital_marketing_expert_service_btnbg_color1 != '') {
		$digital_marketing_expert_custom_style .='.service-content .read-btn a, .article_content .read-btn a{';
			$digital_marketing_expert_custom_style .='     background: linear-gradient(to right, '.esc_attr($digital_marketing_expert_service_btnbg_color1).','.esc_attr($digital_marketing_expert_service_btnbg_color2).', '.esc_attr($digital_marketing_expert_service_btnbg_color3).');';
		$digital_marketing_expert_custom_style .=' }';
	}