<?php 

	$coaching_institute_custom_style = '';

	// Logo Size
	$coaching_institute_logo_top_padding = get_theme_mod('coaching_institute_logo_top_padding');
	$coaching_institute_logo_bottom_padding = get_theme_mod('coaching_institute_logo_bottom_padding');
	$coaching_institute_logo_left_padding = get_theme_mod('coaching_institute_logo_left_padding');
	$coaching_institute_logo_right_padding = get_theme_mod('coaching_institute_logo_right_padding');

	if( $coaching_institute_logo_top_padding != '' || $coaching_institute_logo_bottom_padding != '' || $coaching_institute_logo_left_padding != '' || $coaching_institute_logo_right_padding != ''){
		$coaching_institute_custom_style .=' .logo {';
			$coaching_institute_custom_style .=' padding-top: '.esc_attr($coaching_institute_logo_top_padding).'px; padding-bottom: '.esc_attr($coaching_institute_logo_bottom_padding).'px; padding-left: '.esc_attr($coaching_institute_logo_left_padding).'px; padding-right: '.esc_attr($coaching_institute_logo_right_padding).'px;';
		$coaching_institute_custom_style .=' }';
	}

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

	// Header Image
	$header_image_url = coaching_institute_banner_image( $image_url = '' );
	if( $header_image_url != ''){
		$coaching_institute_custom_style .=' #inner-pages-header {';
			$coaching_institute_custom_style .=' background-image: url('. esc_url( $header_image_url ).'); background-size: cover; background-repeat: no-repeat; background-attachment: fixed;';
		$coaching_institute_custom_style .=' }';
	} else {
		$coaching_institute_custom_style .=' #inner-pages-header {';
			$coaching_institute_custom_style .=' background: radial-gradient(circle at center, rgba(0,0,0,0) 0%, #000000 100%); ';
		$coaching_institute_custom_style .=' }';
	}

	$coaching_institute_slider_hide_show = get_theme_mod('coaching_institute_slider_hide_show',false);
	if( $coaching_institute_slider_hide_show == true){
		$coaching_institute_custom_style .=' .page-template-custom-home-page #inner-pages-header {';
			$coaching_institute_custom_style .=' display:none;';
		$coaching_institute_custom_style .=' }';
	}

	$coaching_institute_phone_color = get_theme_mod('coaching_institute_phone_color');
	if ( $coaching_institute_phone_color != '') {
		$coaching_institute_custom_style .=' #header .phn-text, #header .phn-text a{';
			$coaching_institute_custom_style .=' color:'.esc_attr($coaching_institute_phone_color).';';
		$coaching_institute_custom_style .=' }';
	}

	$coaching_institute_phoneicon_color = get_theme_mod('coaching_institute_phoneicon_color');
	if ( $coaching_institute_phoneicon_color != '') {
		$coaching_institute_custom_style .=' #header .phn-icon i{';
			$coaching_institute_custom_style .=' color:'.esc_attr($coaching_institute_phoneicon_color).';';
		$coaching_institute_custom_style .=' }';
	}

	$coaching_institute_phoneiconbg_color = get_theme_mod('coaching_institute_phoneiconbg_color');
	if ( $coaching_institute_phoneiconbg_color != '') {
		$coaching_institute_custom_style .=' #header .phn-icon:before{';
			$coaching_institute_custom_style .=' background-color:'.esc_attr($coaching_institute_phoneiconbg_color).';';
		$coaching_institute_custom_style .=' }';
	}

	$coaching_institute_menu_color = get_theme_mod('coaching_institute_menu_color');
	if ( $coaching_institute_menu_color != '') {
		$coaching_institute_custom_style .=' .nav-menu ul li a{';
			$coaching_institute_custom_style .=' color:'.esc_attr($coaching_institute_menu_color).';';
		$coaching_institute_custom_style .=' }';
	}

	$coaching_institute_submenu_color = get_theme_mod('coaching_institute_submenu_color');
	$coaching_institute_submenubg_color = get_theme_mod('coaching_institute_submenubg_color');
	if ( $coaching_institute_submenu_color != '') {
		$coaching_institute_custom_style .=' .nav-menu ul ul a{';
			$coaching_institute_custom_style .=' color:'.esc_attr($coaching_institute_submenu_color).'; background-color:'.esc_attr($coaching_institute_submenubg_color).';';
		$coaching_institute_custom_style .=' }';
	}

	$coaching_institute_headerbg_color = get_theme_mod('coaching_institute_headerbg_color');
	if ( $coaching_institute_headerbg_color != '') {
		$coaching_institute_custom_style .=' #header{';
			$coaching_institute_custom_style .=' background-color:'.esc_attr($coaching_institute_headerbg_color).';';
		$coaching_institute_custom_style .=' }';
	}

	//site title tagline
	$coaching_institute_site_title_color = get_theme_mod('coaching_institute_site_title_color');
	if ( $coaching_institute_site_title_color != '') {
		$coaching_institute_custom_style .=' h1.site-title a, p.site-title a{';
			$coaching_institute_custom_style .=' color:'.esc_attr($coaching_institute_site_title_color).';';
		$coaching_institute_custom_style .=' }';
	}

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

	//layout width
	$coaching_institute_boxfull_width = get_theme_mod('coaching_institute_boxfull_width');
	if ($coaching_institute_boxfull_width !== '') {
		switch ($coaching_institute_boxfull_width) {
			case 'container':
				$coaching_institute_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':
				$coaching_institute_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
	$coaching_institute_dropdown_anim = get_theme_mod('coaching_institute_dropdown_anim');

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

	//slider  css

	$coaching_institute_slider_font_size = get_theme_mod('coaching_institute_slider_font_size');
	if ( $coaching_institute_slider_font_size != '') {
		$coaching_institute_custom_style .=' #slider h2{';
			$coaching_institute_custom_style .=' font-size:'.esc_attr($coaching_institute_slider_font_size).'px;';
		$coaching_institute_custom_style .=' }';
	}

	$coaching_institute_slider_opacity = get_theme_mod('coaching_institute_slider_opacity');
	if ( $coaching_institute_slider_opacity != '') {
		$coaching_institute_custom_style .='#slider .s-oly{';
			$coaching_institute_custom_style .=' opacity:'.esc_attr($coaching_institute_slider_opacity).';';
		$coaching_institute_custom_style .=' }';
	}

	$coaching_institute_slider_title_color = get_theme_mod('coaching_institute_slider_title_color');
	if ( $coaching_institute_slider_title_color != '') {
		$coaching_institute_custom_style .=' #slider h2{';
			$coaching_institute_custom_style .=' color:'.esc_attr($coaching_institute_slider_title_color).';';
		$coaching_institute_custom_style .=' }';
	}

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

	$coaching_institute_slider_btn_color = get_theme_mod('coaching_institute_slider_btn_color');
	$coaching_institute_slider_btnbg_color = get_theme_mod('coaching_institute_slider_btnbg_color');
	if ( $coaching_institute_slider_btn_color != '') {
		$coaching_institute_custom_style .=' #slider p{';
			$coaching_institute_custom_style .=' color:'.esc_attr($coaching_institute_slider_btn_color).'; background-color:'.esc_attr($coaching_institute_slider_btnbg_color).';';
		$coaching_institute_custom_style .=' }';
	}

	//About css
	$coaching_institute_aboutus_img_size = get_theme_mod('coaching_institute_aboutus_img_size');
	if ( $coaching_institute_aboutus_img_size != '') {
		$coaching_institute_custom_style .=' #aboutus-section .aboutus-image img{';
			$coaching_institute_custom_style .=' width:'.esc_attr($coaching_institute_aboutus_img_size).'px; height:'.esc_attr($coaching_institute_aboutus_img_size).'px;';
		$coaching_institute_custom_style .=' }';
	}

	$coaching_institute_aboutusheading_font_size = get_theme_mod('coaching_institute_aboutusheading_font_size');
	if ( $coaching_institute_aboutusheading_font_size != '') {
		$coaching_institute_custom_style .=' #aboutus-section .r-abt h1{';
			$coaching_institute_custom_style .=' font-size:'.esc_attr($coaching_institute_aboutusheading_font_size).'px;';
		$coaching_institute_custom_style .=' }';
	}

	$coaching_institute_aboutustitle_font_size = get_theme_mod('coaching_institute_aboutustitle_font_size');
	if ( $coaching_institute_aboutustitle_font_size != '') {
		$coaching_institute_custom_style .=' #aboutus-section .r-abt h2{';
			$coaching_institute_custom_style .=' font-size:'.esc_attr($coaching_institute_aboutustitle_font_size).'px;';
		$coaching_institute_custom_style .=' }';
	}

	$coaching_institute_aboutusdescription_font_size = get_theme_mod('coaching_institute_aboutusdescription_font_size');
	if ( $coaching_institute_aboutusdescription_font_size != '') {
		$coaching_institute_custom_style .=' #aboutus-section .r-abt p{';
			$coaching_institute_custom_style .=' font-size:'.esc_attr($coaching_institute_aboutusdescription_font_size).'px;';
		$coaching_institute_custom_style .=' }';
	}

	$coaching_institute_aboutusheading_color = get_theme_mod('coaching_institute_aboutusheading_color');
	if ( $coaching_institute_aboutusheading_color != '') {
		$coaching_institute_custom_style .=' #aboutus-section .r-abt h1{';
			$coaching_institute_custom_style .=' color:'.esc_attr($coaching_institute_aboutusheading_color).';';
		$coaching_institute_custom_style .=' }';
	}

	$coaching_institute_aboutustitle_color = get_theme_mod('coaching_institute_aboutustitle_color');
	if ( $coaching_institute_aboutustitle_color != '') {
		$coaching_institute_custom_style .=' #aboutus-section .r-abt h2{';
			$coaching_institute_custom_style .=' color:'.esc_attr($coaching_institute_aboutustitle_color).';';
		$coaching_institute_custom_style .=' }';
	}

	$coaching_institute_aboutusdescription_color = get_theme_mod('coaching_institute_aboutusdescription_color');
	if ( $coaching_institute_aboutusdescription_color != '') {
		$coaching_institute_custom_style .=' #aboutus-section .r-abt p{';
			$coaching_institute_custom_style .=' color:'.esc_attr($coaching_institute_aboutusdescription_color).';';
		$coaching_institute_custom_style .=' }';
	}

	$coaching_institute_aboutuspoint_color = get_theme_mod('coaching_institute_aboutuspoint_color');
	if ( $coaching_institute_aboutuspoint_color != '') {
		$coaching_institute_custom_style .=' #aboutus-section .r-abt li{';
			$coaching_institute_custom_style .=' color:'.esc_attr($coaching_institute_aboutuspoint_color).';';
		$coaching_institute_custom_style .=' }';
	}

	$coaching_institute_aboutus_box_icon_color = get_theme_mod('coaching_institute_aboutus_box_icon_color');
	if ( $coaching_institute_aboutus_box_icon_color != '') {
		$coaching_institute_custom_style .=' #aboutus-section .r-abt i{';
			$coaching_institute_custom_style .=' color:'.esc_attr($coaching_institute_aboutus_box_icon_color).';';
		$coaching_institute_custom_style .=' }';
	}

	$coaching_institute_aboutus_box_title_color = get_theme_mod('coaching_institute_aboutus_box_title_color');
	if ( $coaching_institute_aboutus_box_title_color != '') {
		$coaching_institute_custom_style .=' #aboutus-section .r-abt h4{';
			$coaching_institute_custom_style .=' color:'.esc_attr($coaching_institute_aboutus_box_title_color).';';
		$coaching_institute_custom_style .=' }';
	}

	//Footer css
	$coaching_institute_footer_copy_font_size = get_theme_mod('coaching_institute_footer_copy_font_size');
	if ( $coaching_institute_footer_copy_font_size != '') {
		$coaching_institute_custom_style .=' .site-info p, .site-info a{';
			$coaching_institute_custom_style .=' font-size:'.esc_attr($coaching_institute_footer_copy_font_size).'px !important;';
		$coaching_institute_custom_style .=' }';
	}

	$coaching_institute_copyright_color = get_theme_mod('coaching_institute_copyright_color');
	if ( $coaching_institute_copyright_color != '') {
		$coaching_institute_custom_style .=' .site-info p, .site-info a{';
			$coaching_institute_custom_style .=' color:'.esc_attr($coaching_institute_copyright_color).' !important;';
		$coaching_institute_custom_style .=' }';
	}

	$coaching_institute_copyrightbg_color = get_theme_mod('coaching_institute_copyrightbg_color');
	if ( $coaching_institute_copyrightbg_color != '') {
		$coaching_institute_custom_style .=' .copyright{';
			$coaching_institute_custom_style .=' background:'.esc_attr($coaching_institute_copyrightbg_color).' !important;';
		$coaching_institute_custom_style .=' }';
	}

	$coaching_institute_footer_social_color = get_theme_mod('coaching_institute_footer_social_color');
	if ( $coaching_institute_footer_social_color != '') {
		$coaching_institute_custom_style .=' #colophon .fs-icn li i{';
			$coaching_institute_custom_style .=' color:'.esc_attr($coaching_institute_footer_social_color).';';
		$coaching_institute_custom_style .=' }';
	}

	$coaching_institute_footer_widgets_color = get_theme_mod('coaching_institute_footer_widgets_color');
	if ( $coaching_institute_footer_widgets_color != '') {
		$coaching_institute_custom_style .=' .site-footer h2.widget-title{';
			$coaching_institute_custom_style .=' color:'.esc_attr($coaching_institute_footer_widgets_color).';';
		$coaching_institute_custom_style .=' }';
	}

	$coaching_institute_footer_widgets_menus_color = get_theme_mod('coaching_institute_footer_widgets_menus_color');
	if ( $coaching_institute_footer_widgets_menus_color != '') {
		$coaching_institute_custom_style .=' .widget ul li a, .site-footer .widget-area ul li a, .site-footer .widget-area ul li a{';
			$coaching_institute_custom_style .=' color:'.esc_attr($coaching_institute_footer_widgets_menus_color).';';
		$coaching_institute_custom_style .=' }';
	}

	$coaching_institute_footerbg_color = get_theme_mod('coaching_institute_footerbg_color');
	if ( $coaching_institute_footerbg_color != '') {
		$coaching_institute_custom_style .=' .footer-overlay{';
			$coaching_institute_custom_style .=' background-color:'.esc_attr($coaching_institute_footerbg_color).';';
		$coaching_institute_custom_style .=' }';
	}