<?php

$psychologist_counselor_custom_css = "";


$psychologist_counselor_primary_color = get_theme_mod('psychologist_counselor_primary_color');
$psychologist_counselor_second_color = get_theme_mod('psychologist_counselor_second_color');

/*------------------ Primary Global Color -----------*/

if ($psychologist_counselor_primary_color) {
  $psychologist_counselor_custom_css .= ':root {';
  $psychologist_counselor_custom_css .= '--primary-color: ' . esc_attr($psychologist_counselor_primary_color) . ' !important;';
  $psychologist_counselor_custom_css .= '} ';
}

/*------------------ Secondary Global Color -----------*/

if ($psychologist_counselor_second_color) {
  $psychologist_counselor_custom_css .= ':root {';
  $psychologist_counselor_custom_css .= '--secondary-color: ' . esc_attr($psychologist_counselor_second_color) . ' !important;';
  $psychologist_counselor_custom_css .= '} ';
}

/*-------------------- Scroll Top Alignment-------------------*/

$psychologist_counselor_scroll_top_alignment = get_theme_mod( 'psychologist_counselor_scroll_top_alignment','right-align');

if($psychologist_counselor_scroll_top_alignment == 'right-align'){
$psychologist_counselor_custom_css .='#button{';
	$psychologist_counselor_custom_css .='right: 3%;';
$psychologist_counselor_custom_css .='}';
}else if($psychologist_counselor_scroll_top_alignment == 'center-align'){
$psychologist_counselor_custom_css .='#button{';
	$psychologist_counselor_custom_css .='right:0; left:0; margin: 0 auto;';
$psychologist_counselor_custom_css .='}';
}else if($psychologist_counselor_scroll_top_alignment == 'left-align'){
$psychologist_counselor_custom_css .='#button{';
	$psychologist_counselor_custom_css .='left: 3%;';
$psychologist_counselor_custom_css .='}';
}

/*-------------------- Archive Page Pagination Alignment-------------------*/

$psychologist_counselor_archive_pagination_alignment = get_theme_mod( 'psychologist_counselor_archive_pagination_alignment','left-align');

if($psychologist_counselor_archive_pagination_alignment == 'right-align'){
$psychologist_counselor_custom_css .='.pagination{';
	$psychologist_counselor_custom_css .='justify-content: end;';
$psychologist_counselor_custom_css .='}';
}else if($psychologist_counselor_archive_pagination_alignment == 'center-align'){
$psychologist_counselor_custom_css .='.pagination{';
	$psychologist_counselor_custom_css .='justify-content: center;';
$psychologist_counselor_custom_css .='}';
}else if($psychologist_counselor_archive_pagination_alignment == 'left-align'){
$psychologist_counselor_custom_css .='.pagination{';
	$psychologist_counselor_custom_css .='justify-content: start;';
$psychologist_counselor_custom_css .='}';
}

/*-------------------- Scroll Top Responsive-------------------*/

$psychologist_counselor_resp_scroll_top = get_theme_mod( 'psychologist_counselor_resp_scroll_top',true);
if($psychologist_counselor_resp_scroll_top == true && get_theme_mod( 'psychologist_counselor_scroll_to_top',true) != true){
	$psychologist_counselor_custom_css .='#button.show{';
		$psychologist_counselor_custom_css .='visibility:hidden !important;';
	$psychologist_counselor_custom_css .='} ';
}
if($psychologist_counselor_resp_scroll_top == true){
	$psychologist_counselor_custom_css .='@media screen and (max-width:575px) {';
	$psychologist_counselor_custom_css .='#button.show{';
		$psychologist_counselor_custom_css .='visibility:visible !important;';
	$psychologist_counselor_custom_css .='} }';
}else if($psychologist_counselor_resp_scroll_top == false){
	$psychologist_counselor_custom_css .='@media screen and (max-width:575px){';
	$psychologist_counselor_custom_css .='#button.show{';
		$psychologist_counselor_custom_css .='visibility:hidden !important;';
	$psychologist_counselor_custom_css .='} }';
}

/*-------------------- Preloader Responsive-------------------*/

$psychologist_counselor_resp_loader = get_theme_mod('psychologist_counselor_resp_loader',false);
if($psychologist_counselor_resp_loader == true && get_theme_mod('psychologist_counselor_header_preloader',false) == false){
	$psychologist_counselor_custom_css .='@media screen and (min-width:575px){
		.preloader{';
		$psychologist_counselor_custom_css .='display:none !important;';
	$psychologist_counselor_custom_css .='} }';
}

if($psychologist_counselor_resp_loader == false){
	$psychologist_counselor_custom_css .='@media screen and (max-width:575px){
		.preloader{';
		$psychologist_counselor_custom_css .='display:none !important;';
	$psychologist_counselor_custom_css .='} }';
}

// Scroll to top button shape 

$psychologist_counselor_scroll_border_radius = get_theme_mod( 'psychologist_counselor_scroll_to_top_radius','curved-box');
if($psychologist_counselor_scroll_border_radius == 'box'){
	$psychologist_counselor_custom_css .='#button{';
		$psychologist_counselor_custom_css .='border-radius: 0px;';
	$psychologist_counselor_custom_css .='}';
}else if($psychologist_counselor_scroll_border_radius == 'curved-box'){
	$psychologist_counselor_custom_css .='#button{';
		$psychologist_counselor_custom_css .='border-radius: 4px;';
	$psychologist_counselor_custom_css .='}';
}
else if($psychologist_counselor_scroll_border_radius == 'circle'){
	$psychologist_counselor_custom_css .='#button{';
		$psychologist_counselor_custom_css .='border-radius: 50%;';
	$psychologist_counselor_custom_css .='}';
}

// Footer Background Image Attatchment 

$psychologist_counselor_footer_attatchment = get_theme_mod( 'psychologist_counselor_background_attatchment','scroll');
if($psychologist_counselor_footer_attatchment == 'fixed'){
	$psychologist_counselor_custom_css .='.site-footer{';
		$psychologist_counselor_custom_css .='background-attachment: fixed;';
	$psychologist_counselor_custom_css .='}';
}elseif ($psychologist_counselor_footer_attatchment == 'scroll'){
	$psychologist_counselor_custom_css .='.site-footer{';
		$psychologist_counselor_custom_css .='background-attachment: scroll;';
	$psychologist_counselor_custom_css .='}';
}

// Menu Hover Style	

$psychologist_counselor_menus_item = get_theme_mod( 'psychologist_counselor_menus_style','None');
if($psychologist_counselor_menus_item == 'None'){
	$psychologist_counselor_custom_css .='#site-navigation .menu ul li a:hover, .main-navigation .menu li a:hover{';
		$psychologist_counselor_custom_css .='';
	$psychologist_counselor_custom_css .='}';
}else if($psychologist_counselor_menus_item == 'Zoom In'){
	$psychologist_counselor_custom_css .='#site-navigation .menu ul li a:hover, .main-navigation .menu li a:hover{';
	$psychologist_counselor_custom_css .= 'transition: all 0.3s ease-in-out !important; transform: scale(1.2) !important;';
	$psychologist_counselor_custom_css .= '}';
	
	$psychologist_counselor_custom_css .= '.main-navigation ul ul li a:hover {';
	$psychologist_counselor_custom_css .= 'margin-left: 20px;';
	$psychologist_counselor_custom_css .= '}';
}	

// Post Content Alignment

$psychologist_counselor_blog_layout_option = get_theme_mod( 'psychologist_counselor_blog_layout_option','Left');
if($psychologist_counselor_blog_layout_option == 'Left'){
	$psychologist_counselor_custom_css .='.post{';
		$psychologist_counselor_custom_css .='text-align: left;';
	$psychologist_counselor_custom_css .='}';
}elseif ($psychologist_counselor_blog_layout_option == 'Right'){
	$psychologist_counselor_custom_css .='.post{';
		$psychologist_counselor_custom_css .='text-align: right;';
	$psychologist_counselor_custom_css .='}';
}elseif ($psychologist_counselor_blog_layout_option == 'Center'){
	$psychologist_counselor_custom_css .='.post{';
		$psychologist_counselor_custom_css .='text-align: center;';
	$psychologist_counselor_custom_css .='}';
}