<?php

$newspaper_magazine_blog_tp_theme_css = '';

$newspaper_magazine_blog_theme_lay = get_theme_mod( 'newspaper_magazine_blog_tp_body_layout_settings','Full');
if($newspaper_magazine_blog_theme_lay == 'Container'){
$newspaper_magazine_blog_tp_theme_css .='body{';
$newspaper_magazine_blog_tp_theme_css .='max-width: 1140px; width: 100%; padding-right: 15px; padding-left: 15px; margin-right: auto; margin-left: auto;';
$newspaper_magazine_blog_tp_theme_css .='}';
$newspaper_magazine_blog_tp_theme_css .='@media screen and (max-width:575px){';
$newspaper_magazine_blog_tp_theme_css .='body{';
	$newspaper_magazine_blog_tp_theme_css .='max-width: 100%; padding-right:0px; padding-left: 0px';
$newspaper_magazine_blog_tp_theme_css .='} }';
$newspaper_magazine_blog_tp_theme_css .='.scrolled{';
$newspaper_magazine_blog_tp_theme_css .='width: auto; left:0; right:0;';
$newspaper_magazine_blog_tp_theme_css .='}';
}else if($newspaper_magazine_blog_theme_lay == 'Container Fluid'){
$newspaper_magazine_blog_tp_theme_css .='body{';
$newspaper_magazine_blog_tp_theme_css .='width: 100%;padding-right: 15px;padding-left: 15px;margin-right: auto;margin-left: auto;';
$newspaper_magazine_blog_tp_theme_css .='}';
$newspaper_magazine_blog_tp_theme_css .='@media screen and (max-width:575px){';
$newspaper_magazine_blog_tp_theme_css .='body{';
	$newspaper_magazine_blog_tp_theme_css .='max-width: 100%; padding-right:0px; padding-left:0px';
$newspaper_magazine_blog_tp_theme_css .='} }';
$newspaper_magazine_blog_tp_theme_css .='.scrolled{';
$newspaper_magazine_blog_tp_theme_css .='width: auto; left:0; right:0;';
$newspaper_magazine_blog_tp_theme_css .='}';
}else if($newspaper_magazine_blog_theme_lay == 'Full'){
$newspaper_magazine_blog_tp_theme_css .='body{';
$newspaper_magazine_blog_tp_theme_css .='max-width: 100%;';
$newspaper_magazine_blog_tp_theme_css .='}';
}

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

// related post
$newspaper_magazine_blog_related_post_mob = get_theme_mod('newspaper_magazine_blog_related_post_mob', true);
$newspaper_magazine_blog_related_post = get_theme_mod('newspaper_magazine_blog_remove_related_post', true);
$newspaper_magazine_blog_tp_theme_css .= '.related-post-block {';
if ($newspaper_magazine_blog_related_post == false) {
    $newspaper_magazine_blog_tp_theme_css .= 'display: none;';
}
$newspaper_magazine_blog_tp_theme_css .= '}';
$newspaper_magazine_blog_tp_theme_css .= '@media screen and (max-width: 575px) {';
if ($newspaper_magazine_blog_related_post == false || $newspaper_magazine_blog_related_post_mob == false) {
    $newspaper_magazine_blog_tp_theme_css .= '.related-post-block { display: none; }';
}
$newspaper_magazine_blog_tp_theme_css .= '}';

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

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

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


$newspaper_magazine_blog_footer_widget_image = get_theme_mod('newspaper_magazine_blog_footer_widget_image');
if($newspaper_magazine_blog_footer_widget_image != false){
$newspaper_magazine_blog_tp_theme_css .='#footer{';
$newspaper_magazine_blog_tp_theme_css .='background: url('.esc_attr($newspaper_magazine_blog_footer_widget_image).');';
$newspaper_magazine_blog_tp_theme_css .='}';
}

//Social icon Font size
$newspaper_magazine_blog_social_icon_fontsize = get_theme_mod('newspaper_magazine_blog_social_icon_fontsize');
$newspaper_magazine_blog_tp_theme_css .='.social-media a i{';
$newspaper_magazine_blog_tp_theme_css .='font-size: '.esc_attr($newspaper_magazine_blog_social_icon_fontsize).'px;';
$newspaper_magazine_blog_tp_theme_css .='}';

// site title and tagline font size option
$newspaper_magazine_blog_site_title_font_size = get_theme_mod('newspaper_magazine_blog_site_title_font_size', ''); {
$newspaper_magazine_blog_tp_theme_css .='.logo h1 a, .logo p a{';
$newspaper_magazine_blog_tp_theme_css .='font-size: '.esc_attr($newspaper_magazine_blog_site_title_font_size).'px !important;';
$newspaper_magazine_blog_tp_theme_css .='}';
}

$newspaper_magazine_blog_site_tagline_font_size = get_theme_mod('newspaper_magazine_blog_site_tagline_font_size', '');{
$newspaper_magazine_blog_tp_theme_css .='.logo p{';
$newspaper_magazine_blog_tp_theme_css .='font-size: '.esc_attr($newspaper_magazine_blog_site_tagline_font_size).'px;';
$newspaper_magazine_blog_tp_theme_css .='}';
}

$newspaper_magazine_blog_related_product = get_theme_mod('newspaper_magazine_blog_related_product',true);
if($newspaper_magazine_blog_related_product == false){
$newspaper_magazine_blog_tp_theme_css .='.related.products{';
	$newspaper_magazine_blog_tp_theme_css .='display: none;';
$newspaper_magazine_blog_tp_theme_css .='}';
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    // Slider Height
    $newspaper_magazine_blog_slider_img_height      = get_theme_mod('newspaper_magazine_blog_slider_img_height');
    $newspaper_magazine_blog_slider_img_height_resp = get_theme_mod('newspaper_magazine_blog_slider_img_height_responsive');

    // Desktop height
    $newspaper_magazine_blog_tp_theme_css .= '@media screen and (min-width: 768px) {';
    $newspaper_magazine_blog_tp_theme_css .= '#slider .slider-border img {';
    if ( $newspaper_magazine_blog_slider_img_height ) {
        $newspaper_magazine_blog_tp_theme_css .= 'height: ' . esc_attr( $newspaper_magazine_blog_slider_img_height ) . ';';
    }
    $newspaper_magazine_blog_tp_theme_css .= 'width: 100%;';
    $newspaper_magazine_blog_tp_theme_css .= '}';
    $newspaper_magazine_blog_tp_theme_css .= '}';

    // Mobile height
    $newspaper_magazine_blog_tp_theme_css .= '@media screen and (max-width: 767px) {';
    $newspaper_magazine_blog_tp_theme_css .= '#slider .slider-border img {';
    if ( $newspaper_magazine_blog_slider_img_height_resp ) {
        $newspaper_magazine_blog_tp_theme_css .= 'height: ' . esc_attr( $newspaper_magazine_blog_slider_img_height_resp ) . ' !important;';
    }
    $newspaper_magazine_blog_tp_theme_css .= 'width: 100%;';
    $newspaper_magazine_blog_tp_theme_css .= '}';
    $newspaper_magazine_blog_tp_theme_css .= '}';

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

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


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

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

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


// Slider animation
$newspaper_magazine_blog_slider_sec_animation = get_theme_mod( 'newspaper_magazine_blog_slider_sec_animation', true );
if ( $newspaper_magazine_blog_slider_sec_animation ) {
    $newspaper_magazine_blog_tp_theme_css .= '#projetcs-sec { animation: bounceInDown 3s; animation-fill-mode: both; }';
}

// About Section ANimation
$newspaper_magazine_blog_blog_sec_animation = get_theme_mod( 'newspaper_magazine_blog_blog_sec_animation', true );
if ( $newspaper_magazine_blog_blog_sec_animation ) {
    $newspaper_magazine_blog_tp_theme_css .= '#service-sec { animation: bounceInDown 3s; animation-fill-mode: both; }';
}

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

// Output the complete CSS
if ( ! empty( $newspaper_magazine_blog_tp_theme_css ) ) {
    echo '<style id="newspaper-magazine-blog-dynamic-css">' . $newspaper_magazine_blog_tp_theme_css . '</style>';
}
?>