/*
Theme Name:   News Theme By Shailesh Chaudhary
Theme URI:    https://shaileshchaudhary.com/
Description:  Google Discover News Theme - All in One Premium Light Weight Design & Discover Optimized.
Author:       Shailesh Chaudhary
Author URI:   https://shaileshchaudhary.com/
Template:     generatepress
Version:      1.0
Requires at least: 5.2
Tested up to: 6.4
Requires PHP: 7.4
Tags: Google News Discover Theme, News Website, Discover Ready, Social Share, Fixed Sticky Menu, Bottom Join, Author Bos, Category Page, Discover and Adsense Optimize News Templete
Shailesh Chaudhary, Copyright 2025 Shailesh Chaudhary
GeneratePress is distributed under the terms of the GNU GPL
*/
.button-social{margin-bottom:22px;} .button-social a{color:black;}.wa{animation:1s infinite wba}.tg{animation:1s infinite tga}.channel-box{border:1px solid #fff0;border-radius:5px;display:flex;margin-right:5px;margin-left:5px;padding:7px;justify-content:space-between}@keyframes wba{0%,100%{border-color:#fff0}50%{border-color:#25d366}}@keyframes tga{0%,100%{border-color:#fff0}50%{border-color:#08c}}
nav.rank-math-breadcrumb {margin-bottom: 2px;}
nav.rank-math-breadcrumb a{color:darkred!important;}
nav.rank-math-breadcrumb p {margin-bottom: 2px;padding: 0; color:#a38c8c;} .last{display:none;}
.language-switch{margin-left:20px;}
.language-switch select {font-size: 14px; border: 1px solid red; border-radius: 5px;background-color: white;color: #007bff;font-weight: bold;      cursor: pointer;padding:2px 0px;}.language-switch select:hover {border-color: darkred;}  
/*Image Round*/
img {border-radius: 8px;}
::-webkit-scrollbar{width:5px;height:0;-webkit-appearance:none}::-webkit-scrollbar-track{background:#d1d8eb}::-webkit-scrollbar-thumb{background-color:#8b0000;border-radius:20px}/* Font */
.navigation-branding img, .site-logo.mobile-header-logo img {
	padding:3px;}
.site-content {padding-top: 30px;}
/*Top-Notification*/
#site-navigation > div > button > span.gp-icon.icon-menu-bars > svg {height: 1.6em;
    width: 1.6em;top: 0.5em;}
/*Top-Notification*/
.notification {color: white;padding:5px;position: relative;display: inline-block;margin-top:5px;}
.notification .badge {position: absolute;font-size:10px; padding: 0px 5px 0px 5px; border-radius: 50%; background-color:#ff4c4c; color: white;}
.notf{ left:10px; top: 2px; }
/*Alignment*/
div.dynamic-entry-content > p{text-align:justify;}/*Blockquote*/
blockquote {font-style: inherit;font-weight: 600;
font-size: 18px;color:red;padding: 7px;
line-height: 1.4em;box-shadow: 0 2px 10px 0 #cac9c9;border-left: 6px solid #01231F;
border-radius: 5px 5px 5px 5px;}
blockquote a{color:darkblue;}

/*Off-canvas-Slider*/
.offcanvaslogo {margin: 10px auto;
margin-bottom: 20px;margin-top: 20px;width: 120px;}
.main-navigation.has-branding .menu-toggle, .main-navigation.has-sticky-branding.navigation-stick .menu-toggle {padding-right: 10px;}
#generate-slideout-menu .slideout-menu li {border-bottom: 1px solid #afafafb3;}
.offside-js--is-open .slideout-overlay{background: rgba(0,0,0,.2);-webkit-backdrop-filter: saturate(180%) blur(10px);
backdrop-filter:saturate(180%) blur(10px);}
/*Top Scroll Menu*/
#ScrollMenu{background: linear-gradient(to right, #ededed, #dfdfdf) !important;;display:block!important;width: 100%;height: 30px;overflow-x: scroll;overflow-y:hidden; position: fixed;z-index: 1;}
div#smul{width: max-content; margin-left:1%;}
ul#menu-sticky-header-custom {text-align: right; margin: 0px;}
ul#menu-sticky-header-custom li {list-style: none;display: inline-block;padding: 1px;}
ul#menu-sticky-header-custom li a {text-decoration: none;padding: 0px 6px ; color:#000;font-size:16px;font-weight:600;}
ul#menu-sticky-header-custom li a:hover {color:darkblue;}
.avatar{border-radius:50%;}
@media (min-width: 769px){
.inside-right-sidebar{position: sticky;top: 85px;}}
/* EKC Dynamic Social Share*/
.float-social-wrapper {position: fixed;top: 50%;transform: translateY(-50%);z-index: 9999;right: 0;}
.float-social-sharing {display: flex;flex-wrap: nowrap;flex-direction: column;align-items: flex-start;min-height: 30px;font-size:12px;padding: 10px 7px;}
.float-social-sharing:first-of-type {border-top-left-radius: 10px;}
.float-social-sharing:last-of-type {border-bottom-left-radius: 10px;}
.social-whatsapp {fill: #fff;background-color: rgba(37, 211, 102, 1);}
.social-whatsapp:hover {background-color: rgba(37, 211, 102, .8);}
.allshare {fill: #fff;background-color: #cc4343;}
.allshare:hover {background-color: rgba(255, 87, 0, .8);}
/ Display Shailesh's custom author bio after each post
function custom_static_author_bio($content) {
    if (is_single() && is_main_query()) {
        // Static author info
        $author_image_url = https://drive.google.com/file/d/1NEUvZVB6vfVUurJt7NO3Uj0XmKJ2cP_4/view?usp=sharing
        $author_name = 'suraj
        $author_title = 'Content Writer at https://motorpulse360.com/';
        $author_description = Suraj Barman is an automotive content creator and the mind behind leading automobile news coverage. With a sharp eye for detail and a passion for everything on wheels, he brings readers the latest updates, reviews, and insights from the world of cars, bikes, and emerging auto technologies. Known for his accuracy and clear explanations, Suraj delivers reliable, expert-driven content that helps enthusiasts stay informed and ahead of the curve..';
        $linkedin_url = '
        // Output HTML
        $author_box = '
        <div class="custom-author-bio" style="margin-top:40px; padding:20px; border:1px solid #ddd; border-radius:10px; display:flex; align-items:flex-start; gap:20px; background:#fafafa;">
            <img src="' . esc_url($author_image_url) . '" alt="Author Shailesh" style="width:96px; height:96px; border-radius:50%; object-fit:cover;" />
            <div class="author-details">
                <h4 style="margin:0 0 5px;">' . esc_html($author_name) . '</h4>
                <p style="margin:0 0 10px; font-size:14px; color:#666;">' . esc_html($author_title) . '</p>
                <p style="margin:0 0 10px;">' . esc_html($author_description) . '</p>
                <p>
                    <a href="' . esc_url($twitter_url) . '" target="_blank" style="margin-right:15px;">Twitter</a>
                    <a href="' . esc_url($linkedin_url) . '" target="_blank">LinkedIn</a>
                </p>
            </div>
        </div>';
        return $content . $author_box;
    }
    return $content;
}
add_filter('the_content', 'custom_static_author_bio');

