<?php 

	$akhada_fitness_gym_custom_style = '';

	// Global color
	$akhada_fitness_gym_theme_color = get_theme_mod('akhada_fitness_gym_theme_color');

	if( $akhada_fitness_gym_theme_color != ''){

		$akhada_fitness_gym_custom_style .=' button, input[type="button"], input[type="submit"], #sidelong-menu, .nav-menu ul ul a, .social-icons i:hover, .more-btn a, .service-main-box:hover, .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, .prev.page-numbers, .next.page-numbers, a.more-link, .copyright, #sidebar h3.widget-title, button.search-submit {';
			$akhada_fitness_gym_custom_style .=' background-color: '.esc_attr($akhada_fitness_gym_theme_color).';';
		$akhada_fitness_gym_custom_style .=' }';

		$akhada_fitness_gym_custom_style .=' .article_content a, .lz-content a, .entry-content a, .comment-body a, .textwidget a, #tab-description a, .woocommerce-product-details__short-description a, .service-content a {';
			$akhada_fitness_gym_custom_style .=' color: '.esc_attr($akhada_fitness_gym_theme_color).';';
		$akhada_fitness_gym_custom_style .=' }';

		$akhada_fitness_gym_custom_style .=' .social-icons i:hover, .sticky .article_content {';
			$akhada_fitness_gym_custom_style .=' border-color: '.esc_attr($akhada_fitness_gym_theme_color).';';
		$akhada_fitness_gym_custom_style .=' }';

		$akhada_fitness_gym_custom_style .=' @media screen and (max-width:1000px) {
			.toggle-menu';
			$akhada_fitness_gym_custom_style .=' background-color: '.esc_attr($akhada_fitness_gym_theme_color).';';
		$akhada_fitness_gym_custom_style .=' } }';
	}

	// Logo Size
	$akhada_fitness_gym_logo_top_padding = get_theme_mod('akhada_fitness_gym_logo_top_padding');
	$akhada_fitness_gym_logo_bottom_padding = get_theme_mod('akhada_fitness_gym_logo_bottom_padding');
	$akhada_fitness_gym_logo_left_padding = get_theme_mod('akhada_fitness_gym_logo_left_padding');
	$akhada_fitness_gym_logo_right_padding = get_theme_mod('akhada_fitness_gym_logo_right_padding');

	if( $akhada_fitness_gym_logo_top_padding != '' || $akhada_fitness_gym_logo_bottom_padding != '' || $akhada_fitness_gym_logo_left_padding != '' || $akhada_fitness_gym_logo_right_padding != ''){
		$akhada_fitness_gym_custom_style .=' .logo {';
			$akhada_fitness_gym_custom_style .=' padding-top: '.esc_attr($akhada_fitness_gym_logo_top_padding).'px; padding-bottom: '.esc_attr($akhada_fitness_gym_logo_bottom_padding).'px; padding-left: '.esc_attr($akhada_fitness_gym_logo_left_padding).'px; padding-right: '.esc_attr($akhada_fitness_gym_logo_right_padding).'px;';
		$akhada_fitness_gym_custom_style .=' }';
	}

	$akhada_fitness_gym_logo_size = get_theme_mod('akhada_fitness_gym_logo_size');

	if( $akhada_fitness_gym_logo_size !== '' && is_numeric($akhada_fitness_gym_logo_size) ) {
		// Ensure the logo size is between 0 and 100
		if($akhada_fitness_gym_logo_size >= 0 && $akhada_fitness_gym_logo_size <= 100) {
			// Calculate the width, considering 3.5 as the multiplier
			$calculated_width = floatval($akhada_fitness_gym_logo_size) * 3.5;

			// Add the custom CSS for the logo size
			$akhada_fitness_gym_custom_style .= ' .custom-logo-link img {';
			$akhada_fitness_gym_custom_style .= ' width: ' . esc_attr($calculated_width) . 'px !important;';
			$akhada_fitness_gym_custom_style .= ' max-width: 100%;'; // Ensure it doesn't exceed container
			$akhada_fitness_gym_custom_style .= ' height: auto;'; // Maintain aspect ratio
			$akhada_fitness_gym_custom_style .= ' }';
		}
	}


	$akhada_fitness_gym_logo_size = get_theme_mod('akhada_fitness_gym_logo_size');

	if ( $akhada_fitness_gym_logo_size != '') {
		$akhada_fitness_gym_custom_style .=' .custom-logo-link img {';
			$akhada_fitness_gym_custom_style .=' width:'.esc_attr($akhada_fitness_gym_logo_size).' px !important;';
		$akhada_fitness_gym_custom_style .=' }';
	}

	//Menu Animation 
	$akhada_fitness_gym_dropdown_anim = get_theme_mod('akhada_fitness_gym_dropdown_anim');

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

	// service section padding
	$akhada_fitness_gym_services_img_hight = get_theme_mod('akhada_fitness_gym_services_img_hight');

	if ( $akhada_fitness_gym_services_img_hight != '') {
		$akhada_fitness_gym_custom_style .=' .service-image img {';
			$akhada_fitness_gym_custom_style .=' height:'.esc_attr($akhada_fitness_gym_services_img_hight).'px !important;';
		$akhada_fitness_gym_custom_style .=' }';
	}

	$akhada_fitness_gym_services_section_padding = get_theme_mod('akhada_fitness_gym_services_section_padding');

	if( $akhada_fitness_gym_services_section_padding != ''){
		$akhada_fitness_gym_custom_style .=' #our-services {';
			$akhada_fitness_gym_custom_style .=' padding-top: '.esc_attr($akhada_fitness_gym_services_section_padding).'px !important; padding-bottom: '.esc_attr($akhada_fitness_gym_services_section_padding).'px;';
		$akhada_fitness_gym_custom_style .=' }';
	}

	$akhada_fitness_gym_site_title_font_size = get_theme_mod('akhada_fitness_gym_site_title_font_size');

	if ( $akhada_fitness_gym_site_title_font_size != '') {
		$akhada_fitness_gym_custom_style .=' .logo h1 a, .logo p.site-title a {';
			$akhada_fitness_gym_custom_style .=' font-size:'.esc_attr($akhada_fitness_gym_site_title_font_size).'px;';
		$akhada_fitness_gym_custom_style .=' }';
	}

	$akhada_fitness_gym_site_title_color = get_theme_mod('akhada_fitness_gym_site_title_color');

	if ( $akhada_fitness_gym_site_title_color != '') {
		$akhada_fitness_gym_custom_style .=' .logo h1 a, .logo p.site-title a {';
			$akhada_fitness_gym_custom_style .=' color:'.esc_attr($akhada_fitness_gym_site_title_color).';';
		$akhada_fitness_gym_custom_style .=' }';
	}

	// Site Tagline Font Size
	$akhada_fitness_gym_site_tagline_font_size = get_theme_mod('akhada_fitness_gym_site_tagline_font_size');
	if( $akhada_fitness_gym_site_tagline_font_size != ''){
		$akhada_fitness_gym_custom_style .=' .site-description {';
			$akhada_fitness_gym_custom_style .=' font-size: '.esc_attr($akhada_fitness_gym_site_tagline_font_size).'px;';
		$akhada_fitness_gym_custom_style .=' }';
	}

	$akhada_fitness_gym_site_tagline_color = get_theme_mod('akhada_fitness_gym_site_tagline_color');

	if ( $akhada_fitness_gym_site_tagline_color != '') {
		$akhada_fitness_gym_custom_style .=' .site-description {';
			$akhada_fitness_gym_custom_style .=' color:'.esc_attr($akhada_fitness_gym_site_tagline_color).';';
		$akhada_fitness_gym_custom_style .=' }';
	}

	// Copyright padding
	$akhada_fitness_gym_custom_style = '';
	$akhada_fitness_gym_copyright_padding = get_theme_mod('akhada_fitness_gym_copyright_padding');

	if ($akhada_fitness_gym_copyright_padding != '') {
		$akhada_fitness_gym_custom_style .= '.copyright {';
		$akhada_fitness_gym_custom_style .= ' padding-top: ' . esc_attr($akhada_fitness_gym_copyright_padding) . 'px; padding-bottom: ' . esc_attr($akhada_fitness_gym_copyright_padding) . 'px;';
		$akhada_fitness_gym_custom_style .= ' }';
	}

	// Header Image
	$header_image_url = akhada_fitness_gym_banner_image( $image_url = '' );
	if( $header_image_url != ''){
		$akhada_fitness_gym_custom_style .=' #inner-pages-header {';
			$akhada_fitness_gym_custom_style .=' background-image: url('. esc_url( $header_image_url ).'); background-size: cover; background-repeat: no-repeat; background-attachment: fixed;';
		$akhada_fitness_gym_custom_style .=' }';
		$akhada_fitness_gym_custom_style .=' .header-overlay {';
			$akhada_fitness_gym_custom_style .=' position: absolute; 	width: 100%; height: 100%; 	top: 0; left: 0; background: #000; opacity: 0.3;';
		$akhada_fitness_gym_custom_style .=' }';
	} else {
		$akhada_fitness_gym_custom_style .=' #inner-pages-header {';
			$akhada_fitness_gym_custom_style .=' background: linear-gradient(0deg,#000,#1a1a1a 80%) no-repeat; ';
		$akhada_fitness_gym_custom_style .=' }';
	}

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

//Social icons color
$akhada_fitness_gym_social_color = get_theme_mod('akhada_fitness_gym_social_color');

if ( $akhada_fitness_gym_social_color != '') {
	$akhada_fitness_gym_custom_style .=' .social-icons i {';
		$akhada_fitness_gym_custom_style .=' color:'.esc_attr($akhada_fitness_gym_social_color).';';
	$akhada_fitness_gym_custom_style .=' }';
}

//Slider color
$akhada_fitness_gym_banner_title_font_size = get_theme_mod('akhada_fitness_gym_banner_title_font_size');

if ( $akhada_fitness_gym_banner_title_font_size != '') {
	$akhada_fitness_gym_custom_style .=' #banner h1 {';
		$akhada_fitness_gym_custom_style .=' font-size:'.esc_attr($akhada_fitness_gym_banner_title_font_size).'px !important;';
	$akhada_fitness_gym_custom_style .=' }';
}

$akhada_fitness_gym_banner_text_font_size = get_theme_mod('akhada_fitness_gym_banner_text_font_size');

if ( $akhada_fitness_gym_banner_text_font_size != '') {
	$akhada_fitness_gym_custom_style .=' #banner p {';
		$akhada_fitness_gym_custom_style .=' font-size:'.esc_attr($akhada_fitness_gym_banner_text_font_size).'px !important;';
	$akhada_fitness_gym_custom_style .=' }';
}

$akhada_fitness_gym_slider_color = get_theme_mod('akhada_fitness_gym_slider_color');

if ( $akhada_fitness_gym_slider_color != '') {
	$akhada_fitness_gym_custom_style .=' #banner h1 {';
		$akhada_fitness_gym_custom_style .=' color:'.esc_attr($akhada_fitness_gym_slider_color).';';
	$akhada_fitness_gym_custom_style .=' }';
}

$akhada_fitness_gym_slider_text_color = get_theme_mod('akhada_fitness_gym_slider_text_color');

if ( $akhada_fitness_gym_slider_text_color != '') {
	$akhada_fitness_gym_custom_style .=' #banner p {';
		$akhada_fitness_gym_custom_style .=' color:'.esc_attr($akhada_fitness_gym_slider_text_color).';';
	$akhada_fitness_gym_custom_style .=' }';
}

$akhada_fitness_gym_slider_btn_color = get_theme_mod('akhada_fitness_gym_slider_btn_color');
$akhada_fitness_gym_slider_btnbg_color = get_theme_mod('akhada_fitness_gym_slider_btnbg_color');
if ( $akhada_fitness_gym_slider_btn_color != '') {
	$akhada_fitness_gym_custom_style .=' #banner .more-btn a {';
		$akhada_fitness_gym_custom_style .=' color:'.esc_attr($akhada_fitness_gym_slider_btn_color).'; background-color:'.esc_attr($akhada_fitness_gym_slider_btnbg_color).';';
	$akhada_fitness_gym_custom_style .=' }';
}

//Service color
$akhada_fitness_gym_service_color = get_theme_mod('akhada_fitness_gym_service_color');

if ( $akhada_fitness_gym_service_color != '') {
	$akhada_fitness_gym_custom_style .='.service-main-box h3, .service-main-box p,.service-main-box .service-content a{';
		$akhada_fitness_gym_custom_style .=' color:'.esc_attr($akhada_fitness_gym_service_color).';';
	$akhada_fitness_gym_custom_style .=' }';
}

$akhada_fitness_gym_servicetitle_color = get_theme_mod('akhada_fitness_gym_servicetitle_color');

if ( $akhada_fitness_gym_servicetitle_color != '') {
	$akhada_fitness_gym_custom_style .=' #our-services h2 {';
		$akhada_fitness_gym_custom_style .=' color:'.esc_attr($akhada_fitness_gym_servicetitle_color).';';
	$akhada_fitness_gym_custom_style .=' }';
}

$akhada_fitness_gym_service_title_font_size = get_theme_mod('akhada_fitness_gym_service_title_font_size');

if ( $akhada_fitness_gym_service_title_font_size != '') {
	$akhada_fitness_gym_custom_style .=' #our-services h2 {';
		$akhada_fitness_gym_custom_style .=' font-size:'.esc_attr($akhada_fitness_gym_service_title_font_size).'px !important;';
	$akhada_fitness_gym_custom_style .=' }';
}

$akhada_fitness_gym_service_post_title_font_size = get_theme_mod('akhada_fitness_gym_service_post_title_font_size');

if ( $akhada_fitness_gym_service_post_title_font_size != '') {
	$akhada_fitness_gym_custom_style .=' .service-main-box h3 {';
		$akhada_fitness_gym_custom_style .=' font-size:'.esc_attr($akhada_fitness_gym_service_post_title_font_size).'px !important;';
	$akhada_fitness_gym_custom_style .=' }';
}

$akhada_fitness_gym_service_post_text_font_size = get_theme_mod('akhada_fitness_gym_service_post_text_font_size');

if ( $akhada_fitness_gym_service_post_text_font_size != '') {
	$akhada_fitness_gym_custom_style .=' .service-main-box p {';
		$akhada_fitness_gym_custom_style .=' font-size:'.esc_attr($akhada_fitness_gym_service_post_text_font_size).'px !important;';
	$akhada_fitness_gym_custom_style .=' }';
}

//footer css
$akhada_fitness_gym_footer_copy_font_size = get_theme_mod('akhada_fitness_gym_footer_copy_font_size');

if ( $akhada_fitness_gym_footer_copy_font_size != '') {
	$akhada_fitness_gym_custom_style .=' .site-info p, .site-info a {';
		$akhada_fitness_gym_custom_style .=' font-size:'.esc_attr($akhada_fitness_gym_footer_copy_font_size).'px !important;';
	$akhada_fitness_gym_custom_style .=' }';
}

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

$akhada_fitness_gym_copyrightbg_color = get_theme_mod('akhada_fitness_gym_copyrightbg_color');
if ( $akhada_fitness_gym_copyrightbg_color != '') {
	$akhada_fitness_gym_custom_style .=' .copyright {';
		$akhada_fitness_gym_custom_style .=' background-color:'.esc_attr($akhada_fitness_gym_copyrightbg_color).';';
	$akhada_fitness_gym_custom_style .=' }';
}