<?php

    $lms_education_study_theme_css= "";

    /*--------------------------- Scroll to top positions -------------------*/

    $lms_education_study_scroll_position = get_theme_mod( 'lms_education_study_scroll_top_position','Right');
    if($lms_education_study_scroll_position == 'Right'){
        $lms_education_study_theme_css .='#button{';
            $lms_education_study_theme_css .='right: 20px;';
        $lms_education_study_theme_css .='}';
    }else if($lms_education_study_scroll_position == 'Left'){
        $lms_education_study_theme_css .='#button{';
            $lms_education_study_theme_css .= 'left: 20px; right: auto;';
        $lms_education_study_theme_css .='}';
    }else if($lms_education_study_scroll_position == 'Center'){
        $lms_education_study_theme_css .='#button{';
            $lms_education_study_theme_css .='right: 50%;left: 50%;';
        $lms_education_study_theme_css .='}';
    }

    /*--------------------------- Footer Widget Content Alignment -------------------*/

    $lms_education_study_footer_widget_content_alignment = get_theme_mod( 'lms_education_study_footer_widget_content_alignment','Left');
    if($lms_education_study_footer_widget_content_alignment == 'Left'){
        $lms_education_study_theme_css .='#colophon ul, #colophon p, .tagcloud, .widget{';
        $lms_education_study_theme_css .='text-align: left;';
        $lms_education_study_theme_css .='}';
    }else if($lms_education_study_footer_widget_content_alignment == 'Center'){
        $lms_education_study_theme_css .='#colophon ul, #colophon p, .tagcloud, .widget{';
            $lms_education_study_theme_css .='text-align: center;';
        $lms_education_study_theme_css .='}';
    }else if($lms_education_study_footer_widget_content_alignment == 'Right'){
        $lms_education_study_theme_css .='#colophon ul, #colophon p, .tagcloud, .widget{';
            $lms_education_study_theme_css .='text-align: right;';
        $lms_education_study_theme_css .='}';
    }

    /*--------------------------- Copyright Content Alignment -------------------*/

    $lms_education_study_copyright_content_alignment = get_theme_mod( 'lms_education_study_copyright_content_alignment','Center');
    if($lms_education_study_copyright_content_alignment == 'Left'){
        $lms_education_study_theme_css .='.footer-menu-left{';
        $lms_education_study_theme_css .='text-align: left !important;';
        $lms_education_study_theme_css .='}';
    }else if($lms_education_study_copyright_content_alignment == 'Center'){
        $lms_education_study_theme_css .='.footer-menu-left{';
            $lms_education_study_theme_css .='text-align: center !important;';
        $lms_education_study_theme_css .='}';
    }else if($lms_education_study_copyright_content_alignment == 'Right'){
        $lms_education_study_theme_css .='.footer-menu-left{';
            $lms_education_study_theme_css .='text-align: right !important;';
        $lms_education_study_theme_css .='}';
    } 

    /*---------------- Logo CSS ----------------------*/
    $lms_education_study_logo_title_font_size = get_theme_mod( 'lms_education_study_logo_title_font_size');
    $lms_education_study_logo_tagline_font_size = get_theme_mod( 'lms_education_study_logo_tagline_font_size');
    if( $lms_education_study_logo_title_font_size != '') {
        $lms_education_study_theme_css .='#masthead .navbar-brand a{';
            $lms_education_study_theme_css .='font-size: '. $lms_education_study_logo_title_font_size. 'px;';
        $lms_education_study_theme_css .='}';
    }
    if( $lms_education_study_logo_tagline_font_size != '') {
        $lms_education_study_theme_css .='#masthead .navbar-brand p{';
            $lms_education_study_theme_css .='font-size: '. $lms_education_study_logo_tagline_font_size. 'px;';
        $lms_education_study_theme_css .='}';
    }

    /*------------------ Nav Menus -------------------*/

    $lms_education_study_nav_menu = get_theme_mod( 'lms_education_study_nav_menu_text_transform','Capitalize');
    if($lms_education_study_nav_menu == 'Capitalize'){
        $lms_education_study_theme_css .='.site-navigation .primary-menu > li > a, .site-navigation .primary-menu .link-icon-wrapper a{';
            $lms_education_study_theme_css .='text-transform:Capitalize;';
        $lms_education_study_theme_css .='}';
    }
    if($lms_education_study_nav_menu == 'Lowercase'){
        $lms_education_study_theme_css .='.site-navigation .primary-menu > li > a, .site-navigation .primary-menu .link-icon-wrapper a{';
            $lms_education_study_theme_css .='text-transform:Lowercase;';
        $lms_education_study_theme_css .='}';
    }
    if($lms_education_study_nav_menu == 'Uppercase'){
        $lms_education_study_theme_css .='.site-navigation .primary-menu > li > a, .site-navigation .primary-menu .link-icon-wrapper a{';
            $lms_education_study_theme_css .='text-transform:Uppercase;';
        $lms_education_study_theme_css .='}';
    }

    $lms_education_study_menu_font_size = get_theme_mod( 'lms_education_study_menu_font_size');
    if($lms_education_study_menu_font_size != ''){
        $lms_education_study_theme_css .='.site-navigation .primary-menu > li > a, .site-navigation .primary-menu .link-icon-wrapper a{';
            $lms_education_study_theme_css .='font-size: '.esc_attr($lms_education_study_menu_font_size).'px;';
        $lms_education_study_theme_css .='}';
    }

    $lms_education_study_nav_menu_font_weight = get_theme_mod( 'lms_education_study_nav_menu_font_weight',500);
    if($lms_education_study_menu_font_size != ''){
        $lms_education_study_theme_css .='.site-navigation .primary-menu > li > a, .site-navigation .primary-menu .link-icon-wrapper a{';
            $lms_education_study_theme_css .='font-weight: '.esc_attr($lms_education_study_nav_menu_font_weight).';';
        $lms_education_study_theme_css .='}';
    }

    /*------------------ Slider CSS -------------------*/

    $lms_education_study_slider_content_layout = get_theme_mod( 'lms_education_study_slider_content_layout','Left');
    if($lms_education_study_slider_content_layout == 'Left'){
        $lms_education_study_theme_css .='.slider-inner-box, #top-slider .slider-inner-box p{';
            $lms_education_study_theme_css .='text-align : left;';
        $lms_education_study_theme_css .='}';
    }
    if($lms_education_study_slider_content_layout == 'Center'){
        $lms_education_study_theme_css .='.slider-inner-box, #top-slider .slider-inner-box p{';
            $lms_education_study_theme_css .='text-align : center;';
        $lms_education_study_theme_css .='}';
    }
    if($lms_education_study_slider_content_layout == 'Right'){
        $lms_education_study_theme_css .='.slider-inner-box, #top-slider .slider-inner-box p{';
            $lms_education_study_theme_css .='text-align : right;';
        $lms_education_study_theme_css .='}';
    }

    /*------------------ Footer CSS -------------------*/
    $lms_education_study_footer_bg_color = get_theme_mod( 'lms_education_study_footer_bg_color');
    if($lms_education_study_footer_bg_color != '' ){
        $lms_education_study_theme_css .='#colophon {';
            $lms_education_study_theme_css .='background-color: '.esc_attr($lms_education_study_footer_bg_color).'; ';
        $lms_education_study_theme_css .='}';
    }

    $lms_education_study_footer_content_color = get_theme_mod( 'lms_education_study_footer_content_color');
    if($lms_education_study_footer_content_color != ''){
        $lms_education_study_theme_css .='#colophon, #colophon a, #colophon h5, #colophon .widget #wp-calendar caption {';
            $lms_education_study_theme_css .='color: '.esc_attr($lms_education_study_footer_content_color).';';
        $lms_education_study_theme_css .='}';
    }

    /*------------------ Copyright CSS -------------------*/
    $lms_education_study_copyright_text_color = get_theme_mod( 'lms_education_study_copyright_text_color');
    if($lms_education_study_copyright_text_color != ''){
        $lms_education_study_theme_css .='#colophon .site-info a, #colophon .site-info span {';
            $lms_education_study_theme_css .='color: '.esc_attr($lms_education_study_copyright_text_color).';';
        $lms_education_study_theme_css .='}';
    }

    /*-------------------- Global First Color -------------------*/

    $lms_education_study_first_color = get_theme_mod('lms_education_study_first_color');
    $lms_education_study_second_color = get_theme_mod('lms_education_study_second_color');

    if ($lms_education_study_first_color) {
        $lms_education_study_theme_css .= ':root {';
        $lms_education_study_theme_css .= '--first-color: ' . esc_attr($lms_education_study_first_color) . ' !important;';
        $lms_education_study_theme_css .= '} ';
    }
    
    if ($lms_education_study_second_color) {
        $lms_education_study_theme_css .= ':root {';
        $lms_education_study_theme_css .= '--second-color: ' . esc_attr($lms_education_study_second_color) . ' !important;';
        $lms_education_study_theme_css .= '} ';
    }

        /*-------------------- Heading typography -------------------*/

    $lms_education_study_heading_color = get_theme_mod('lms_education_study_heading_color');
    $lms_education_study_heading_font_family = get_theme_mod('lms_education_study_heading_font_family');
    $lms_education_study_heading_font_size = get_theme_mod('lms_education_study_heading_font_size');
    if($lms_education_study_heading_color != false || $lms_education_study_heading_font_family != false || $lms_education_study_heading_font_size != false){
        $lms_education_study_theme_css .='h1, h2, h3, h4, h5, h6, #latest_post h2, .navbar-brand h1.site-title, h2.entry-title, h1.entry-title, h2.page-title, .slider-inner-box h1 a, h2.woocommerce-loop-product__title, .article-box h3.entry-title, #colophon h5, .sidebar h5, .latest-project h3, .latest-project h6{';
            $lms_education_study_theme_css .='color: '.esc_attr($lms_education_study_heading_color).'!important; 
            font-family: '.esc_attr($lms_education_study_heading_font_family).'!important;
            font-size: '.esc_attr($lms_education_study_heading_font_size).'px !important;';
        $lms_education_study_theme_css .='}';
    }

    $lms_education_study_paragraph_color = get_theme_mod('lms_education_study_paragraph_color');
    $lms_education_study_paragraph_font_family = get_theme_mod('lms_education_study_paragraph_font_family');
    $lms_education_study_paragraph_font_size = get_theme_mod('lms_education_study_paragraph_font_size');
    if($lms_education_study_paragraph_color != false || $lms_education_study_paragraph_font_family != false || $lms_education_study_paragraph_font_size != false){
        $lms_education_study_theme_css .='p, p.site-title, span, .article-box p, ul, li{';
            $lms_education_study_theme_css .='color: '.esc_attr($lms_education_study_paragraph_color).'!important; 
            font-family: '.esc_attr($lms_education_study_paragraph_font_family).'!important;
            font-size: '.esc_attr($lms_education_study_paragraph_font_size).'px !important;';
        $lms_education_study_theme_css .='}';
    }

        /*--------------------------- Woocommerce Product Sale Positions -------------------*/

    $lms_education_study_product_sale = get_theme_mod( 'lms_education_study_woocommerce_product_sale','Right');
    if($lms_education_study_product_sale == 'Right'){
        $lms_education_study_theme_css .='.woocommerce ul.products li.product .onsale{';
            $lms_education_study_theme_css .='left: auto; right: 15px;';
        $lms_education_study_theme_css .='}';
    }else if($lms_education_study_product_sale == 'Left'){
        $lms_education_study_theme_css .='.woocommerce ul.products li.product .onsale{';
            $lms_education_study_theme_css .='left: 15px; right: auto;';
        $lms_education_study_theme_css .='}';
    }else if($lms_education_study_product_sale == 'Center'){
        $lms_education_study_theme_css .='.woocommerce ul.products li.product .onsale{';
            $lms_education_study_theme_css .='right: 50%;left: 50%;';
        $lms_education_study_theme_css .='}';
    }

    /*--------------------------- Woocommerce Product Sale Border Radius -------------------*/

    $lms_education_study_woo_product_sale_border_radius = get_theme_mod('lms_education_study_woo_product_sale_border_radius');
    if($lms_education_study_woo_product_sale_border_radius != false){
        $lms_education_study_theme_css .='.woocommerce ul.products li.product .onsale{';
            $lms_education_study_theme_css .='border-radius: '.esc_attr($lms_education_study_woo_product_sale_border_radius).'px;';
        $lms_education_study_theme_css .='}';
    }

    /*--------------------- Woocommerce Product Border Radius -------------------*/

    $lms_education_study_woo_product_border_radius = get_theme_mod('lms_education_study_woo_product_border_radius', 0);
    if($lms_education_study_woo_product_border_radius != false){
        $lms_education_study_theme_css .='.woocommerce ul.products li.product a img{';
            $lms_education_study_theme_css .='border-radius: '.esc_attr($lms_education_study_woo_product_border_radius).'px;';
        $lms_education_study_theme_css .='}';
    }

    /*--------------------------- Product Image Box Shadow -------------------*/

    $lms_education_study_woo_product_image_box_shadow = get_theme_mod('lms_education_study_woo_product_image_box_shadow',0);
    if($lms_education_study_woo_product_image_box_shadow != false){
        $lms_education_study_theme_css .='.woocommerce ul.products li.product a img{';
            $lms_education_study_theme_css .='box-shadow: '.esc_attr($lms_education_study_woo_product_image_box_shadow).'px '.esc_attr($lms_education_study_woo_product_image_box_shadow).'px '.esc_attr($lms_education_study_woo_product_image_box_shadow).'px #cccccc;';
        $lms_education_study_theme_css .='}';
    }

    /*--------------------------- Featured Image Border Radius -------------------*/

    $lms_education_study_post_page_image_border_radius = get_theme_mod('lms_education_study_post_page_image_border_radius', 0);
    if($lms_education_study_post_page_image_border_radius != false){
        $lms_education_study_theme_css .='.article-box img{';
            $lms_education_study_theme_css .='border-radius: '.esc_attr($lms_education_study_post_page_image_border_radius).'px;';
        $lms_education_study_theme_css .='}';
    }

    /*--------------------------- Post Page Image Box Shadow -------------------*/

    $lms_education_study_post_page_image_box_shadow = get_theme_mod('lms_education_study_post_page_image_box_shadow',0);
    if($lms_education_study_post_page_image_box_shadow != false){
        $lms_education_study_theme_css .='.article-box img{';
            $lms_education_study_theme_css .='box-shadow: '.esc_attr($lms_education_study_post_page_image_box_shadow).'px '.esc_attr($lms_education_study_post_page_image_box_shadow).'px '.esc_attr($lms_education_study_post_page_image_box_shadow).'px #cccccc;';
        $lms_education_study_theme_css .='}';
    }


    /*--------------------------- Single Post Page Image Box Shadow -------------------*/

    $lms_education_study_single_post_page_image_box_shadow = get_theme_mod('lms_education_study_single_post_page_image_box_shadow',0);
    if($lms_education_study_single_post_page_image_box_shadow != false){
        $lms_education_study_theme_css .='.single-post .entry-header img{';
            $lms_education_study_theme_css .='box-shadow: '.esc_attr($lms_education_study_single_post_page_image_box_shadow).'px '.esc_attr($lms_education_study_single_post_page_image_box_shadow).'px '.esc_attr($lms_education_study_single_post_page_image_box_shadow).'px #cccccc;';
        $lms_education_study_theme_css .='}';
    }

     /*--------------------------- Single Post Page Image Border Radius -------------------*/

    $lms_education_study_single_post_page_image_border_radius = get_theme_mod('lms_education_study_single_post_page_image_border_radius', 0);
    if($lms_education_study_single_post_page_image_border_radius != false){
        $lms_education_study_theme_css .='.single-post .entry-header img{';
            $lms_education_study_theme_css .='border-radius: '.esc_attr($lms_education_study_single_post_page_image_border_radius).'px;';
        $lms_education_study_theme_css .='}';
    }