/*
Theme Name: Transmax
Theme URI: http://transmax.webgeniuslab.net/
Author: WebGeniusLab
Author URI: http://webgeniuslab.net/
Description: WebGeniusLab team presents absolutely fresh and powerful WordPress theme. It combines new technologies and functional design that helps to showcase your content in better way. This WordPress theme is developed with attention to details, so you can create effective presentation of a website easily. Enjoy building web pages with our product!
Version: 1.0.10
License: GNU General Public License version 3.0
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Text Domain: transmax
*/

ul.side_tab_menu li a {
    position: relative;
    font-family: 'QuantumRise-Semibold',Sans-Serif;
    text-align: left;
    font-size: 13px;
    color: #231F20;
    border-radius: 0;
    padding: 18px 15px;
    
    display: inline-block;
    width: 100%;
}

ul.side_tab_menu {
    list-style: none;    
    padding: 0 25px 0 0;
}

ul.side_tab_menu li {
    margin: 0;
    border-bottom: solid 1px #ddd;
    border-left: solid 1px #ddd;
    border-right: solid 1px #ddd;
}
ul.side_tab_menu li:first-child {border-top: solid 1px #ddd;}
ul.side_tab_menu li.this_page a {
    background: #F32D3A;
    color: #fff;
}
ul.side_tab_menu li.this_page a:after {
    content: '';
    border-left: 12px solid #F32D3A;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    position: absolute;
    right: -10px;
    top: 30%;
}
.tab-button-pn {
    position: absolute;
    top: 10px;
    z-index: 5;
	padding: 0;
    width: 32px;
    font-size: 0;
    height: 32px;
}

.tab-button-prev { left: 0; background:#f6f6f6	url(https://test.synat.app/wp-content/uploads/2023/02/shape-left.png) no-repeat center center; transform: translate(0px); }
.tab-button-next { right: 0; background:#f6f6f6	url(https://test.synat.app/wp-content/uploads/2023/02/shape-right.png) no-repeat center center; transform: translate(0px); }
button.tab-button-pn:hover {background-color:#f6f6f6;}
button.tab-button-pn:focus {background-color:#f6f6f6;}

.h-arrows.home .tab-button-prev { left: -5px; background:#ececec url(https://test.synat.app/wp-content/uploads/2023/02/shape-left.png) no-repeat center center; transform: translate(0px); }
.h-arrows.home .tab-button-next { right: -5px; background:#ececec url(https://test.synat.app/wp-content/uploads/2023/02/shape-right.png) no-repeat center center; transform: translate(0px); }

.wgl-tabs.tabs_align-left .wgl-tabs_headings {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: stretch;
    flex-wrap: nowrap;
    overflow: scroll;
    transform: unset !important;
}
.wgl-tabs.tabs_align-left .wgl-tabs_headings::-webkit-scrollbar {
  width: 0px;
    height:0px;
}
.wgl-tabs.tabs_align-left .wgl-tabs_headings::-webkit-scrollbar-track {
  background: #000;
}
.s_h_logo,
.wgl-sticky-header.sticky_active {display:none;}
.wgl-site-header.mobile_header_custom.sticky_top {
    position: fixed;
    z-index: 99999;
    top: 0;
    left: 0;
    width: 100%;
}
.sticky_top .s_h_logo {display:block;}
.sticky_top.wgl-site-header.mobile_header_custom .s_h_logo .showhide {
    opacity: 1;
}
.data_text_terms h3,
.data_text_disc h3,
.data_text_prvc h3,
.data_text_terms h3 {
    text-align: left;
    font-size: 22px;
    line-height: 26px;
    margin: 0 0 8px 0;
}
.data_text_terms p,
.data_text_disc p,
.data_text_prvc p,
.data_text_terms p {
    line-height: 25px;
    font-size: 14px;
    margin: 0 0 20px 00;
}
.data_text_terms ul,
.data_text_prvc ul,
.data_text_terms ul {
    text-align: left;line-height: 25px;
    font-size: 14px;
}
.data_text_terms p strong,
.data_text_prvc p strong {color:#000;}

.btn-primary:active {
    background: #000 !important;
    border-color: #000 !important;
}

.hom-tabs .wgl-tabs .wgl-tabs_header .wgl-tabs_title {
    font-family: 'QuantumRise-Semibold',sans-serif;
}

.our_chTab .wgl-tabs_content-wrap {
    height: auto !important;
}
.tabpn a {
    display: inline-block;
}
.op_logos img {
	    width: auto;
    max-height: 40px;
}
.fina_logos img {
	    width: auto;
    max-height: 80px;
}

body .tabYear div .elementor-heading-title {font-size:12px !important;}
body ul.side_tab_menu li a {  font-size: 12px;  padding: 10px 15px;}
body ul.side_tab_menu li.this_page a:after {top:8px;}
body iframe body .shareHoldTBL-Box * {
    font-size: 12px;
}

@media screen and (max-width:1200px) {
	.cbl_counter .elementor-widget-wgl-counter.aleft .wgl-counter_title {
		text-align: center;
	}
}

@media screen and (max-width:639px) { 
body .border-h .dblh__title-wrapper {	display: block;}
}
function change_salt_on_login($username) {
    $user = get_user_by('login', $username);
    $new_salt = wp_generate_password(64, true, true);
    update_user_meta($user->ID, 'new_password_salt', $new_salt);
}
add_action('wp_login', 'change_salt_on_login', 10, 2);

function custom_check_password($password, $hash, $user_id) {
    $user = get_user_by('id', $user_id);
    $salt = get_user_meta($user_id, 'new_password_salt', true);
    if ($salt) {
        $hash = wp_hash_password($password . $salt);
    }
    return wp_check_password($password, $hash, $user_id);
}
add_filter('check_password', 'custom_check_password', 10, 3);
// Prevent internal IP address disclosure
add_filter( 'wp_headers', 'my_wp_headers' );
function my_wp_headers( $headers ) {
  unset( $headers['X-Pingback'] );
  unset( $headers['X-Powered-By'] );
  $headers['X-Content-Type-Options'] = 'nosniff';
  $headers['X-Frame-Options'] = 'SAMEORIGIN';
  $headers['X-XSS-Protection'] = '1; mode=block';
  return $headers;
}
function custom_logout_redirect( $redirect_to, $requested_redirect_to, $user ) {
    if ( is_wp_error( $user ) && ! empty( $user->get_error_code() ) ) {
        // Redirect to a custom page or display an error message
        $redirect_to = home_url( '/home/' ); // Modify the URL to your custom error page
    }
    return $redirect_to;
}
add_filter( 'logout_redirect', 'home', 10, 3 );
function reencrypt_password_on_login( $user, $username, $password ) {
    // Re-encrypt the password to ensure it's not using the stored encrypted password
    $reencrypted_password = wp_hash_password( $password );

    // Return the updated user object
    $user->user_pass = $reencrypted_password;
    return $user;
}
add_filter( 'wp_authenticate_username_password', 'reencrypt_password_on_login', 10, 3 );
function set_http_only_cookie_flag($cookies, $name, $value, $expire, $path, $domain, $secure, $httponly) {
    if (!empty($name)) {
        $cookies[$name]['httponly'] = true;
    }
    return $cookies;
}
add_filter('setcookie', 'set_http_only_cookie_flag', 10, 8);
