<?php 

	$miniworld_kindergarten_custom_css = '';

	// Site Title Color
	$miniworld_kindergarten_site_title_color = get_theme_mod('miniworld_kindergarten_site_title_color');
	$miniworld_kindergarten_custom_css .= '.logo h1 a, .logo p.site-title a {';
		$miniworld_kindergarten_custom_css .= 'color: ' . esc_attr($miniworld_kindergarten_site_title_color) . ';';
	$miniworld_kindergarten_custom_css .= '}';

	// Site Tagline Color
	$miniworld_kindergarten_site_tagline_color = get_theme_mod('miniworld_kindergarten_site_tagline_color');
	$miniworld_kindergarten_custom_css .= '.logo p.site-description {';
		$miniworld_kindergarten_custom_css .= 'color: ' . esc_attr($miniworld_kindergarten_site_tagline_color) . ';';
	$miniworld_kindergarten_custom_css .= '}';

	$miniworld_kindergarten_logo_size = get_theme_mod('miniworld_kindergarten_logo_size'); // This value should be a percentage (e.g., 50 for 50%)
	if ($miniworld_kindergarten_logo_size) {
		$logo_width_px = (350 * $miniworld_kindergarten_logo_size) / 100; // Calculate the pixel width based on the percentage
		$miniworld_kindergarten_custom_css .= '.site-logo img {';
		$miniworld_kindergarten_custom_css .= 'width: '.esc_attr($logo_width_px).'px !important;';
		$miniworld_kindergarten_custom_css .= '}';
	}

	/*----------------Width Layout -------------------*/
    $miniworld_kindergarten_theme_lay = get_theme_mod( 'miniworld_kindergarten_width_options','Full Width');
    if($miniworld_kindergarten_theme_lay == 'Full Width'){
		$miniworld_kindergarten_custom_css .='body{';
			$miniworld_kindergarten_custom_css .='max-width: 100%;';
		$miniworld_kindergarten_custom_css .='}';
	}else if($miniworld_kindergarten_theme_lay == 'Contained Width'){
		$miniworld_kindergarten_custom_css .='body{';
			$miniworld_kindergarten_custom_css .='width: 100%;padding-right: 15px;padding-left: 15px;margin-right: auto;margin-left: auto;';
		$miniworld_kindergarten_custom_css .='}';
	}else if($miniworld_kindergarten_theme_lay == 'Boxed Width'){
		$miniworld_kindergarten_custom_css .='body{';
			$miniworld_kindergarten_custom_css .='max-width: 1140px; width: 100%; padding-right: 15px; padding-left: 15px; margin-right: auto; margin-left: auto;';
		$miniworld_kindergarten_custom_css .='}';
	}

	// Submenu Dropdown Effect
	$miniworld_kindergarten_dropdown_anim = get_theme_mod('miniworld_kindergarten_dropdown_anim');
	$miniworld_kindergarten_custom_css .='.primary-navigation ul ul{';
		$miniworld_kindergarten_custom_css .='animation: '.esc_attr($miniworld_kindergarten_dropdown_anim).' 1s ease;';
	$miniworld_kindergarten_custom_css .='}';


	// Topbar Color

	$miniworld_kindergarten_headermenu_color = get_theme_mod('miniworld_kindergarten_headermenu_color');
	$miniworld_kindergarten_custom_css .= ' .primary-navigation ul li a,.sf-arrows .sf-with-ul:after {';
		$miniworld_kindergarten_custom_css .= 'color: ' . esc_attr($miniworld_kindergarten_headermenu_color) . ';';
	$miniworld_kindergarten_custom_css .= '}';

	$miniworld_kindergarten_headeractivemenuhover_color = get_theme_mod('miniworld_kindergarten_headeractivemenuhover_color');
	$miniworld_kindergarten_custom_css .= ' .primary-navigation .current_page_item a,.primary-navigation a:hover {';
		$miniworld_kindergarten_custom_css .= 'color: ' . esc_attr($miniworld_kindergarten_headeractivemenuhover_color) . ';';
	$miniworld_kindergarten_custom_css .= '}';

	$miniworld_kindergarten_headeractivemenuhover_color = get_theme_mod('miniworld_kindergarten_headeractivemenuhover_color');
	$miniworld_kindergarten_custom_css .= ' .primary-navigation li.current_page_item a::before, .primary-navigation >li>a:active, .primary-navigation li a:hover::before {';
		$miniworld_kindergarten_custom_css .= 'background: ' . esc_attr($miniworld_kindergarten_headeractivemenuhover_color) . ';';
	$miniworld_kindergarten_custom_css .= '}';

	$miniworld_kindergarten_headersubmenuicon_color = get_theme_mod('miniworld_kindergarten_headersubmenuicon_color');
	$miniworld_kindergarten_custom_css .= ' .sf-arrows .sf-with-ul:after {';
		$miniworld_kindergarten_custom_css .= 'color: ' . esc_attr($miniworld_kindergarten_headersubmenuicon_color) . ';';
	$miniworld_kindergarten_custom_css .= '}';

	$miniworld_kindergarten_headersubmenu_color = get_theme_mod('miniworld_kindergarten_headersubmenu_color');
	$miniworld_kindergarten_custom_css .= ' .primary-navigation ul ul a {';
		$miniworld_kindergarten_custom_css .= 'color: ' . esc_attr($miniworld_kindergarten_headersubmenu_color) . ';';
	$miniworld_kindergarten_custom_css .= '}';

	$miniworld_kindergarten_headersubmenuhover_color = get_theme_mod('miniworld_kindergarten_headersubmenuhover_color');
	$miniworld_kindergarten_custom_css .= ' .primary-navigation ul ul a:hover {';
		$miniworld_kindergarten_custom_css .= 'color: ' . esc_attr($miniworld_kindergarten_headersubmenuhover_color) . ';';
	$miniworld_kindergarten_custom_css .= '}';

	$miniworld_kindergarten_headersubmenubg_color = get_theme_mod('miniworld_kindergarten_headersubmenubg_color');
	$miniworld_kindergarten_custom_css .= ' .primary-navigation ul ul a {';
		$miniworld_kindergarten_custom_css .= 'background: ' . esc_attr($miniworld_kindergarten_headersubmenubg_color) . ';';
	$miniworld_kindergarten_custom_css .= '}';

	$miniworld_kindergarten_headersubmenubghover_color = get_theme_mod('miniworld_kindergarten_headersubmenubghover_color');
	$miniworld_kindergarten_custom_css .= ' .primary-navigation ul ul a:hover {';
		$miniworld_kindergarten_custom_css .= 'background: ' . esc_attr($miniworld_kindergarten_headersubmenubghover_color) . ';';
	$miniworld_kindergarten_custom_css .= '}';

	$miniworld_kindergarten_buttontext_color = get_theme_mod('miniworld_kindergarten_buttontext_color');
	$miniworld_kindergarten_custom_css .= ' #header .m-btn .bttn2 {';
		$miniworld_kindergarten_custom_css .= 'color: ' . esc_attr($miniworld_kindergarten_buttontext_color) . ';';
	$miniworld_kindergarten_custom_css .= '}';

	$bg1 = get_theme_mod( 'miniworld_kindergarten_buttonbg_color_1' );
	$bg2 = get_theme_mod( 'miniworld_kindergarten_buttonbg_color_2' );
	$bg3 = get_theme_mod( 'miniworld_kindergarten_buttonbg_color_3' );
	$miniworld_kindergarten_custom_css .= ' #header .m-btn .bttn2 {';
		$miniworld_kindergarten_custom_css .= 'background: linear-gradient(to right, ' . esc_attr($bg1) . ', ' . esc_attr($bg2) . ', ' . esc_attr($bg3) . ');';
	$miniworld_kindergarten_custom_css .= '}';

	$miniworld_kindergarten_buttonhvrtext_color = get_theme_mod('miniworld_kindergarten_buttonhvrtext_color');
	$miniworld_kindergarten_custom_css .= ' #header .m-btn .bttn2:hover {';
		$miniworld_kindergarten_custom_css .= 'color: ' . esc_attr($miniworld_kindergarten_buttonhvrtext_color) . ';';
	$miniworld_kindergarten_custom_css .= '}';

	$miniworld_kindergarten_buttonhrvbg_color = get_theme_mod('miniworld_kindergarten_buttonhrvbg_color');
	$miniworld_kindergarten_custom_css .= ' #header .m-btn .bttn2:hover {';
		$miniworld_kindergarten_custom_css .= 'background: ' . esc_attr($miniworld_kindergarten_buttonhrvbg_color) . ';';
	$miniworld_kindergarten_custom_css .= '}';


	//slider
	$miniworld_kindergartenslider_subheading_color = get_theme_mod('miniworld_kindergartenslider_subheading_color');
	$miniworld_kindergarten_custom_css .= ' .slider-content .badge h4 {';
		$miniworld_kindergarten_custom_css .= 'color: ' . esc_attr($miniworld_kindergartenslider_subheading_color) . ';';
	$miniworld_kindergarten_custom_css .= '}';

	$miniworld_kindergartenslider_description_color = get_theme_mod('miniworld_kindergartenslider_description_color');
	$miniworld_kindergarten_custom_css .= ' #slider .slider-content p {';
		$miniworld_kindergarten_custom_css .= 'color: ' . esc_attr($miniworld_kindergartenslider_description_color) . ';';
	$miniworld_kindergarten_custom_css .= '}';

	$miniworld_kindergartenslider_btn1text_color = get_theme_mod('miniworld_kindergartenslider_btn1text_color');
	$miniworld_kindergarten_custom_css .= ' #slider .slider-content .read-btn a:first-child {';
		$miniworld_kindergarten_custom_css .= 'color: ' . esc_attr($miniworld_kindergartenslider_btn1text_color) . ';';
	$miniworld_kindergarten_custom_css .= '}';

	$miniworld_kindergartenslider_btn1bg1_color = get_theme_mod('miniworld_kindergartenslider_btn1bg1_color');
	$miniworld_kindergartenslider_btn1bg2_color = get_theme_mod('miniworld_kindergartenslider_btn1bg2_color');
	$miniworld_kindergartenslider_btn1bg3_color = get_theme_mod('miniworld_kindergartenslider_btn1bg3_color');

	$miniworld_kindergarten_custom_css .= ' #slider .slider-content .read-btn a:first-child {';
		$miniworld_kindergarten_custom_css .= 'background: linear-gradient(to right, ' . esc_attr($miniworld_kindergartenslider_btn1bg1_color) . ', ' . esc_attr($miniworld_kindergartenslider_btn1bg2_color) . ', ' . esc_attr($miniworld_kindergartenslider_btn1bg3_color) . ');';
	$miniworld_kindergarten_custom_css .= '}';

	$miniworld_kindergartenslider_btn2text_color = get_theme_mod('miniworld_kindergartenslider_btn2text_color');
	$miniworld_kindergarten_custom_css .= ' #slider .slider-content .read-btn a:last-child {';
		$miniworld_kindergarten_custom_css .= 'color: ' . esc_attr($miniworld_kindergartenslider_btn2text_color) . ';';
	$miniworld_kindergarten_custom_css .= '}';


	//feature
	$miniworld_kindergarten_feature_heading_color = get_theme_mod('miniworld_kindergarten_feature_heading_color');
	$miniworld_kindergarten_custom_css .= ' #feature .titlebx h2 {';
		$miniworld_kindergarten_custom_css .= 'color: ' . esc_attr($miniworld_kindergarten_feature_heading_color) . ';';
	$miniworld_kindergarten_custom_css .= '}';

	$miniworld_kindergarten_feature_subheading_color = get_theme_mod('miniworld_kindergarten_feature_subheading_color');
	$miniworld_kindergarten_custom_css .= ' #feature .titlebx h5 {';
		$miniworld_kindergarten_custom_css .= 'color: ' . esc_attr($miniworld_kindergarten_feature_subheading_color) . ';';
	$miniworld_kindergarten_custom_css .= '}';

	$miniworld_kindergarten_feature_icon_color = get_theme_mod('miniworld_kindergarten_feature_icon_color');
	$miniworld_kindergarten_custom_css .= ' #feature .icnbx svg, #feature .icnbx i {';
		$miniworld_kindergarten_custom_css .= 'color: ' . esc_attr($miniworld_kindergarten_feature_icon_color) . ';';
	$miniworld_kindergarten_custom_css .= '}';

	$miniworld_kindergarten_feature_iconbg_color = get_theme_mod('miniworld_kindergarten_feature_iconbg_color');
	$miniworld_kindergarten_custom_css .= ' #feature .icnbx svg, #feature .icnbx i {';
		$miniworld_kindergarten_custom_css .= 'background: ' . esc_attr($miniworld_kindergarten_feature_iconbg_color) . ';';
	$miniworld_kindergarten_custom_css .= '}';

	$miniworld_kindergarten_feature_title_color = get_theme_mod('miniworld_kindergarten_feature_title_color');
	$miniworld_kindergarten_custom_css .= ' #feature .content h1 {';
		$miniworld_kindergarten_custom_css .= 'color: ' . esc_attr($miniworld_kindergarten_feature_title_color) . ';';
	$miniworld_kindergarten_custom_css .= '}';

	$miniworld_kindergarten_feature_description_color = get_theme_mod('miniworld_kindergarten_feature_description_color');
	$miniworld_kindergarten_custom_css .= ' #feature .content p {';
		$miniworld_kindergarten_custom_css .= 'color: ' . esc_attr($miniworld_kindergarten_feature_description_color) . ';';
	$miniworld_kindergarten_custom_css .= '}';



	//ouramazingprograms
	$miniworld_kindergartenouramazingprograms_bg_color = get_theme_mod('miniworld_kindergartenouramazingprograms_bg_color');
	$miniworld_kindergarten_custom_css .= ' #ouramazingprograms-section {';
		$miniworld_kindergarten_custom_css .= 'background: ' . esc_attr($miniworld_kindergartenouramazingprograms_bg_color) . ';';
	$miniworld_kindergarten_custom_css .= '}';

	$miniworld_kindergartenouramazingprograms_heading_color = get_theme_mod('miniworld_kindergartenouramazingprograms_heading_color');
	$miniworld_kindergarten_custom_css .= ' #ouramazingprograms-section .titlebx h4 {';
		$miniworld_kindergarten_custom_css .= 'color: ' . esc_attr($miniworld_kindergartenouramazingprograms_heading_color) . ';';
	$miniworld_kindergarten_custom_css .= '}';

	$miniworld_kindergartenouramazingprograms_subheading_color = get_theme_mod('miniworld_kindergartenouramazingprograms_subheading_color');
	$miniworld_kindergarten_custom_css .= ' #ouramazingprograms-section .titlebx h5 {';
		$miniworld_kindergarten_custom_css .= 'color: ' . esc_attr($miniworld_kindergartenouramazingprograms_subheading_color) . ';';
	$miniworld_kindergarten_custom_css .= '}';

	$miniworld_kindergartenouramazingprograms_boxicon_color = get_theme_mod('miniworld_kindergartenouramazingprograms_boxicon_color');
	$miniworld_kindergarten_custom_css .= ' #ouramazingprograms-section .subtitl i {';
		$miniworld_kindergarten_custom_css .= 'color: ' . esc_attr($miniworld_kindergartenouramazingprograms_boxicon_color) . ';';
	$miniworld_kindergarten_custom_css .= '}';

	$miniworld_kindergartenouramazingprograms_boxiconbg_color = get_theme_mod('miniworld_kindergartenouramazingprograms_boxiconbg_color');
	$miniworld_kindergarten_custom_css .= ' #ouramazingprograms-section .subtitl {';
		$miniworld_kindergarten_custom_css .= 'background: ' . esc_attr($miniworld_kindergartenouramazingprograms_boxiconbg_color) . ';';
	$miniworld_kindergarten_custom_css .= '}';

	$miniworld_kindergartenouramazingprograms_boxtitle_color = get_theme_mod('miniworld_kindergartenouramazingprograms_boxtitle_color');
	$miniworld_kindergarten_custom_css .= ' #ouramazingprograms-section .ouramazingprograms-content .title {';
		$miniworld_kindergarten_custom_css .= 'color: ' . esc_attr($miniworld_kindergartenouramazingprograms_boxtitle_color) . ';';
	$miniworld_kindergarten_custom_css .= '}';

	$miniworld_kindergartenouramazingprograms_boxdescription_color = get_theme_mod('miniworld_kindergartenouramazingprograms_boxdescription_color');
	$miniworld_kindergarten_custom_css .= ' #ouramazingprograms-section .ouramazingprograms-content p {';
		$miniworld_kindergarten_custom_css .= 'color: ' . esc_attr($miniworld_kindergartenouramazingprograms_boxdescription_color) . ';';
	$miniworld_kindergarten_custom_css .= '}';

	$miniworld_kindergartenouramazingprograms_boxbtntext_color = get_theme_mod('miniworld_kindergartenouramazingprograms_boxbtntext_color');
	$miniworld_kindergarten_custom_css .= ' #ouramazingprograms-section .bttn a {';
		$miniworld_kindergarten_custom_css .= 'color: ' . esc_attr($miniworld_kindergartenouramazingprograms_boxbtntext_color) . ';';
	$miniworld_kindergarten_custom_css .= '}';

	$miniworld_kindergartenouramazingprograms_boxbtnbg_color = get_theme_mod('miniworld_kindergartenouramazingprograms_boxbtnbg_color');
	$miniworld_kindergarten_custom_css .= ' #ouramazingprograms-section .bttn a {';
		$miniworld_kindergarten_custom_css .= 'background: ' . esc_attr($miniworld_kindergartenouramazingprograms_boxbtnbg_color) . ';';
	$miniworld_kindergarten_custom_css .= '}';

	$miniworld_kindergartenouramazingprograms_boxbtnbghrv_color = get_theme_mod('miniworld_kindergartenouramazingprograms_boxbtnbghrv_color');
	$miniworld_kindergarten_custom_css .= ' #ouramazingprograms-section .bttn a:hover {';
		$miniworld_kindergarten_custom_css .= 'background: ' . esc_attr($miniworld_kindergartenouramazingprograms_boxbtnbghrv_color) . ';';
	$miniworld_kindergarten_custom_css .= '}';



	// footer
	$miniworld_kindergarten_footer_copy_font_size = get_theme_mod('miniworld_kindergarten_footer_copy_font_size');
	$miniworld_kindergarten_custom_css .= ' #footer-section .copyright p {';
		$miniworld_kindergarten_custom_css .= 'font-size: ' . esc_attr($miniworld_kindergarten_footer_copy_font_size) . 'px;';
	$miniworld_kindergarten_custom_css .= '}';

	$miniworld_kindergartenfooter_copyrighttext_color = get_theme_mod('miniworld_kindergartenfooter_copyrighttext_color');
	$miniworld_kindergarten_custom_css .= ' #footer-section .copyright p {';
		$miniworld_kindergarten_custom_css .= 'color: ' . esc_attr($miniworld_kindergartenfooter_copyrighttext_color) . ';';
	$miniworld_kindergarten_custom_css .= '}';

	$miniworld_kindergartenfooter_copyrightbg_color = get_theme_mod('miniworld_kindergartenfooter_copyrightbg_color');
	$miniworld_kindergarten_custom_css .= ' .copyright{';
		$miniworld_kindergarten_custom_css .= 'background: ' . esc_attr($miniworld_kindergartenfooter_copyrightbg_color) . ';';
	$miniworld_kindergarten_custom_css .= '}';

	$miniworld_kindergartenfooter_copyrightbg_color = get_theme_mod('miniworld_kindergartenfooter_copyrightbg_color');
	$miniworld_kindergarten_custom_css .= ' #footer-section .f_tbrd {';
		$miniworld_kindergarten_custom_css .= 'border-color: ' . esc_attr($miniworld_kindergartenfooter_copyrightbg_color) . ';';
	$miniworld_kindergarten_custom_css .= '}';

	$miniworld_kindergartenfooter_bg_color = get_theme_mod('miniworld_kindergartenfooter_bg_color');
	$miniworld_kindergarten_custom_css .= ' #footer-section {';
		$miniworld_kindergarten_custom_css .= 'background: ' . esc_attr($miniworld_kindergartenfooter_bg_color) . ';';
	$miniworld_kindergarten_custom_css .= '}';

	$miniworld_kindergarten_wedgets_color = get_theme_mod('miniworld_kindergarten_wedgets_color');
	$miniworld_kindergarten_custom_css .= ' #footer-section h1, #footer-section h2, #footer-section h3, #footer-section h4, #footer-section h5, #footer-section h6 {';
		$miniworld_kindergarten_custom_css .= 'color: ' . esc_attr($miniworld_kindergarten_wedgets_color) . ' !important;';
	$miniworld_kindergarten_custom_css .= '}';

	$miniworld_kindergarten_wedgets_menus_color = get_theme_mod('miniworld_kindergarten_wedgets_menus_color');
	$miniworld_kindergarten_custom_css .= ' .widget li a, aside#categories-5 li a, #footer-section a, #footer-section .logo a, #footer-section .logo p {';
		$miniworld_kindergarten_custom_css .= 'color: ' . esc_attr($miniworld_kindergarten_wedgets_menus_color) . ' !important;';
	$miniworld_kindergarten_custom_css .= '}';


