/*
Theme Name: CodeRao Tech Binduz
Theme URI: https://tech.coderao.com/
Description: Binduz demo-style news magazine layout for CodeRao Tech. Child theme of CodeRao Tech — full-width hero with overlay headline, overlapping cards, Trending News with tabs and Categories rail, category blocks and latest list. Light theme, red accent, matching the Binduz demo.
Author: CodeRao
Template: coderao-tech
Version: 1.1.0
License: GNU General Public License v2 or later
Text Domain: coderao-tech-binduz
*/

/* ---------- Light demo look, homepage only (body.home) ---------- */
body.home {
	--bg: #ffffff; --bg2: #f6f6f6; --card: #ffffff; --card2: #f2f2f2;
	--line: #e9e9e9;
	--txt: #111111; --mut: #666666;
	--acc: #f92a28; --acc2: #d61f1f; --hot: #f92a28;
	background: #fff;
	color: #111;
}
body.home .site-head { background: #fff; border-bottom: 1px solid #e9e9e9; }
body.home .nav a { color: #111; }
body.home .nav a:hover, body.home .nav .current-menu-item a { color: #f92a28; }
body.home .logo small { color: #888; }
body.home .searchbox { background: #f4f4f4; border-color: #e5e5e5; }
body.home .searchbox input { background: transparent; color: #111; }
body.home .searchbox button { background: #f92a28; color: #fff; }
body.home .topbar { background: #111; color: #999; }
/* Footer stays dark (like the demo) — but its text used the light --mut, so set it back. */
body.home footer p, body.home footer li { color: #9aa3ad; }
body.home footer a { color: #9aa3ad; }
body.home footer a:hover { color: #f92a28; }
body.home footer h4 { color: #fff; }
body.home .copy { color: #8b949e; }

/* ---------- Layout ---------- */
.bz-wrap { max-width: 1240px; margin: 0 auto; padding: 44px 16px 40px; }
.bz-main { min-width: 0; }
.bz-sec { margin-bottom: 44px; }
.bz-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-bottom: 2px solid #eee; margin-bottom: 18px; padding-bottom: 10px; }
.bz-sec-title { font-size: 24px; font-weight: 800; margin: 0; color: #111; }
.bz-sec-link { font-size: 13px; color: #f92a28; font-weight: 700; text-transform: uppercase; white-space: nowrap; }
.bz-meta { font-size: 13px; color: #888; margin-top: 6px; }
.bz-wrap a { color: #111; }
.bz-wrap a:hover { color: #f92a28; }

/* ---------- Category badge (red, like the demo) ---------- */
.bz-cat { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: #fff; background: #f92a28; padding: 5px 12px; border-radius: 4px; margin-bottom: 10px; }
.bz-cat:hover { color: #fff; }
.bz-cat-sm { font-size: 11px; padding: 3px 8px; margin-bottom: 0; margin-right: 8px; }

/* ---------- Hero: full-width photo + overlay ---------- */
.bz-hero-full { position: relative; background: #111; overflow: hidden; }
.bz-hero-full.bz-hero-noimg { background: linear-gradient(135deg, #1a1a2e, #16213e); }
.bz-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.bz-hero-full::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.45) 55%, rgba(0,0,0,.15) 100%), linear-gradient(transparent 55%, rgba(0,0,0,.55)); }
.bz-hero-inner { position: relative; z-index: 2; max-width: 1240px; margin: 0 auto; padding: 0 16px; min-height: 560px; display: flex; align-items: center; }
.bz-hero-content { max-width: 560px; padding: 80px 0 140px; }
.bz-hero-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.bz-hero-meta .bz-cat { margin-bottom: 0; }
.bz-hero-date { color: #fff; font-size: 14px; font-weight: 600; }
.bz-hero-title { margin: 18px 0 20px; font-size: 46px; line-height: 1.15; font-weight: 800; }
.bz-hero-title a { color: #fff; }
.bz-hero-title a:hover { color: #fff; }
.bz-hero-byline { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.9); font-size: 14px; flex-wrap: wrap; }
.bz-hero-byline img.avatar { border-radius: 50%; width: 40px; height: 40px; }
.bz-hero-byline a { color: #fff; font-weight: 700; }
.bz-hero-comments { color: rgba(255,255,255,.75); }

/* ---------- Overlapping cards ---------- */
.bz-overlap-wrap { max-width: 1240px; margin: -90px auto 0; padding: 0 16px; position: relative; z-index: 5; }
.bz-overlap-box { margin-left: auto; max-width: 660px; background: #fff; border-radius: 12px; box-shadow: 0 20px 45px rgba(0,0,0,.20); display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; }
.bz-ovcard { display: flex; gap: 14px; padding: 18px; align-items: flex-start; }
.bz-ovcard + .bz-ovcard { border-left: 1px solid #eee; }
.bz-ovcard img { width: 110px; height: 84px; object-fit: cover; border-radius: 8px; flex: 0 0 110px; }
.bz-ovcard .bz-meta { margin-top: 0; margin-bottom: 6px; font-size: 12px; }
.bz-ovcard h3 { margin: 0; font-size: 16px; line-height: 1.35; font-weight: 700; }
.bz-ovcard h3 a { color: #111; }

/* ---------- Trending News ---------- */
.bz-trend-head { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.bz-trend-title { font-size: 28px; font-weight: 800; margin: 0; color: #111; white-space: nowrap; }
.bz-trend-rule { flex: 1 1 auto; height: 3px; background: #f92a28; min-width: 40px; }
.bz-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.bz-tab { border: 0; background: none; color: #777; font-size: 14px; font-weight: 600; padding: 6px 10px; cursor: pointer; }
.bz-tab.active { color: #f92a28; }
.bz-trend-grid { display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start; }
.bz-panel { display: none; }
.bz-panel.active { display: grid; grid-template-columns: 1.05fr 1fr; gap: 24px; }
.bz-tbig img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; border-radius: 12px; }
.bz-tbig-meta { display: flex; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.bz-tbig-meta .bz-cat { margin-bottom: 0; }
.bz-tbig-meta .bz-meta { margin-top: 0; }
.bz-tbig h3 { margin: 12px 0 0; font-size: 22px; line-height: 1.3; font-weight: 800; }
.bz-panel-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.bz-panel-list li { display: flex; gap: 14px; }
.bz-panel-list img { width: 110px; height: 84px; object-fit: cover; border-radius: 8px; flex: 0 0 110px; }
.bz-panel-list .bz-meta { margin-top: 0; }
.bz-panel-list h4 { margin: 6px 0 0; font-size: 16px; line-height: 1.35; font-weight: 700; }

/* ---------- Categories rail ---------- */
.bz-rail-label { display: inline-block; background: #fde8e8; color: #f92a28; font-weight: 800; font-size: 14px; padding: 6px 14px; border-radius: 4px; margin-bottom: 16px; }
.bz-rail-card { position: relative; display: block; border-radius: 12px; overflow: hidden; margin-bottom: 14px; min-height: 110px; background: #ddd; }
.bz-rail-card img { width: 100%; height: 110px; object-fit: cover; display: block; }
.bz-rail-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(0,0,0,.65)); }
.bz-rail-name { position: absolute; left: 14px; bottom: 12px; z-index: 2; color: #fff; font-weight: 800; font-size: 15px; }
.bz-rail-count { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); z-index: 2; background: rgba(255,255,255,.95); color: #111; font-weight: 800; font-size: 13px; padding: 4px 10px; border-radius: 6px; }

/* ---------- Category blocks ---------- */
.bz-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.bz-catblock article.bz-big img { width: 100%; height: 210px; object-fit: cover; display: block; border-radius: 12px; }
.bz-catblock article.bz-big h3 { font-size: 18px; line-height: 1.3; margin: 12px 0 4px; font-weight: 800; }
.bz-catblock ul { list-style: none; margin: 12px 0 0; padding: 0; }
.bz-catblock ul li { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid #eee; }
.bz-catblock ul li img { width: 84px; height: 64px; object-fit: cover; border-radius: 8px; flex: 0 0 84px; }
.bz-catblock ul li h4 { margin: 0; font-size: 14px; line-height: 1.35; font-weight: 700; }

/* ---------- Latest list ---------- */
.bz-latest article { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid #eee; }
.bz-latest article img { width: 220px; height: 150px; object-fit: cover; border-radius: 12px; flex: 0 0 220px; }
.bz-latest h3 { margin: 0 0 6px; font-size: 19px; line-height: 1.3; font-weight: 800; }
.bz-latest p { margin: 8px 0 0; color: #666; font-size: 14px; line-height: 1.55; }
.bz-latest .bz-noimg { flex: 1; min-width: 0; }

.bz-pagination { margin-top: 24px; text-align: center; }
.bz-pagination .page-numbers { display: inline-block; padding: 8px 14px; border: 1px solid #ddd; border-radius: 8px; margin: 0 3px; font-weight: 700; color: #111; }
.bz-pagination .page-numbers.current { background: #f92a28; border-color: #f92a28; color: #fff; }

/* Single page (parent theme has no page.php) */
.ct-page { max-width: 820px; margin: 0 auto; padding: 36px 16px 48px; }
.ct-page-title { font-size: 32px; line-height: 1.25; margin: 0 0 8px; }
.ct-page-meta { color: var(--mut, #8b98b8); font-size: 13px; margin-bottom: 20px; }
.ct-page-content { font-size: 17px; line-height: 1.75; }
.ct-page-content h2 { font-size: 22px; margin: 28px 0 10px; }
.ct-page-content p { margin: 0 0 16px; }
.ct-page-content a { color: var(--acc, #00d4ff); }

@media (max-width: 980px) {
  .bz-hero-inner { min-height: 440px; }
  .bz-hero-title { font-size: 30px; }
  .bz-hero-content { padding-bottom: 120px; }
  .bz-overlap-box { max-width: 100%; grid-template-columns: 1fr; }
  .bz-ovcard + .bz-ovcard { border-left: 0; border-top: 1px solid #eee; }
  .bz-trend-grid { grid-template-columns: 1fr; }
  .bz-panel.active { grid-template-columns: 1fr; }
  .bz-rail { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; align-items: start; }
  .bz-rail-label { grid-column: 1 / -1; justify-self: start; }
  .bz-cats { grid-template-columns: 1fr; }
  .bz-latest article img { width: 120px; height: 90px; flex-basis: 120px; }
  .bz-latest h3 { font-size: 16px; }
}
@media (max-width: 620px) {
  .bz-hero-title { font-size: 26px; }
  .bz-trend-head { flex-wrap: wrap; }
  .bz-trend-rule { display: none; }
  .bz-rail { grid-template-columns: 1fr; }
}
