<?php

$church_services_tp_theme_css = "";


// footer widget letter case
$church_services_footer_widget_title_text_tranform = get_theme_mod( 'church_services_footer_widget_title_text_tranform','');
if($church_services_footer_widget_title_text_tranform == 'Uppercase'){
$church_services_tp_theme_css .='#footer h2, #footer h3, #footer h1.wp-block-heading, #footer h2.wp-block-heading, #footer h3.wp-block-heading, #footer h4.wp-block-heading, #footer h5.wp-block-heading, #footer h6.wp-block-heading {';
    $church_services_tp_theme_css .='text-transform: uppercase;';
$church_services_tp_theme_css .='}';
}else if($church_services_footer_widget_title_text_tranform == 'Lowercase'){
$church_services_tp_theme_css .='#footer h2, #footer h3, #footer h1.wp-block-heading, #footer h2.wp-block-heading, #footer h3.wp-block-heading, #footer h4.wp-block-heading, #footer h5.wp-block-heading, #footer h6.wp-block-heading {';
    $church_services_tp_theme_css .='text-transform: lowercase;';
$church_services_tp_theme_css .='}';
}
else if($church_services_footer_widget_title_text_tranform == 'Capitalize'){
$church_services_tp_theme_css .='#footer h2, #footer h3, #footer h1.wp-block-heading, #footer h2.wp-block-heading, #footer h3.wp-block-heading, #footer h4.wp-block-heading, #footer h5.wp-block-heading, #footer h6.wp-block-heading {';
    $church_services_tp_theme_css .='text-transform: capitalize;';
$church_services_tp_theme_css .='}';
}

//Footer Font Weight
$church_services_footer_widget_title_font_weight = get_theme_mod( 'church_services_footer_widget_title_font_weight','');
if($church_services_footer_widget_title_font_weight == '100'){
$church_services_tp_theme_css .='#footer h2, #footer h3, #footer h1.wp-block-heading, #footer h2.wp-block-heading, #footer h3.wp-block-heading, #footer h4.wp-block-heading, #footer h5.wp-block-heading, #footer h6.wp-block-heading {';
    $church_services_tp_theme_css .='font-weight: 100;';
$church_services_tp_theme_css .='}';
}else if($church_services_footer_widget_title_font_weight == '200'){
$church_services_tp_theme_css .='#footer h2, #footer h3, #footer h1.wp-block-heading, #footer h2.wp-block-heading, #footer h3.wp-block-heading, #footer h4.wp-block-heading, #footer h5.wp-block-heading, #footer h6.wp-block-heading {';
    $church_services_tp_theme_css .='font-weight: 200;';
$church_services_tp_theme_css .='}';
}else if($church_services_footer_widget_title_font_weight == '300'){
$church_services_tp_theme_css .='#footer h2, #footer h3, #footer h1.wp-block-heading, #footer h2.wp-block-heading, #footer h3.wp-block-heading, #footer h4.wp-block-heading, #footer h5.wp-block-heading, #footer h6.wp-block-heading {';
    $church_services_tp_theme_css .='font-weight: 300;';
$church_services_tp_theme_css .='}';
}else if($church_services_footer_widget_title_font_weight == '400'){
$church_services_tp_theme_css .='#footer h2, #footer h3, #footer h1.wp-block-heading, #footer h2.wp-block-heading, #footer h3.wp-block-heading, #footer h4.wp-block-heading, #footer h5.wp-block-heading, #footer h6.wp-block-heading {';
    $church_services_tp_theme_css .='font-weight: 400;';
$church_services_tp_theme_css .='}';
}else if($church_services_footer_widget_title_font_weight == '500'){
$church_services_tp_theme_css .='#footer h2, #footer h3, #footer h1.wp-block-heading, #footer h2.wp-block-heading, #footer h3.wp-block-heading, #footer h4.wp-block-heading, #footer h5.wp-block-heading, #footer h6.wp-block-heading {';
    $church_services_tp_theme_css .='font-weight: 500;';
$church_services_tp_theme_css .='}';
}else if($church_services_footer_widget_title_font_weight == '600'){
$church_services_tp_theme_css .='#footer h2, #footer h3, #footer h1.wp-block-heading, #footer h2.wp-block-heading, #footer h3.wp-block-heading, #footer h4.wp-block-heading, #footer h5.wp-block-heading, #footer h6.wp-block-heading {';
    $church_services_tp_theme_css .='font-weight: 600;';
$church_services_tp_theme_css .='}';
}else if($church_services_footer_widget_title_font_weight == '700'){
$church_services_tp_theme_css .='#footer h2, #footer h3, #footer h1.wp-block-heading, #footer h2.wp-block-heading, #footer h3.wp-block-heading, #footer h4.wp-block-heading, #footer h5.wp-block-heading, #footer h6.wp-block-heading {';
    $church_services_tp_theme_css .='font-weight: 700;';
$church_services_tp_theme_css .='}';
}else if($church_services_footer_widget_title_font_weight == '800'){
$church_services_tp_theme_css .='#footer h2, #footer h3, #footer h1.wp-block-heading, #footer h2.wp-block-heading, #footer h3.wp-block-heading, #footer h4.wp-block-heading, #footer h5.wp-block-heading, #footer h6.wp-block-heading {';
    $church_services_tp_theme_css .='font-weight: 800;';
$church_services_tp_theme_css .='}';
}else if($church_services_footer_widget_title_font_weight == '900'){
$church_services_tp_theme_css .='#footer h2, #footer h3, #footer h1.wp-block-heading, #footer h2.wp-block-heading, #footer h3.wp-block-heading, #footer h4.wp-block-heading, #footer h5.wp-block-heading, #footer h6.wp-block-heading {';
    $church_services_tp_theme_css .='font-weight: 900;';
$church_services_tp_theme_css .='}';
}

// footer widget position
$church_services_footer_widget_title_position = get_theme_mod( 'church_services_footer_widget_title_position','');
if($church_services_footer_widget_title_position == 'Right'){
$church_services_tp_theme_css .='#footer aside.widget{';
$church_services_tp_theme_css .='text-align: right;';
$church_services_tp_theme_css .='}';
}else if($church_services_footer_widget_title_position == 'Left'){
$church_services_tp_theme_css .='#footer aside.widget{';
$church_services_tp_theme_css .='text-align: left;';
$church_services_tp_theme_css .='}';
}else if($church_services_footer_widget_title_position == 'Center'){
$church_services_tp_theme_css .='#footer aside.widget{';
$church_services_tp_theme_css .='text-align: center;';
$church_services_tp_theme_css .='}';
}

//body layout//

$church_services_theme_lay = get_theme_mod( 'church_services_tp_body_layout_settings','Full');
if($church_services_theme_lay == 'Container'){
$church_services_tp_theme_css .='body{';
	$church_services_tp_theme_css .='max-width: 1140px; width: 100%; padding-right: 15px; padding-left: 15px; margin-right: auto; margin-left: auto;';
$church_services_tp_theme_css .='}';
$church_services_tp_theme_css .='@media screen and (max-width:575px){';
$church_services_tp_theme_css .='body{';
	$church_services_tp_theme_css .='max-width: 100%; padding-right:0px; padding-left: 0px';
$church_services_tp_theme_css .='} }';
$church_services_tp_theme_css .='#slider h6:before {';
	$church_services_tp_theme_css .='width: 36px;';
$church_services_tp_theme_css .='}';
$church_services_tp_theme_css .='.page-template-front-page .menubar{';
	$church_services_tp_theme_css .='position: static;';
$church_services_tp_theme_css .='}';
$church_services_tp_theme_css .='@media screen and (max-width:575px){';
$church_services_tp_theme_css .='body{';
	$church_services_tp_theme_css .='max-width: 100%; padding-right:0px; padding-left:0px';
$church_services_tp_theme_css .='} }';
$church_services_tp_theme_css .='.scrolled{';
	$church_services_tp_theme_css .='width: auto; left:0; right:0;';
$church_services_tp_theme_css .='}';
}else if($church_services_theme_lay == 'Container Fluid'){
$church_services_tp_theme_css .='body{';
	$church_services_tp_theme_css .='width: 100%;padding-right: 15px;padding-left: 15px;margin-right: auto;margin-left: auto;';
$church_services_tp_theme_css .='}';
$church_services_tp_theme_css .='.page-template-front-page .menubar{';
	$church_services_tp_theme_css .='width: 99%';
$church_services_tp_theme_css .='}';
$church_services_tp_theme_css .='.scrolled{';
	$church_services_tp_theme_css .='width: auto; left:0; right:0;';
$church_services_tp_theme_css .='}';
$church_services_tp_theme_css .='@media screen and (max-width:575px){';
$church_services_tp_theme_css .='body{';
	$church_services_tp_theme_css .='max-width: 100%; padding-right:0px; padding-left:0px';
$church_services_tp_theme_css .='} }';
}else if($church_services_theme_lay == 'Full'){
$church_services_tp_theme_css .='body{';
	$church_services_tp_theme_css .='max-width: 100%;';
$church_services_tp_theme_css .='}';
}

//scroll-top-alignmemt
$church_services_scroll_position = get_theme_mod( 'church_services_scroll_top_position','Right');
if($church_services_scroll_position == 'Right'){
$church_services_tp_theme_css .='#return-to-top{';
    $church_services_tp_theme_css .='right: 20px;';
$church_services_tp_theme_css .='}';
}else if($church_services_scroll_position == 'Left'){
$church_services_tp_theme_css .='#return-to-top{';
    $church_services_tp_theme_css .='left: 20px;';
$church_services_tp_theme_css .='}';
}else if($church_services_scroll_position == 'Center'){
$church_services_tp_theme_css .='#return-to-top{';
    $church_services_tp_theme_css .='right: 50%;left: 50%;';
$church_services_tp_theme_css .='}';
}


//Social icon Font size
$church_services_social_icon_fontsize = get_theme_mod('church_services_social_icon_fontsize');
$church_services_tp_theme_css .='.media-links a i{';
	$church_services_tp_theme_css .='font-size: '.esc_attr($church_services_social_icon_fontsize).'px;';
$church_services_tp_theme_css .='}';

// site title font size option
$church_services_site_title_font_size = get_theme_mod('church_services_site_title_font_size', 20);
$church_services_tp_theme_css .='.logo h1 a, .logo p a{';
	$church_services_tp_theme_css .='font-size: '.esc_attr($church_services_site_title_font_size).'px;';
$church_services_tp_theme_css .='}';


// site tagline font size option
$church_services_site_tagline_font_size = get_theme_mod('church_services_site_tagline_font_size', 15);
$church_services_tp_theme_css .='.logo p{';
	$church_services_tp_theme_css .='font-size: '.esc_attr($church_services_site_tagline_font_size).'px;';
$church_services_tp_theme_css .='}';


// related post
$church_services_related_post_mob = get_theme_mod('church_services_related_post_mob', true);
$church_services_related_post = get_theme_mod('church_services_remove_related_post', true);
$church_services_tp_theme_css .= '.related-post-block {';
if ($church_services_related_post == false) {
    $church_services_tp_theme_css .= 'display: none;';
}
$church_services_tp_theme_css .= '}';
$church_services_tp_theme_css .= '@media screen and (max-width: 575px) {';
if ($church_services_related_post == false || $church_services_related_post_mob == false) {
    $church_services_tp_theme_css .= '.related-post-block { display: none; }';
}
$church_services_tp_theme_css .= '}';

// slider btn
$church_services_slider_button_mob = get_theme_mod('church_services_slider_button_mob', true);
$church_services_slider_button = get_theme_mod('church_services_slider_button', true);
$church_services_tp_theme_css .= '#slider .more-btn {';
if ($church_services_slider_button == false) {
    $church_services_tp_theme_css .= 'display: none;';
}
$church_services_tp_theme_css .= '}';
$church_services_tp_theme_css .= '@media screen and (max-width: 575px) {';
if ($church_services_slider_button == false || $church_services_slider_button_mob == false) {
    $church_services_tp_theme_css .= '#slider .more-btn { display: none; }';
}
$church_services_tp_theme_css .= '}';

//return to header mobile				
$church_services_return_to_header_mob = get_theme_mod('church_services_return_to_header_mob', true);
$church_services_return_to_header = get_theme_mod('church_services_return_to_header', true);
$church_services_tp_theme_css .= '.return-to-header{';
if ($church_services_return_to_header == false) {
    $church_services_tp_theme_css .= 'display: none;';
}
$church_services_tp_theme_css .= '}';
$church_services_tp_theme_css .= '@media screen and (max-width: 575px) {';
if ($church_services_return_to_header == false || $church_services_return_to_header_mob == false) {
    $church_services_tp_theme_css .= '.return-to-header{ display: none; }';
}
$church_services_tp_theme_css .= '}';

//blog description              
$church_services_mobile_blog_description = get_theme_mod('church_services_mobile_blog_description', true);
$church_services_tp_theme_css .= '@media screen and (max-width: 575px) {';
if ($church_services_mobile_blog_description == false) {
    $church_services_tp_theme_css .= '.blog-description{ display: none; }';
}
$church_services_tp_theme_css .= '}';

//footer bg image
$church_services_footer_widget_image = get_theme_mod('church_services_footer_widget_image');
if($church_services_footer_widget_image != false){
$church_services_tp_theme_css .='#footer{';
	$church_services_tp_theme_css .='background: url('.esc_attr($church_services_footer_widget_image).');';
$church_services_tp_theme_css .='}';
}

//related products
$church_services_related_product = get_theme_mod('church_services_related_product',true);
if($church_services_related_product == false){
	$church_services_tp_theme_css .='.related.products{';
		$church_services_tp_theme_css .='display: none;';
	$church_services_tp_theme_css .='}';
}

//menu font size
$church_services_menu_font_size = get_theme_mod('church_services_menu_font_size', 15);{
$church_services_tp_theme_css .='.main-navigation a, .main-navigation li.page_item_has_children:after, .main-navigation li.menu-item-has-children:after{';
	$church_services_tp_theme_css .='font-size: '.esc_attr($church_services_menu_font_size).'px;';
$church_services_tp_theme_css .='}';
}

// menu text transform
$church_services_menu_text_tranform = get_theme_mod( 'church_services_menu_text_tranform','Uppercase');
if($church_services_menu_text_tranform == 'Uppercase'){
$church_services_tp_theme_css .='.main-navigation a {';
	$church_services_tp_theme_css .='text-transform: uppercase;';
$church_services_tp_theme_css .='}';
}else if($church_services_menu_text_tranform == 'Lowercase'){
$church_services_tp_theme_css .='.main-navigation a {';
	$church_services_tp_theme_css .='text-transform: lowercase;';
$church_services_tp_theme_css .='}';
}
else if($church_services_menu_text_tranform == 'Capitalize'){
$church_services_tp_theme_css .='.main-navigation a {';
	$church_services_tp_theme_css .='text-transform: capitalize;';
$church_services_tp_theme_css .='}';
}


// Sale Tag Position (Fixed variable name conflict)
$church_services_sale_position = get_theme_mod( 'church_services_sale_tag_position', 'right' );
if ( $church_services_sale_position == 'right' ) {
    $church_services_tp_theme_css .= '.woocommerce ul.products li.product .onsale {';
    $church_services_tp_theme_css .= 'right: 25px !important; left: auto !important;';
    $church_services_tp_theme_css .= '}';
} elseif ( $church_services_sale_position == 'left' ) {
    $church_services_tp_theme_css .= '.woocommerce ul.products li.product .onsale {';
    $church_services_tp_theme_css .= 'left: 25px !important; right:auto !important;';
    $church_services_tp_theme_css .= '}';
}

$church_services_woocommerce_sale_font_size = get_theme_mod('church_services_woocommerce_sale_font_size');
if($church_services_woocommerce_sale_font_size != false){
    $church_services_tp_theme_css .='.woocommerce ul.products li.product .onsale, .woocommerce span.onsale{';
        $church_services_tp_theme_css .='font-size: '.esc_attr($church_services_woocommerce_sale_font_size).'px;';
    $church_services_tp_theme_css .='}';
}

$church_services_woocommerce_sale_padding_top_bottom = get_theme_mod('church_services_woocommerce_sale_padding_top_bottom');
if($church_services_woocommerce_sale_padding_top_bottom != false){
    $church_services_tp_theme_css .='.woocommerce ul.products li.product .onsale, .woocommerce span.onsale{';
        $church_services_tp_theme_css .='padding-top: '.esc_attr($church_services_woocommerce_sale_padding_top_bottom).'px; padding-bottom: '.esc_attr($church_services_woocommerce_sale_padding_top_bottom).'px;';
    $church_services_tp_theme_css .='}';
}

$church_services_woocommerce_sale_padding_left_right = get_theme_mod('church_services_woocommerce_sale_padding_left_right');
if($church_services_woocommerce_sale_padding_left_right != false){
    $church_services_tp_theme_css .='.woocommerce ul.products li.product .onsale, .woocommerce span.onsale{';
        $church_services_tp_theme_css .='padding-left: '.esc_attr($church_services_woocommerce_sale_padding_left_right).'px !Important; padding-right: '.esc_attr($church_services_woocommerce_sale_padding_left_right).'px !important;';
    $church_services_tp_theme_css .='}';
}

$church_services_woocommerce_sale_border_radius = get_theme_mod('church_services_woocommerce_sale_border_radius', 100);
if($church_services_woocommerce_sale_border_radius != false){
    $church_services_tp_theme_css .='.woocommerce ul.products li.product .onsale, .woocommerce span.onsale{';
        $church_services_tp_theme_css .='border-radius: '.esc_attr($church_services_woocommerce_sale_border_radius).'% !important;';
    $church_services_tp_theme_css .='}';
}

//Font Weight
$church_services_menu_font_weight = get_theme_mod( 'church_services_menu_font_weight','400');
if($church_services_menu_font_weight == '100'){
$church_services_tp_theme_css .='.main-navigation a{';
    $church_services_tp_theme_css .='font-weight: 100;';
$church_services_tp_theme_css .='}';
}else if($church_services_menu_font_weight == '200'){
$church_services_tp_theme_css .='.main-navigation a{';
    $church_services_tp_theme_css .='font-weight: 200;';
$church_services_tp_theme_css .='}';
}else if($church_services_menu_font_weight == '300'){
$church_services_tp_theme_css .='.main-navigation a{';
    $church_services_tp_theme_css .='font-weight: 300;';
$church_services_tp_theme_css .='}';
}else if($church_services_menu_font_weight == '400'){
$church_services_tp_theme_css .='.main-navigation a{';
    $church_services_tp_theme_css .='font-weight: 400;';
$church_services_tp_theme_css .='}';
}else if($church_services_menu_font_weight == '500'){
$church_services_tp_theme_css .='.main-navigation a{';
    $church_services_tp_theme_css .='font-weight: 500;';
$church_services_tp_theme_css .='}';
}else if($church_services_menu_font_weight == '600'){
$church_services_tp_theme_css .='.main-navigation a{';
    $church_services_tp_theme_css .='font-weight: 600;';
$church_services_tp_theme_css .='}';
}else if($church_services_menu_font_weight == '700'){
$church_services_tp_theme_css .='.main-navigation a{';
    $church_services_tp_theme_css .='font-weight: 700;';
$church_services_tp_theme_css .='}';
}else if($church_services_menu_font_weight == '800'){
$church_services_tp_theme_css .='.main-navigation a{';
    $church_services_tp_theme_css .='font-weight: 800;';
$church_services_tp_theme_css .='}';
}else if($church_services_menu_font_weight == '900'){
$church_services_tp_theme_css .='.main-navigation a{';
    $church_services_tp_theme_css .='font-weight: 900;';
$church_services_tp_theme_css .='}';
}

// header
$church_services_slider_arrows = get_theme_mod( 'church_services_slider_arrows', true);
if($church_services_slider_arrows == false){
$church_services_tp_theme_css .='.page-template-front-page .headerbox{';
	$church_services_tp_theme_css .='position:static;';
$church_services_tp_theme_css .='}';
}

/*------------- Blog Page------------------*/
$church_services_post_image_round = get_theme_mod('church_services_post_image_round', 0);
if($church_services_post_image_round != false){
	$church_services_tp_theme_css .='.blog .box-image img{';
		$church_services_tp_theme_css .='border-radius: '.esc_attr($church_services_post_image_round).'px;';
	$church_services_tp_theme_css .='}';
}

$church_services_post_image_width = get_theme_mod('church_services_post_image_width', '');
if($church_services_post_image_width != false){
	$church_services_tp_theme_css .='.blog .box-image img{';
		$church_services_tp_theme_css .='Width: '.esc_attr($church_services_post_image_width).'px;';
	$church_services_tp_theme_css .='}';
}

$church_services_post_image_length = get_theme_mod('church_services_post_image_length', '');
if($church_services_post_image_length != false){
	$church_services_tp_theme_css .='.blog .box-image img{';
		$church_services_tp_theme_css .='height: '.esc_attr($church_services_post_image_length).'px;';
	$church_services_tp_theme_css .='}';
}

// footer widget title font size
	$church_services_footer_widget_title_font_size = get_theme_mod('church_services_footer_widget_title_font_size', '');{
	$church_services_tp_theme_css .='#footer h3{';
		$church_services_tp_theme_css .='font-size: '.esc_attr($church_services_footer_widget_title_font_size).'px;';
	$church_services_tp_theme_css .='}';
	}

	// Copyright text font size
	$church_services_footer_copyright_font_size = get_theme_mod('church_services_footer_copyright_font_size', '');{
	$church_services_tp_theme_css .='#footer .site-info p{';
		$church_services_tp_theme_css .='font-size: '.esc_attr($church_services_footer_copyright_font_size).'px;';
	$church_services_tp_theme_css .='}';
	}

	// copyright padding
	$church_services_footer_copyright_top_bottom_padding = get_theme_mod('church_services_footer_copyright_top_bottom_padding', '');
	if ($church_services_footer_copyright_top_bottom_padding !== '') { 
	    $church_services_tp_theme_css .= '.site-info {';
	    $church_services_tp_theme_css .= 'padding-top: ' . esc_attr($church_services_footer_copyright_top_bottom_padding) . 'px;';
	    $church_services_tp_theme_css .= 'padding-bottom: ' . esc_attr($church_services_footer_copyright_top_bottom_padding) . 'px;';
	    $church_services_tp_theme_css .= '}';
	}

	// copyright position
	$church_services_copyright_text_position = get_theme_mod( 'church_services_copyright_text_position','Center');
	if($church_services_copyright_text_position == 'Center'){
	$church_services_tp_theme_css .='#footer .site-info p{';
	$church_services_tp_theme_css .='text-align:center;';
	$church_services_tp_theme_css .='}';
	}else if($church_services_copyright_text_position == 'Left'){
	$church_services_tp_theme_css .='#footer .site-info p{';
	$church_services_tp_theme_css .='text-align:left;';
	$church_services_tp_theme_css .='}';
	}else if($church_services_copyright_text_position == 'Right'){
	$church_services_tp_theme_css .='#footer .site-info p{';
	$church_services_tp_theme_css .='text-align:right;';
	$church_services_tp_theme_css .='}';
}

// Header Image title font size
$church_services_header_image_title_font_size = get_theme_mod('church_services_header_image_title_font_size', '32');{
$church_services_tp_theme_css .='.box-text h2{';
    $church_services_tp_theme_css .='font-size: '.esc_attr($church_services_header_image_title_font_size).'px;';
$church_services_tp_theme_css .='}';
}

/*--------------------------- banner image Opacity -------------------*/
    $church_services_theme_lay = get_theme_mod( 'church_services_header_banner_opacity_color','0.8');
        if($church_services_theme_lay == '0'){
            $church_services_tp_theme_css .='.single-page-img, .featured-image{';
                $church_services_tp_theme_css .='opacity:0';
            $church_services_tp_theme_css .='}';
        }else if($church_services_theme_lay == '0.1'){
            $church_services_tp_theme_css .='.single-page-img, .featured-image{';
                $church_services_tp_theme_css .='opacity:0.1';
            $church_services_tp_theme_css .='}';
        }else if($church_services_theme_lay == '0.2'){
            $church_services_tp_theme_css .='.single-page-img, .featured-image{';
                $church_services_tp_theme_css .='opacity:0.2';
            $church_services_tp_theme_css .='}';
        }else if($church_services_theme_lay == '0.3'){
            $church_services_tp_theme_css .='.single-page-img, .featured-image{';
                $church_services_tp_theme_css .='opacity:0.3';
            $church_services_tp_theme_css .='}';
        }else if($church_services_theme_lay == '0.4'){
            $church_services_tp_theme_css .='.single-page-img, .featured-image{';
                $church_services_tp_theme_css .='opacity:0.4';
            $church_services_tp_theme_css .='}';
        }else if($church_services_theme_lay == '0.5'){
            $church_services_tp_theme_css .='.single-page-img, .featured-image{';
                $church_services_tp_theme_css .='opacity:0.5';
            $church_services_tp_theme_css .='}';
        }else if($church_services_theme_lay == '0.6'){
            $church_services_tp_theme_css .='.single-page-img, .featured-image{';
                $church_services_tp_theme_css .='opacity:0.6';
            $church_services_tp_theme_css .='}';
        }else if($church_services_theme_lay == '0.7'){
            $church_services_tp_theme_css .='.single-page-img, .featured-image{';
                $church_services_tp_theme_css .='opacity:0.7';
            $church_services_tp_theme_css .='}';
        }else if($church_services_theme_lay == '0.8'){
            $church_services_tp_theme_css .='.single-page-img, .featured-image{';
                $church_services_tp_theme_css .='opacity:0.8';
            $church_services_tp_theme_css .='}';
        }else if($church_services_theme_lay == '0.9'){
            $church_services_tp_theme_css .='.single-page-img, .featured-image{';
                $church_services_tp_theme_css .='opacity:0.9';
            $church_services_tp_theme_css .='}';
        }else if($church_services_theme_lay == '1'){
            $church_services_tp_theme_css .='#slider img{';
                $church_services_tp_theme_css .='opacity:1';
            $church_services_tp_theme_css .='}';
        }

    $church_services_header_banner_image_overlay = get_theme_mod('church_services_header_banner_image_overlay', true);
    if($church_services_header_banner_image_overlay == false){
        $church_services_tp_theme_css .='.single-page-img, .featured-image{';
            $church_services_tp_theme_css .='opacity:1;';
        $church_services_tp_theme_css .='}';
    }

    $church_services_header_banner_image_ooverlay_color = get_theme_mod('church_services_header_banner_image_ooverlay_color', true);
    if($church_services_header_banner_image_ooverlay_color != false){
        $church_services_tp_theme_css .='.box-image-page{';
            $church_services_tp_theme_css .='background-color: '.esc_attr($church_services_header_banner_image_ooverlay_color).';';
        $church_services_tp_theme_css .='}';
    }

    // Slider Height - Desktop Only 
	$church_services_slider_img_height = get_theme_mod('church_services_slider_img_height');

	// Desktop height
	$church_services_tp_theme_css .= '@media screen and (min-width: 768px) {';
	$church_services_tp_theme_css .= '#slider, #slider .slider-content-col, .slider-img-col {';
	if ( $church_services_slider_img_height ) {
	    $church_services_tp_theme_css .= 'height: ' . esc_attr( $church_services_slider_img_height ) . ';';
	}
	$church_services_tp_theme_css .= '}';  // Close #slider rule
	$church_services_tp_theme_css .= '}';  // Close media query

    //First Cap ( Blog Post )
    $church_services_show_first_caps = get_theme_mod('church_services_show_first_caps', 'false');
    if($church_services_show_first_caps == 'true' ){
    $church_services_tp_theme_css .='.blog .page-box p:nth-of-type(1)::first-letter{';
    $church_services_tp_theme_css .=' font-size: 55px; font-weight: 600;';
    $church_services_tp_theme_css .=' margin-right: 6px;';
    $church_services_tp_theme_css .=' line-height: 1;';
    $church_services_tp_theme_css .='}';
    }elseif($church_services_show_first_caps == 'false' ){
    $church_services_tp_theme_css .='.blog .page-box p:nth-of-type(1)::first-letter {';
    $church_services_tp_theme_css .='display: none;';
    $church_services_tp_theme_css .='}';
    }

    // Menu hover effect
    $church_services_menus_item = get_theme_mod( 'church_services_menus_item_style','None');
    if($church_services_menus_item == 'None'){
        $church_services_tp_theme_css .='.main-navigation a:hover{';
            $church_services_tp_theme_css .='';
        $church_services_tp_theme_css .='}';
    }else if($church_services_menus_item == 'Zoom In'){
        $church_services_tp_theme_css .='.main-navigation a:hover{';
            $church_services_tp_theme_css .='transition: all 0.3s ease-in-out !important; transform: scale(1.2) !important;';
        $church_services_tp_theme_css .='}';
    }

    // Slider animation
    $church_services_slider_sec_animation = get_theme_mod( 'church_services_slider_sec_animation', true );
    if ( $church_services_slider_sec_animation ) {
        $church_services_tp_theme_css .= '#slider { animation: bounceInDown 3s; animation-fill-mode: both; }';
    }

    // About Section ANimation
    $church_services_about_sec_animation = get_theme_mod( 'church_services_about_sec_animation', true );
    if ( $church_services_about_sec_animation ) {
        $church_services_tp_theme_css .= '#about { animation: bounceInDown 3s; animation-fill-mode: both; }';
    }

    // footer Section ANimation
    $church_services_footer_animation = get_theme_mod( 'church_services_footer_animation', true );
    if ( $church_services_footer_animation ) {
        $church_services_tp_theme_css .= '#footer { animation: bounceInDown 3s; animation-fill-mode: both; }';
    }

    // Output the complete CSS
    if ( ! empty( $church_services_tp_theme_css ) ) {
        echo '<style id="church-services-dynamic-css">' . $church_services_tp_theme_css . '</style>';
    }
    ?>