/*
Theme Name: Bunzo WordPress
Author: Converted for the site owner
Description: A dynamic WordPress blog theme converted from the Bunzo Bootstrap 5 HTML template. Includes a responsive homepage, archives, search, single posts, pages, comments, menus, widgets, Customizer options, and fallback demo imagery.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bunzo-wordpress
Tags: blog, news, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, right-sidebar
*/

/* WordPress integration overrides. The original visual CSS is loaded separately. */
:root {
    --bunzo-accent: #4f4cff;
    --bunzo-dark: #17171a;
    --bunzo-muted: #6f6f76;
    --bunzo-border: #ededf2;
}

html { scroll-behavior: smooth; }
body.admin-bar .header { margin-top: 32px; }
@media (max-width: 782px) { body.admin-bar .header { margin-top: 46px; } }

.screen-reader-text {
    border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
    height: 1px; margin: -1px; overflow: hidden; padding: 0;
    position: absolute !important; width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus {
    background: #fff; clip: auto !important; clip-path: none; color: #111;
    display: block; font-size: 14px; height: auto; left: 8px; padding: 12px 16px;
    top: 8px; width: auto; z-index: 100000;
}

.custom-logo { max-height: 55px; width: auto; }
.logo .site-title { margin: 0; font-size: 28px; line-height: 1; }
.logo .site-title a { color: #111; font-weight: 700; }
.footer-logo .site-title a { color: #fff; }

.navigation-menu .sub-menu { display: block; }
.navigation-menu > ul > li.menu-item-has-children:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.navigation-menu .current-menu-item > a,
.navigation-menu .current-menu-ancestor > a { color: var(--bunzo-accent); }
.navigation-menu ul { margin: 0; }

.wp-caption, .gallery-caption { max-width: 100%; }
.wp-caption-text { color: var(--bunzo-muted); font-size: 14px; margin-top: 8px; }
.alignleft { float: left; margin: 0 24px 20px 0; }
.alignright { float: right; margin: 0 0 20px 24px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.bypostauthor { display: block; }

.bunzo-post-placeholder,
.single-following-post .following-post-thum img,
.blog-details-thum img,
.hero-banner-area img { width: 100%; object-fit: cover; }
.hero-banner-area img { min-height: 360px; max-height: 520px; }
.single-following-post .following-post-thum img { aspect-ratio: 16 / 10; }

.bunzo-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 35px; }
.bunzo-section-heading h3 { margin: 0; }
.bunzo-view-all { font-weight: 600; }

.bunzo-empty-state { padding: 60px 30px; background: #f7f7fb; border-radius: 12px; text-align: center; }
.bunzo-pagination { margin-top: 45px; }
.bunzo-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.bunzo-pagination .page-numbers { min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid var(--bunzo-border); border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; }
.bunzo-pagination .current, .bunzo-pagination a:hover { background: var(--bunzo-accent); color: #fff; border-color: var(--bunzo-accent); }

.bunzo-sidebar-widget { margin-bottom: 40px; }
.bunzo-sidebar-widget .widget-title { margin-bottom: 22px; font-size: 22px; }
.bunzo-sidebar-widget ul { list-style: none; padding: 0; margin: 0; }
.bunzo-sidebar-widget li { padding: 9px 0; border-bottom: 1px solid var(--bunzo-border); }
.bunzo-sidebar-widget select, .bunzo-sidebar-widget input[type="search"] { width: 100%; }

.post-details-text { font-size: 17px; line-height: 1.85; }
.post-details-text > * { max-width: 100%; }
.post-details-text h2, .post-details-text h3, .post-details-text h4 { margin-top: 1.6em; }
.post-details-text blockquote { border-left: 4px solid var(--bunzo-accent); margin: 30px 0; padding: 20px 28px; background: #f7f7fb; }
.post-details-text img { height: auto; }
.post-details-text table { width: 100%; margin: 25px 0; border-collapse: collapse; }
.post-details-text th, .post-details-text td { border: 1px solid var(--bunzo-border); padding: 10px; }

.bunzo-author-avatar img { border-radius: 50%; }
.bunzo-comment-list { list-style: none; padding: 0; }
.bunzo-comment-list .children { list-style: none; margin-left: 55px; }
.bunzo-comment { display: flex; gap: 18px; padding: 25px 0; border-bottom: 1px solid var(--bunzo-border); }
.bunzo-comment-avatar img { border-radius: 50%; }
.bunzo-comment-body { flex: 1; }
.bunzo-comment-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.comment-form input:not([type="checkbox"]), .comment-form textarea { width: 100%; margin-bottom: 18px; }
.comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 8px; }
.comment-form .submit { border: 0; }

.bunzo-page-content { min-height: 320px; }
.bunzo-page-title { margin-bottom: 28px; }

.search-overlay__form form { position: relative; }
.search-overlay__form input[type="search"] { padding-right: 65px; }
.search-overlay__form button { position: absolute; right: 0; top: 0; height: 100%; width: 58px; border: 0; background: transparent; font-size: 24px; }

.footer-widget .menu { list-style: none; padding: 0; margin: 0; }
.footer-widget .menu li { margin-bottom: 10px; }
.footer-widget .menu a { color: inherit; }
.footer-subscribe-wrap .bunzo-newsletter-note { color: rgba(255,255,255,.7); font-size: 12px; margin-top: 10px; }

.bunzo-no-image { background: linear-gradient(135deg, #3f3bf4, #101036); min-height: 220px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; }

@media (max-width: 991px) {
    .header-top-area { display: none; }
    .blog-details-col-8, .blog-details-col-4 { width: 100%; }
    .blog-details-col-4 { margin-top: 50px; }
}
@media (max-width: 767px) {
    .hero-category-area { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .hero-banner-area img { min-height: 230px; }
    .bunzo-comment-list .children { margin-left: 20px; }
    .alignleft, .alignright { float: none; margin: 0 0 20px; }
}

/* Reset native button styling on controls inherited from the HTML template. */
.mobile-navigation-icon,
.mobile-navigation-close-icon {
    appearance: none; -webkit-appearance: none; border: 0; background: transparent; padding: 0; color: inherit;
}
.header-top-menu-list { padding-left: 0; }
.navigation-menu > ul > li > a > span { display: inline-block; }
