<?php

$news_press_release_custom_css = "";

$news_press_release_primary_color = get_theme_mod('news_press_release_primary_color');

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

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

/*-------------------- Post Content Alignment-------------------*/

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

if($news_press_release_single_post_align == 'left-align'){
$news_press_release_custom_css .='body:not(.hide-post-meta) .post{';
	$news_press_release_custom_css .='text-align: left';
$news_press_release_custom_css .='}';
}else if($news_press_release_single_post_align == 'right-align'){
$news_press_release_custom_css .='body:not(.hide-post-meta) .post{';
	$news_press_release_custom_css .='text-align: right';
$news_press_release_custom_css .='}';
}else if($news_press_release_single_post_align == 'center-align'){
$news_press_release_custom_css .='body:not(.hide-post-meta) .post{';
	$news_press_release_custom_css .='text-align: center';
$news_press_release_custom_css .='}';
}

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

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

if($news_press_release_scroll_top_alignment == 'right-align'){
$news_press_release_custom_css .='#button{';
	$news_press_release_custom_css .='right: 5%;';
$news_press_release_custom_css .='}';
}else if($news_press_release_scroll_top_alignment == 'center-align'){
$news_press_release_custom_css .='#button{';
	$news_press_release_custom_css .='right:0; left:0; margin: 0 auto;';
$news_press_release_custom_css .='}';
}else if($news_press_release_scroll_top_alignment == 'left-align'){
$news_press_release_custom_css .='#button{';
	$news_press_release_custom_css .='left: 5%;';
$news_press_release_custom_css .='}';
}

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

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

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

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

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

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

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

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

	// Scroll to top button shape 

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

  // Footer Background Image Attatchment 

	$news_press_release_footer_attatchment = get_theme_mod( 'news_press_release_background_attatchment','scroll');
	if($news_press_release_footer_attatchment == 'fixed'){
		$news_press_release_custom_css .='.site-footer{';
			$news_press_release_custom_css .='background-attachment: fixed;';
		$news_press_release_custom_css .='}';
	}elseif ($news_press_release_footer_attatchment == 'scroll'){
		$news_press_release_custom_css .='.site-footer{';
			$news_press_release_custom_css .='background-attachment: scroll;';
		$news_press_release_custom_css .='}';
	}

  // Menu Hover Style	

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