/*!
Theme Name: benqu Child
Template:   benqu
Theme URI: http://itcroctheme.com/wp/demo/
Author: itcroc
Author URI: http://itcroctheme.com/wp/demo/
Description: Benqu - News & Magazine WordPress Theme (Customized child)
Version: 1.1.0
Tested up to: 6.6
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: benqu-child
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ===== Hide author/email everywhere ===== */
.auth_by,
.pfy-single-post-meta .auth_by,
.pfy-single-post-meta li:first-child,
.post-author,
.byline,
.author.vcard,
.author-box,
.bnq-author-box,
.benqu-author-box,
.theme-author-box,
.entry-author,
.comment-author .says,
.comment-author cite a[href*="mailto"],
a[href^="mailto:"] {
    display: none !important;
}

/* ===== Header ad slot (under header, not sticky) ===== */
.bnq-header-ad {
    width: 100%;
    text-align: center;
    margin: 12px auto;
    padding: 8px 12px;
    position: relative;
    z-index: 1;
}
.bnq-header-ad .bnq-ad-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    margin-bottom: 6px;
}
.bnq-ad-slot { width: 100%; text-align: center; margin: 16px 0; }
.bnq-ad-slot.in-content { margin: 24px 0; }

/* Prevent AdSense auto-ads from invading nav/header */
header, .header, .bnq-header, .pfy-header, .pfy-header-wraap,
.benqu-header, .sticky-header, .navbar, nav, .main-menu,
.mobile-menu, .header-top, .header-middle, .header-bottom,
.pfy-main-menu-wrap, .pfy-mobile-menu-wrap {
    --google-ads-disabled: 1;
}
header ins.adsbygoogle,
.header ins.adsbygoogle,
nav ins.adsbygoogle,
.navbar ins.adsbygoogle,
.sticky-header ins.adsbygoogle,
.pfy-main-menu-wrap ins.adsbygoogle,
.pfy-mobile-menu-wrap ins.adsbygoogle,
.main-menu ins.adsbygoogle {
    display: none !important;
}

/* ===== Sidebar recent / popular posts with thumbnails ===== */
.bnq-mini-posts { list-style: none; margin: 0; padding: 0; }
.bnq-mini-posts li {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,.08);
    align-items: flex-start;
}
.bnq-mini-posts li:last-child { border-bottom: 0; }
.bnq-mini-posts .bnq-mini-thumb {
    flex: 0 0 70px;
    width: 70px;
    height: 70px;
    overflow: hidden;
    border-radius: 4px;
    background: #eee;
}
.bnq-mini-posts .bnq-mini-thumb img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.bnq-mini-posts .bnq-mini-body { flex: 1 1 auto; min-width: 0; }
.bnq-mini-posts .bnq-mini-title {
    font-size: 14px;
    line-height: 1.35;
    margin: 0 0 4px;
    font-weight: 600;
}
.bnq-mini-posts .bnq-mini-title a { color: inherit; text-decoration: none; }
.bnq-mini-posts .bnq-mini-date { font-size: 12px; color: #888; }

/* Footer popular posts grid */
.bnq-footer-popular { margin: 20px 0; }
.bnq-footer-popular .bnq-mini-posts li { border-color: rgba(255,255,255,.1); }

/* Custom search */
.bnq-custom-search { position: relative; margin-bottom: 20px; }
.bnq-custom-search input[type="search"] {
    width: 100%;
    padding: 10px 44px 10px 14px;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 4px;
    font-size: 14px;
}
.bnq-custom-search button {
    position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
    background: transparent; border: 0; padding: 8px 12px; cursor: pointer;
    color: #666;
}
