<?php

$adventure_travelling_tp_theme_css = '';

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

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

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

// site title and tagline font size option
$adventure_travelling_site_title_font_size = get_theme_mod('adventure_travelling_site_title_font_size', 30);{
$adventure_travelling_tp_theme_css .='.logo h1 a, .logo p a{';
$adventure_travelling_tp_theme_css .='font-size: '.esc_attr($adventure_travelling_site_title_font_size).'px;';
	$adventure_travelling_tp_theme_css .='}';
}

$adventure_travelling_site_tagline_font_size = get_theme_mod('adventure_travelling_site_tagline_font_size', 15);{
$adventure_travelling_tp_theme_css .='.logo p{';
$adventure_travelling_tp_theme_css .='font-size: '.esc_attr($adventure_travelling_site_tagline_font_size).'px;';
	$adventure_travelling_tp_theme_css .='}';
}

// related post
$adventure_travelling_related_post_mob = get_theme_mod('adventure_travelling_related_post_mob', true);
$adventure_travelling_related_post = get_theme_mod('adventure_travelling_remove_related_post', true);
$adventure_travelling_tp_theme_css .= '.related-post-block {';
if ($adventure_travelling_related_post == false) {
    $adventure_travelling_tp_theme_css .= 'display: none;';
}
$adventure_travelling_tp_theme_css .= '}';
$adventure_travelling_tp_theme_css .= '@media screen and (max-width: 575px) {';
if ($adventure_travelling_related_post == false || $adventure_travelling_related_post_mob == false) {
    $adventure_travelling_tp_theme_css .= '.related-post-block { display: none; }';
}
$adventure_travelling_tp_theme_css .= '}';

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

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

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

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

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

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

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


//======================= slider Content layout ===================== //
 
$adventure_travelling_slider_content_layout = get_theme_mod('adventure_travelling_slider_content_layout', 'LEFT-ALIGN'); 
$adventure_travelling_tp_theme_css .= '#slider .carousel-caption{';
switch ($adventure_travelling_slider_content_layout) {
    case 'LEFT-ALIGN':
        $adventure_travelling_tp_theme_css .= 'text-align:left; right: 40%; left: 15%';
        break;
    case 'CENTER-ALIGN':
        $adventure_travelling_tp_theme_css .= 'text-align:center; left: 35%; right: 35%';
        break;
    case 'RIGHT-ALIGN':
    $adventure_travelling_tp_theme_css .= 'text-align:right; left: 40%; right: 15%;';
    break;
    default:
        $adventure_travelling_tp_theme_css .= 'text-align:left; right: 40%; left: 15%';
        break;
}
$adventure_travelling_tp_theme_css .= '}';

$adventure_travelling_slider_content_layout = get_theme_mod('adventure_travelling_slider_content_layout', 'LEFT-ALIGN'); 
$adventure_travelling_tp_theme_css .= '#slider .inner_carousel{';
switch ($adventure_travelling_slider_content_layout) {
    case 'LEFT-ALIGN':
        $adventure_travelling_tp_theme_css .= 'border-left: 5px solid #ffcc05;height:50px';
        break;
    case 'CENTER-ALIGN':
        $adventure_travelling_tp_theme_css .= 'border-left: 5px solid #ffcc05;height:50px';
        break;
    case 'RIGHT-ALIGN':
    	$adventure_travelling_tp_theme_css .= ' border-right: 5px solid #ffcc05;height:50px;padding-right:12px;';
    break;
    default:
        $adventure_travelling_tp_theme_css .= 'border-left: 5px solid #ffcc05;height:50px';
    	break;
}
$adventure_travelling_tp_theme_css .= '}';

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

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

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

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

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

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

/*------------- Blog Page------------------*/

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

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

$adventure_travelling_post_image_round = get_theme_mod('adventure_travelling_post_image_round', 0);
if($adventure_travelling_post_image_round != false){
    $adventure_travelling_tp_theme_css .='.blog .box-image img{';
        $adventure_travelling_tp_theme_css .='border-radius: '.esc_attr($adventure_travelling_post_image_round).'px !important;';
    $adventure_travelling_tp_theme_css .='}';
}

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

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

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

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

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

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

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

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

    /*------------------ Slider CSS -------------------*/
    $adventure_travelling_slider_opacity_setting = get_theme_mod('adventure_travelling_slider_opacity_setting', true);
    $adventure_travelling_image_opacity_color    = get_theme_mod('adventure_travelling_image_opacity_color', '');
    $adventure_travelling_slider_opacity         = get_theme_mod('adventure_travelling_slider_opacity', '1');

    if ($adventure_travelling_slider_opacity_setting) {
        // Apply opacity value to slider image
        if ($adventure_travelling_slider_opacity !== '') {
            $adventure_travelling_tp_theme_css .= '#slider img {';
            $adventure_travelling_tp_theme_css .= 'opacity: ' . esc_attr($adventure_travelling_slider_opacity) . ';';
            $adventure_travelling_tp_theme_css .= '}';
        }

        // Apply background color to slider if defined
        if ($adventure_travelling_image_opacity_color !== '') {
            $adventure_travelling_tp_theme_css .= '#slider {';
            $adventure_travelling_tp_theme_css .= 'background-color: ' . esc_attr($adventure_travelling_image_opacity_color) . ';';
            $adventure_travelling_tp_theme_css .= '}';
        }
    } else {
        // If setting is disabled, force full opacity
        $adventure_travelling_tp_theme_css .= '#slider img {';
        $adventure_travelling_tp_theme_css .= 'opacity: 1;';
        $adventure_travelling_tp_theme_css .= '}';
    }

    // Slider Height
    $adventure_travelling_slider_img_height      = get_theme_mod('adventure_travelling_slider_img_height');
    $adventure_travelling_slider_img_height_resp = get_theme_mod('adventure_travelling_slider_img_height_responsive');

    // Desktop height
    $adventure_travelling_tp_theme_css .= '@media screen and (min-width: 768px) {';
    $adventure_travelling_tp_theme_css .= '#slider img {';
    if ( $adventure_travelling_slider_img_height ) {
        $adventure_travelling_tp_theme_css .= 'height: ' . esc_attr( $adventure_travelling_slider_img_height ) . ';';
    }
    $adventure_travelling_tp_theme_css .= 'width: 100%; object-fit: cover;';
    $adventure_travelling_tp_theme_css .= '}';
    $adventure_travelling_tp_theme_css .= '}';

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

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

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

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

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

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

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

// About Section ANimation
$adventure_travelling_about_sec_animation = get_theme_mod( 'adventure_travelling_about_sec_animation', true );
if ( $adventure_travelling_about_sec_animation ) {
    $adventure_travelling_tp_theme_css .= '#static-blog { animation: bounceInDown 3s; animation-fill-mode: both; }';
}

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

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