<?php

	$real_estate_hub_tp_theme_css = "";

//body-layout
$real_estate_hub_theme_lay = get_theme_mod( 'real_estate_hub_tp_body_layout_settings','Full');
if($real_estate_hub_theme_lay == 'Container'){
$real_estate_hub_tp_theme_css .='body{';
	$real_estate_hub_tp_theme_css .='max-width: 1140px; width: 100%; padding-right: 15px; padding-left: 15px; margin-right: auto; margin-left: auto;';
$real_estate_hub_tp_theme_css .='}';
$real_estate_hub_tp_theme_css .='@media screen and (max-width:575px){';
		$real_estate_hub_tp_theme_css .='body{';
			$real_estate_hub_tp_theme_css .='max-width: 100%; padding-right:0px; padding-left: 0px';
		$real_estate_hub_tp_theme_css .='} }';
$real_estate_hub_tp_theme_css .='.page-template-front-page .menubar{';
	$real_estate_hub_tp_theme_css .='position: static;';
$real_estate_hub_tp_theme_css .='}';
$real_estate_hub_tp_theme_css .='.scrolled{';
	$real_estate_hub_tp_theme_css .='width: auto; left:0; right:0;';
$real_estate_hub_tp_theme_css .='}';
}else if($real_estate_hub_theme_lay == 'Container Fluid'){
$real_estate_hub_tp_theme_css .='body{';
	$real_estate_hub_tp_theme_css .='width: 100%;padding-right: 15px;padding-left: 15px;margin-right: auto;margin-left: auto;';
$real_estate_hub_tp_theme_css .='}';
$real_estate_hub_tp_theme_css .='@media screen and (max-width:575px){';
		$real_estate_hub_tp_theme_css .='body{';
			$real_estate_hub_tp_theme_css .='max-width: 100%; padding-right:0px; padding-left:0px';
		$real_estate_hub_tp_theme_css .='} }';
$real_estate_hub_tp_theme_css .='.page-template-front-page .menubar{';
	$real_estate_hub_tp_theme_css .='width: 99%';
$real_estate_hub_tp_theme_css .='}';
$real_estate_hub_tp_theme_css .='.scrolled{';
	$real_estate_hub_tp_theme_css .='width: auto; left:0; right:0;';
$real_estate_hub_tp_theme_css .='}';
}else if($real_estate_hub_theme_lay == 'Full'){
$real_estate_hub_tp_theme_css .='body{';
	$real_estate_hub_tp_theme_css .='max-width: 100%;';
$real_estate_hub_tp_theme_css .='}';
}

//scrol-top
$real_estate_hub_scroll_position = get_theme_mod( 'real_estate_hub_scroll_position','Right');
if($real_estate_hub_scroll_position == 'Right'){
$real_estate_hub_tp_theme_css .='#return-to-top{';
    $real_estate_hub_tp_theme_css .='right: 20px;';
$real_estate_hub_tp_theme_css .='}';
}else if($real_estate_hub_scroll_position == 'Left'){
$real_estate_hub_tp_theme_css .='#return-to-top{';
    $real_estate_hub_tp_theme_css .='left: 20px;';
$real_estate_hub_tp_theme_css .='}';
}else if($real_estate_hub_scroll_position == 'Center'){
$real_estate_hub_tp_theme_css .='#return-to-top{';
    $real_estate_hub_tp_theme_css .='right: 50%;left: 50%;';
$real_estate_hub_tp_theme_css .='}';
}

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

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

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

// related post
$real_estate_hub_related_post_mob = get_theme_mod('real_estate_hub_related_post_mob', true);
$real_estate_hub_related_post = get_theme_mod('real_estate_hub_remove_related_post', true);
$real_estate_hub_tp_theme_css .= '.related-post-block {';
if ($real_estate_hub_related_post == false) {
    $real_estate_hub_tp_theme_css .= 'display: none;';
}
$real_estate_hub_tp_theme_css .= '}';
$real_estate_hub_tp_theme_css .= '@media screen and (max-width: 575px) {';
if ($real_estate_hub_related_post == false || $real_estate_hub_related_post_mob == false) {
    $real_estate_hub_tp_theme_css .= '.related-post-block { display: none; }';
}
$real_estate_hub_tp_theme_css .= '}';

// slider search btn
$real_estate_hub_mob_search_icon = get_theme_mod('real_estate_hub_mob_search_icon', true);
$real_estate_hub_search_icon = get_theme_mod('real_estate_hub_search_icon', true);
$real_estate_hub_tp_theme_css .= '#slider .search_inner {';
if ($real_estate_hub_search_icon == false) {
    $real_estate_hub_tp_theme_css .= 'display: none;';
}
$real_estate_hub_tp_theme_css .= '}';
$real_estate_hub_tp_theme_css .= '@media screen and (max-width: 575px) {';
if ($real_estate_hub_search_icon == false || $real_estate_hub_mob_search_icon == false) {
    $real_estate_hub_tp_theme_css .= '#slider .search_inner { display: none; }';
}
$real_estate_hub_tp_theme_css .= '}';

// slider post mobile width				
$real_estate_hub_post_option_mob = get_theme_mod('real_estate_hub_post_option_mob', true);
$real_estate_hub_post_option = get_theme_mod('real_estate_hub_post_option', true);
$real_estate_hub_tp_theme_css .= '#slider .block-balck, #slider .pull-up-box{';
if ($real_estate_hub_post_option == false) {
    $real_estate_hub_tp_theme_css .= 'display: none;';
}
$real_estate_hub_tp_theme_css .= '}';
$real_estate_hub_tp_theme_css .= '@media screen and (max-width: 575px) {';
if ($real_estate_hub_post_option == false || $real_estate_hub_post_option_mob == false) {
    $real_estate_hub_tp_theme_css .= '#slider .block-balck, #slider .pull-up-box{ display: none; }';
}
$real_estate_hub_tp_theme_css .= '}';

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

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

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

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

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

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

//sale position
$real_estate_hub_scroll_position = get_theme_mod( 'real_estate_hub_sale_tag_position','right');
if($real_estate_hub_scroll_position == 'right'){
$real_estate_hub_tp_theme_css .='.woocommerce ul.products li.product .onsale{';
    $real_estate_hub_tp_theme_css .='right: 25px !important; left: auto !important';
$real_estate_hub_tp_theme_css .='}';
}else if($real_estate_hub_scroll_position == 'left'){
$real_estate_hub_tp_theme_css .='.woocommerce ul.products li.product .onsale{';
    $real_estate_hub_tp_theme_css .='left: 25px !important; right: auto !important';
$real_estate_hub_tp_theme_css .='}';
}

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

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

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

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

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

$real_estate_hub_slider_arrows = get_theme_mod( 'real_estate_hub_slider_arrows','true');
if($real_estate_hub_slider_arrows == false){
$real_estate_hub_tp_theme_css .='.page-template-front-page .headerbox{';
	$real_estate_hub_tp_theme_css .='position:static;background-color:#000;';
$real_estate_hub_tp_theme_css .='}';
}

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

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

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

// footer widget title font size
	$real_estate_hub_footer_widget_title_font_size = get_theme_mod('real_estate_hub_footer_widget_title_font_size', '');{
	$real_estate_hub_tp_theme_css .='#footer h3, #footer h2.wp-block-heading{';
		$real_estate_hub_tp_theme_css .='font-size: '.esc_attr($real_estate_hub_footer_widget_title_font_size).'px;';
	$real_estate_hub_tp_theme_css .='}';
	}

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

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

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

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

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

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

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


    /*------------------ Slider CSS -------------------*/
    $real_estate_hub_slider_opacity_setting = get_theme_mod('real_estate_hub_slider_opacity_setting', true);
    $real_estate_hub_image_opacity_color    = get_theme_mod('real_estate_hub_image_opacity_color', '');
    $real_estate_hub_slider_opacity         = get_theme_mod('real_estate_hub_slider_opacity', '1');

    if ($real_estate_hub_slider_opacity_setting) {
        // Apply opacity value to slider image
        if ($real_estate_hub_slider_opacity !== '') {
            $real_estate_hub_tp_theme_css .= '.slide-main-img img {';
            $real_estate_hub_tp_theme_css .= 'opacity: ' . esc_attr($real_estate_hub_slider_opacity) . ';';
            $real_estate_hub_tp_theme_css .= '}';
        }

        // Apply background color to slider if defined
        if ($real_estate_hub_image_opacity_color !== '') {
            $real_estate_hub_tp_theme_css .= '.slide-main-img {';
            $real_estate_hub_tp_theme_css .= 'background-color: ' . esc_attr($real_estate_hub_image_opacity_color) . ';';
            $real_estate_hub_tp_theme_css .= '}';
        }
    } else {
        // If setting is disabled, force full opacity
        $real_estate_hub_tp_theme_css .= '.slide-main-img img {';
        $real_estate_hub_tp_theme_css .= 'opacity: 0.4;';
        $real_estate_hub_tp_theme_css .= '}';
    }

    // Slider Height
    $real_estate_hub_slider_img_height      = get_theme_mod('real_estate_hub_slider_img_height');
    $real_estate_hub_slider_img_height_resp = get_theme_mod('real_estate_hub_slider_img_height_responsive');

    // Desktop height
    $real_estate_hub_tp_theme_css .= '@media screen and (min-width: 768px) {';
    $real_estate_hub_tp_theme_css .= '.slide-main-img img {';
    if ( $real_estate_hub_slider_img_height ) {
        $real_estate_hub_tp_theme_css .= 'height: ' . esc_attr( $real_estate_hub_slider_img_height ) . ';';
    }
    $real_estate_hub_tp_theme_css .= 'width: 100%; object-fit: cover;';
    $real_estate_hub_tp_theme_css .= '}';
    $real_estate_hub_tp_theme_css .= '}';

    // Mobile height
    $real_estate_hub_tp_theme_css .= '@media screen and (max-width: 767px) {';
    $real_estate_hub_tp_theme_css .= '.slide-main-img img {';
    if ( $real_estate_hub_slider_img_height_resp ) {
        $real_estate_hub_tp_theme_css .= 'height: ' . esc_attr( $real_estate_hub_slider_img_height_resp ) . ' !important;';
    }
    $real_estate_hub_tp_theme_css .= 'width: 100%; object-fit: cover;';
    $real_estate_hub_tp_theme_css .= '}';
    $real_estate_hub_tp_theme_css .= '}';

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

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

    
// footer widget letter case
$real_estate_hub_footer_widget_title_text_tranform = get_theme_mod( 'real_estate_hub_footer_widget_title_text_tranform','');
if($real_estate_hub_footer_widget_title_text_tranform == 'Uppercase'){
$real_estate_hub_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 {';
    $real_estate_hub_tp_theme_css .='text-transform: uppercase;';
$real_estate_hub_tp_theme_css .='}';
}else if($real_estate_hub_footer_widget_title_text_tranform == 'Lowercase'){
$real_estate_hub_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 {';
    $real_estate_hub_tp_theme_css .='text-transform: lowercase;';
$real_estate_hub_tp_theme_css .='}';
}
else if($real_estate_hub_footer_widget_title_text_tranform == 'Capitalize'){
$real_estate_hub_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 {';
    $real_estate_hub_tp_theme_css .='text-transform: capitalize;';
$real_estate_hub_tp_theme_css .='}';
}

//Footer Font Weight
$real_estate_hub_footer_widget_title_font_weight = get_theme_mod( 'real_estate_hub_footer_widget_title_font_weight','');
if($real_estate_hub_footer_widget_title_font_weight == '100'){
$real_estate_hub_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 {';
    $real_estate_hub_tp_theme_css .='font-weight: 100;';
$real_estate_hub_tp_theme_css .='}';
}else if($real_estate_hub_footer_widget_title_font_weight == '200'){
$real_estate_hub_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 {';
    $real_estate_hub_tp_theme_css .='font-weight: 200;';
$real_estate_hub_tp_theme_css .='}';
}else if($real_estate_hub_footer_widget_title_font_weight == '300'){
$real_estate_hub_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 {';
    $real_estate_hub_tp_theme_css .='font-weight: 300;';
$real_estate_hub_tp_theme_css .='}';
}else if($real_estate_hub_footer_widget_title_font_weight == '400'){
$real_estate_hub_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 {';
    $real_estate_hub_tp_theme_css .='font-weight: 400;';
$real_estate_hub_tp_theme_css .='}';
}else if($real_estate_hub_footer_widget_title_font_weight == '500'){
$real_estate_hub_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 {';
    $real_estate_hub_tp_theme_css .='font-weight: 500;';
$real_estate_hub_tp_theme_css .='}';
}else if($real_estate_hub_footer_widget_title_font_weight == '600'){
$real_estate_hub_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 {';
    $real_estate_hub_tp_theme_css .='font-weight: 600;';
$real_estate_hub_tp_theme_css .='}';
}else if($real_estate_hub_footer_widget_title_font_weight == '700'){
$real_estate_hub_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 {';
    $real_estate_hub_tp_theme_css .='font-weight: 700;';
$real_estate_hub_tp_theme_css .='}';
}else if($real_estate_hub_footer_widget_title_font_weight == '800'){
$real_estate_hub_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 {';
    $real_estate_hub_tp_theme_css .='font-weight: 800;';
$real_estate_hub_tp_theme_css .='}';
}else if($real_estate_hub_footer_widget_title_font_weight == '900'){
$real_estate_hub_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 {';
    $real_estate_hub_tp_theme_css .='font-weight: 900;';
$real_estate_hub_tp_theme_css .='}';
}

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

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

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

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

// Output the complete CSS
if ( ! empty( $real_estate_hub_tp_theme_css ) ) {
    echo '<style id="real-estate-hub-dynamic-css">' . $real_estate_hub_tp_theme_css . '</style>';
}
?>