<?php

$education_insight_custom_style= "";


$minimal_education_slider_content_alignment = get_theme_mod( 'minimal_education_slider_content_alignment','LEFT-ALIGN');

if($minimal_education_slider_content_alignment == 'LEFT-ALIGN'){

$education_insight_custom_style .='#slider .carousel-caption{';

    $education_insight_custom_style .='text-align:left; right: 45%; left: 19%';

$education_insight_custom_style .='}';

$education_insight_custom_style .='@media screen and (max-width:1199px){';

$education_insight_custom_style .='#slider .carousel-caption{';

    $education_insight_custom_style .='right: 20%; left: 19%';
    
$education_insight_custom_style .='} }';

$education_insight_custom_style .='@media screen and (max-width:991px){';

$education_insight_custom_style .='#slider .carousel-caption{';

    $education_insight_custom_style .='right: 15%; left: 19%';
    
$education_insight_custom_style .='} }';


}else if($minimal_education_slider_content_alignment == 'CENTER-ALIGN'){

$education_insight_custom_style .='#slider .carousel-caption{';

    $education_insight_custom_style .='text-align:center; left: 15%; right: 15%;';

$education_insight_custom_style .='}';


}else if($minimal_education_slider_content_alignment == 'RIGHT-ALIGN'){

$education_insight_custom_style .='#slider .carousel-caption{';

    $education_insight_custom_style .='text-align:right; left: 45%; right: 19%;';

$education_insight_custom_style .='}';

$education_insight_custom_style .='@media screen and (max-width:1199px){';

$education_insight_custom_style .='#slider .carousel-caption{';

    $education_insight_custom_style .='left: 20%; right: 19%';
    
$education_insight_custom_style .='} }';

$education_insight_custom_style .='@media screen and (max-width:991px){';

$education_insight_custom_style .='#slider .carousel-caption{';

    $education_insight_custom_style .='left: 15%; right: 19%';
    
$education_insight_custom_style .='} }';

}
//--------------------sticky header----------------------
if (false === get_option('education_insight_sticky_header')) {
    add_option('education_insight_sticky_header', 'off');
}

// Define the custom CSS based on the 'education_insight_sticky_header' option

if (get_option('education_insight_sticky_header', 'off') !== 'on') {
    $education_insight_custom_style .= '.fixed_header.fixed {';
    $education_insight_custom_style .= 'position: static;';
    $education_insight_custom_style .= '}';
}

if (get_option('education_insight_sticky_header', 'off') !== 'off') {
    $education_insight_custom_style .= '.fixed_header.fixed {';
    $education_insight_custom_style .= 'position: fixed; background: var(--post-bg-color); box-shadow: none;';
    $education_insight_custom_style .= '}';

    $education_insight_custom_style .= '.page-template-custom-home-page .wrap_figure.fixed {';
    $education_insight_custom_style .= 'background: var(--post-bg-color);';
    $education_insight_custom_style .= '}';

    $education_insight_custom_style .= '.admin-bar .fixed {';
    $education_insight_custom_style .= ' margin-top: 32px;';
    $education_insight_custom_style .= '}';
}


//colors
$color = get_theme_mod('minimal_education_primary_color', '#01b509');
$color_fade = get_theme_mod('minimal_education_primary_fade', '#e5f7e6');
$color_secondary = get_theme_mod('minimal_education_secondary_color', '#e98401');
$color_third = get_theme_mod('minimal_education_third_color', '#238fbb');
$color_fourth = get_theme_mod('minimal_education_fourth_color', '#ed5927');

$education_insight_custom_style .= ":root {";
    $education_insight_custom_style .= "--theme-primary-color: {$color};";
    $education_insight_custom_style .= "--theme-primary-fade: {$color_fade};";
    $education_insight_custom_style .= "--theme-secondary-color: {$color_secondary};";
    $education_insight_custom_style .= "--theme-third-color: {$color_third};";
    $education_insight_custom_style .= "--theme-fourth-color: {$color_fourth};";

$education_insight_custom_style .= "}";

$minimal_education_slider_heading_color = get_theme_mod( 'minimal_education_slider_heading_color','#2c2c2c');
$education_insight_custom_style .='#slider .carousel-caption h2 a{';
$education_insight_custom_style .='color: '.esc_attr($minimal_education_slider_heading_color).';';
$education_insight_custom_style .='}';
	