/*
Theme Name: TradingBuzz
Theme URI: https://tradingbuzzr.com
Author: Concept Communication Ltd
Author URI: https://thehohalla.com
Description: Custom homepage theme for TradingBuzz₹ — IPO, NCD, Rights Issue, Buyback and market intelligence portal. Brand: navy + red wordmark with stylized rupee accent.
Version: 1.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: tradingbuzz
*/

:root{
  --navy:#2b2c97;
  --navy-deep:#1c1d66;
  --navy-mid:#3d3ec2;
  --brand-red:#f8001a;
  --brand-red-dark:#cc0015;
  --ink:#1c1d66;
  --text:#3a4152;
  --muted:#7c8294;
  --bg:#f4f6fb;
  --card:#ffffff;
  --border:#e4e6ef;
  --green:#1a9c5c;
  --red:#e5222b;
  --amber:#e0a112;
}
*{box-sizing:border-box;margin:0;padding:0;}
body{
  font-family:'Inter',system-ui,-apple-system,sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.5;
}
a{text-decoration:none;color:inherit;}
img{max-width:100%;display:block;}
ul{list-style:none;}
.wrap{max-width:1240px;margin:0 auto;padding:0 20px;}

/* ---------- Brand wordmark (real logo file, used in header + footer) ---------- */
.site-logo-img{height:32px;width:auto;display:block;}
.logo-chip{display:inline-flex;align-items:center;}
.logo-chip.on-dark{background:#fff;padding:10px 16px;border-radius:10px;}
.logo-chip.on-dark .site-logo-img{height:26px;}
.logo-sub{font-size:10px;font-weight:600;color:var(--muted);letter-spacing:1.2px;text-transform:uppercase;margin-top:5px;}
.foot-logo-sub{color:#8b93ad;}

/* ---------- Top utility bar ---------- */
.topbar{background:var(--navy-deep);color:#c9cfe6;font-size:12.5px;}
.topbar .wrap{display:flex;align-items:center;justify-content:space-between;min-height:34px;padding:5px 24px;flex-wrap:wrap;gap:10px;}
.topbar .ticks{display:flex;gap:18px;}
.tv-ticker-wrap{flex:1;min-width:0;max-width:640px;}
.tv-ticker-wrap .tradingview-widget-container{width:100%;}
.tick{display:flex;gap:6px;align-items:center;}
.tick .name{color:#8b93b8;}
.tick .up{color:#5fd98a;font-weight:600;}
.tick .down{color:#ff8a80;font-weight:600;}
.topbar .meta{display:flex;gap:16px;align-items:center;color:#8b93b8;flex-shrink:0;}
.market-dot{width:7px;height:7px;border-radius:50%;background:#5fd98a;display:inline-block;margin-right:5px;box-shadow:0 0 0 2px rgba(95,217,138,.25);}
.market-dot.closed{background:#ff8a80;box-shadow:0 0 0 2px rgba(255,138,128,.25);}

/* ---------- Header ---------- */
header.main{background:#fff;border-bottom:1px solid var(--border);position:sticky;top:0;z-index:50;}
.header-row{display:flex;align-items:center;justify-content:space-between;height:76px;gap:24px;flex-wrap:wrap;}
.header-row .site-logo-img{height:34px;}
.search-box{flex:1;max-width:420px;display:flex;align-items:center;background:var(--bg);border:1px solid var(--border);border-radius:8px;padding:9px 14px;gap:8px;color:var(--muted);font-size:14px;}
.search-box svg{flex:none;opacity:.6;}
.header-actions{display:flex;align-items:center;gap:18px;}
.icon-btn{position:relative;width:38px;height:38px;border-radius:50%;background:var(--bg);display:flex;align-items:center;justify-content:center;color:var(--navy);}
.icon-btn .dot{position:absolute;top:6px;right:7px;width:7px;height:7px;background:var(--brand-red);border-radius:50%;}
.btn-primary{background:var(--brand-red);color:#fff;font-weight:600;font-size:14px;padding:10px 20px;border-radius:8px;white-space:nowrap;}
.btn-primary:hover{background:var(--brand-red-dark);}

/* ---------- Mega nav ---------- */
nav.megabar{background:var(--navy);}
.nav-row{display:flex;align-items:center;gap:2px;height:46px;flex-wrap:wrap;}
.nav-item{position:relative;height:100%;display:flex;align-items:center;padding:0 16px;color:#dde1f2;font-size:14px;font-weight:600;cursor:pointer;}
.nav-item.active,.nav-item:hover{background:var(--brand-red);color:#fff;}
.nav-item .caret{font-size:10px;margin-left:5px;opacity:.75;}
.nav-item .dropdown{display:none;position:absolute;top:100%;left:0;background:#fff;min-width:230px;border-radius:0 0 10px 10px;box-shadow:0 16px 30px rgba(16,25,58,.2);padding:8px 0;z-index:60;}
.nav-item:hover .dropdown{display:block;}
.dropdown a{display:block;padding:9px 18px;font-size:13.5px;color:var(--navy);font-weight:500;}
.dropdown a:hover{background:var(--bg);color:var(--brand-red);}

/* ---------- Hero ---------- */
.hero{background:linear-gradient(135deg,var(--navy-deep) 0%,var(--navy) 60%,var(--navy-mid) 130%);color:#fff;padding:44px 0 0;}
.hero-top{display:flex;justify-content:space-between;align-items:flex-end;gap:30px;padding-bottom:32px;flex-wrap:wrap;}
.hero-top h1{font-size:30px;font-weight:800;max-width:560px;letter-spacing:-.3px;}
.hero-top p{color:#c7cde6;margin-top:8px;font-size:14.5px;max-width:520px;}
.updated-chip{background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.25);border-radius:20px;padding:7px 14px;font-size:12.5px;white-space:nowrap;display:flex;align-items:center;gap:6px;}
.updated-chip .blink{width:7px;height:7px;background:#5fd98a;border-radius:50%;}
.quick-cards{display:grid;grid-template-columns:repeat(6,1fr);gap:12px;transform:translateY(28px);}
.qcard{background:#fff;border-radius:12px;padding:16px 14px;box-shadow:0 12px 24px rgba(16,25,58,.16);text-align:left;}
.qcard .n{font-size:22px;font-weight:800;color:var(--navy);}
.qcard .l{font-size:12.5px;color:var(--muted);font-weight:600;margin-top:2px;}
.qcard .badge{display:inline-block;margin-top:8px;font-size:10.5px;font-weight:700;padding:3px 8px;border-radius:6px;background:#e8f6ee;color:var(--green);}
.qcard .badge-muted{background:#f1f1f1;color:var(--muted);}

section{padding:64px 0 0;}
.section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;flex-wrap:wrap;gap:10px;}
.section-head h2{font-size:20px;font-weight:800;color:var(--navy);}
.section-head .view-all{font-size:13px;font-weight:700;color:var(--brand-red);}
.sample-tag{font-size:11px;font-weight:700;color:var(--amber);background:#fdf3dc;padding:3px 9px;border-radius:6px;margin-left:10px;vertical-align:middle;}

.grid-2{display:grid;grid-template-columns:2fr 1fr;gap:24px;align-items:start;}
.card{background:var(--card);border:1px solid var(--border);border-radius:14px;overflow:hidden;}
table{width:100%;border-collapse:collapse;font-size:13.5px;}
thead th{text-align:left;font-size:11.5px;text-transform:uppercase;letter-spacing:.4px;color:var(--muted);padding:13px 18px;border-bottom:1px solid var(--border);font-weight:700;}
tbody td{padding:13px 18px;border-bottom:1px solid var(--border);}
tbody tr:last-child td{border-bottom:none;}
tbody tr:hover{background:#f8f9fd;}
.post-content{font-size:15.5px;line-height:1.75;color:var(--ink);}
.post-content p{margin-bottom:18px;}
.post-content h2{font-size:19px;font-weight:800;color:var(--navy);margin:30px 0 12px;}
.post-content h2:first-child{margin-top:0;}
.post-content em{color:var(--muted);font-size:13.5px;line-height:1.6;}
.co-name{font-weight:700;color:var(--navy);display:block;text-decoration:none;}
a.co-name:hover{text-decoration:underline;color:var(--red);}
.co-sub{font-size:11.5px;color:var(--muted);}
.chip{font-size:11px;font-weight:700;padding:4px 9px;border-radius:6px;}
.chip.open{background:#e8f6ee;color:var(--green);}
.chip.upcoming{background:#eaeefb;color:var(--navy);}
.chip.closed{background:#f1f1f1;color:var(--muted);}
.chip.listed{background:#eef1fb;color:var(--navy-mid);}
.ipo-archive-note{font-size:13px;color:var(--muted);margin:14px 0 22px;line-height:1.6;}
.ipo-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:20px;flex-wrap:wrap;}
.ipo-pagination .pg-info{font-size:13px;color:var(--muted);}
.ipo-pagination .pg-links{display:flex;gap:10px;}
.ipo-pagination a.pg-btn{padding:9px 18px;border-radius:8px;font-size:13px;font-weight:700;text-decoration:none;background:var(--navy);color:#fff;}
.ipo-pagination span.pg-btn{padding:9px 18px;border-radius:8px;font-size:13px;font-weight:700;background:#f1f1f1;color:var(--muted);cursor:default;}
.gmp-up{color:var(--green);font-weight:700;}
.gmp-down{color:var(--red);font-weight:700;}
.year-nav{display:flex;align-items:center;justify-content:center;gap:18px;margin-bottom:22px;}
.year-nav .pg-btn{padding:10px 20px;border-radius:8px;font-size:13.5px;font-weight:700;text-decoration:none;background:var(--navy);color:#fff;}
.year-nav span.pg-btn{background:#f1f1f1;color:var(--muted);cursor:default;}
.year-current{font-size:22px;font-weight:800;color:var(--navy);min-width:70px;text-align:center;}
.year-summary-card{padding:38px;text-align:center;}
.year-summary-count{font-size:44px;font-weight:800;color:var(--navy);line-height:1;}
.year-summary-label{font-size:14px;color:var(--muted);font-weight:600;margin-top:8px;}

.mood-widget{padding:20px;}
.mood-widget h3{font-size:14.5px;font-weight:700;color:var(--navy);margin-bottom:4px;}
.mood-widget .sub{font-size:12px;color:var(--muted);margin-bottom:16px;}
.mood-days{display:flex;justify-content:space-between;margin-bottom:18px;}
.mood-day{text-align:center;font-size:11px;color:var(--muted);}
.mood-dot{width:26px;height:26px;border-radius:50%;margin:0 auto 6px;}
.idx-row{display:flex;justify-content:space-between;align-items:center;padding:12px 0;border-top:1px solid var(--border);}
.idx-row:first-of-type{border-top:none;}
.idx-name{font-weight:700;font-size:13.5px;color:var(--navy);}
.idx-val{font-size:13.5px;font-weight:700;}

.pill-row{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:22px;}
.pill{font-size:13px;font-weight:700;padding:9px 16px;border-radius:20px;background:#fff;border:1px solid var(--border);color:var(--text);cursor:pointer;}
.pill.active{background:var(--brand-red);border-color:var(--brand-red);color:#fff;}
.news-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;}
.news-card{background:var(--card);border:1px solid var(--border);border-radius:14px;padding:18px;}
.news-card .src{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:800;color:var(--navy);text-transform:uppercase;letter-spacing:.4px;margin-bottom:10px;}
.news-card .src .sq{width:6px;height:6px;border-radius:50%;background:var(--brand-red);}
.news-card h4{font-size:15px;font-weight:700;color:var(--navy);margin-bottom:8px;line-height:1.35;}
.news-card p{font-size:13px;color:var(--muted);margin-bottom:12px;}
.news-card .time{font-size:11.5px;color:var(--muted);}
.news-card[data-cat="sebi"] .src{color:#8a4fd1;}
.news-card[data-cat="bse"] .src{color:var(--navy);}
.news-card[data-cat="amfi"] .src{color:var(--green);}
.news-card[data-cat="irda"] .src{color:#c9761c;}
.pipeline-note{margin-top:18px;font-size:12px;color:var(--muted);background:#eef0fa;border:1px dashed #c3c9e6;padding:12px 16px;border-radius:10px;}

.strip-3{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;}
.strip-card{background:var(--card);border:1px solid var(--border);border-radius:14px;padding:20px;}
.strip-card h3{font-size:15px;font-weight:800;color:var(--navy);margin-bottom:14px;}
.strip-row{display:flex;justify-content:space-between;align-items:center;padding:9px 0;border-top:1px solid var(--border);font-size:13px;}
.strip-row:first-of-type{border-top:none;}
.strip-row .co{font-weight:600;color:var(--navy);}
.strip-row .dt{color:var(--muted);font-size:12px;}

.cta-banner{margin-top:70px;background:var(--navy-deep);color:#fff;border-radius:18px;padding:40px 44px;display:flex;justify-content:space-between;align-items:center;gap:30px;flex-wrap:wrap;}
.cta-banner h3{font-size:22px;font-weight:800;margin-bottom:8px;}
.cta-banner p{color:#b7bdda;font-size:14px;max-width:460px;}
.cta-actions{display:flex;gap:10px;flex:none;}
.btn-outline{border:1.5px solid rgba(255,255,255,.4);color:#fff;font-weight:700;font-size:13.5px;padding:11px 20px;border-radius:8px;}
.btn-light{background:var(--brand-red);color:#fff;font-weight:700;font-size:13.5px;padding:11px 20px;border-radius:8px;}
.btn-light:hover{background:var(--brand-red-dark);}

footer.site-footer{margin-top:70px;background:var(--navy-deep);color:#b7bdda;}
.foot-top{padding:50px 0 30px;display:grid;grid-template-columns:1.4fr repeat(4,1fr);gap:24px;}
.foot-top .logo-chip{margin-bottom:14px;}
.foot-top p{font-size:13px;line-height:1.6;color:#8b93ad;max-width:260px;}
.foot-col h5{font-size:12.5px;color:#fff;font-weight:700;text-transform:uppercase;letter-spacing:.5px;margin-bottom:14px;}
.foot-col a{display:block;font-size:13px;color:#b7bdda;margin-bottom:10px;}
.foot-col a:hover{color:var(--brand-red);}
.foot-bottom{border-top:1px solid rgba(255,255,255,.1);padding:20px 0;display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#8188a3;flex-wrap:wrap;gap:8px;}
.disclaimer{font-size:11.5px;color:#8188a3;padding:18px 0;border-top:1px solid rgba(255,255,255,.08);line-height:1.6;}

@media(max-width:980px){
  .quick-cards{grid-template-columns:repeat(3,1fr);}
  .grid-2{grid-template-columns:1fr;}
  .news-grid{grid-template-columns:1fr 1fr;}
  .strip-3{grid-template-columns:1fr;}
  .foot-top{grid-template-columns:1fr 1fr;}
}
@media(max-width:600px){
  .quick-cards{grid-template-columns:repeat(2,1fr);}
  .news-grid{grid-template-columns:1fr;}
  .foot-top{grid-template-columns:1fr;}
}

.alignwide{max-width:1240px;margin-left:auto;margin-right:auto;}
.aligncenter{margin-left:auto;margin-right:auto;display:block;}


/* ---------- RHP Deep-Dive Article Components (dossier-style layout for in-depth IPO reviews) ---------- */
.rhp-deep{font-size:15.5px;}
.rhp-deep .lead{font-size:16.5px;color:var(--ink);font-weight:600;line-height:1.7;margin-bottom:6px;}
.rhp-deep h2.dd-h{font-size:19px;font-weight:800;color:var(--navy);margin:36px 0 14px;padding-bottom:8px;border-bottom:2px solid var(--border);}
.rhp-deep h2.dd-h:first-of-type{margin-top:0;}
.rhp-deep .stat-strip{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0 28px;}
.rhp-deep .stat-pill{flex:1 1 130px;background:linear-gradient(135deg,var(--navy) 0%,var(--navy-mid) 100%);color:#fff;border-radius:12px;padding:14px 16px;}
.rhp-deep .stat-pill .v{font-size:17px;font-weight:800;line-height:1.2;}
.rhp-deep .stat-pill .k{font-size:10.5px;color:#c7cde6;font-weight:700;text-transform:uppercase;letter-spacing:.4px;margin-top:4px;}
.rhp-deep .fact-grid{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:var(--border);border:1px solid var(--border);border-radius:12px;overflow:hidden;margin:16px 0;}
.rhp-deep .fact-grid .fi{background:#fff;padding:12px 16px;}
.rhp-deep .fact-grid .fi .k{font-size:11px;color:var(--muted);font-weight:600;text-transform:uppercase;letter-spacing:.3px;}
.rhp-deep .fact-grid .fi .v{font-size:13.5px;color:var(--ink);font-weight:700;margin-top:3px;}
.rhp-deep .dd-timeline{position:relative;margin:18px 0;padding-left:26px;border-left:2px solid var(--border);}
.rhp-deep .dd-timeline .tl-step{position:relative;padding-bottom:18px;}
.rhp-deep .dd-timeline .tl-step:last-child{padding-bottom:0;}
.rhp-deep .dd-timeline .tl-step::before{content:'';position:absolute;left:-32px;top:2px;width:11px;height:11px;border-radius:50%;background:var(--navy);border:2px solid #fff;box-shadow:0 0 0 2px var(--navy);}
.rhp-deep .dd-timeline .tl-step.is-key::before{background:var(--brand-red);box-shadow:0 0 0 2px var(--brand-red);}
.rhp-deep .dd-timeline .tl-date{font-size:11.5px;color:var(--brand-red);font-weight:800;text-transform:uppercase;letter-spacing:.3px;}
.rhp-deep .dd-timeline .tl-label{font-size:13.5px;color:var(--ink);font-weight:600;margin-top:2px;}
.rhp-deep .table-wrap{border:1px solid var(--border);border-radius:12px;overflow:hidden;margin:16px 0;}
.rhp-deep .table-wrap table{font-size:13px;}
.rhp-deep .table-wrap thead th{background:#f8f9fd;}
.rhp-deep .tag-row{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 6px;}
.rhp-deep .tag-chip{font-size:12px;font-weight:600;color:var(--navy);background:#eef0fa;padding:6px 12px;border-radius:20px;}
.rhp-deep .fin-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:16px 0;}
.rhp-deep .fin-card{background:#f8f9fd;border:1px solid var(--border);border-radius:12px;padding:14px;text-align:center;}
.rhp-deep .fin-card .yr{font-size:11px;color:var(--muted);font-weight:700;text-transform:uppercase;}
.rhp-deep .fin-card .rev{font-size:17px;font-weight:800;color:var(--navy);margin:6px 0 2px;}
.rhp-deep .fin-card .lbl{font-size:10.5px;color:var(--muted);}
.rhp-deep .fin-card.hl{background:var(--navy);}
.rhp-deep .fin-card.hl .yr,.rhp-deep .fin-card.hl .lbl{color:#c7cde6;}
.rhp-deep .fin-card.hl .rev{color:#fff;}
.rhp-deep .seg-bars{margin:16px 0;}
.rhp-deep .seg-bar-row{display:flex;align-items:center;gap:10px;margin-bottom:10px;font-size:12.5px;}
.rhp-deep .seg-bar-row .seg-name{flex:0 0 150px;color:var(--ink);font-weight:600;}
.rhp-deep .seg-bar-track{flex:1;height:10px;background:#eef0fa;border-radius:6px;overflow:hidden;}
.rhp-deep .seg-bar-fill{height:100%;background:linear-gradient(90deg,var(--navy),var(--navy-mid));border-radius:6px;}
.rhp-deep .seg-bar-pct{flex:0 0 46px;text-align:right;font-weight:700;color:var(--navy);}
.rhp-deep .callout-grid{display:flex;flex-direction:column;gap:12px;margin:16px 0;}
.rhp-deep .callout{border-radius:12px;padding:16px 18px;border-left:4px solid;}
.rhp-deep .callout.strength{background:#eefbf3;border-color:var(--green);}
.rhp-deep .callout.risk{background:#fdeeee;border-color:var(--red);}
.rhp-deep .callout .c-title{font-size:14px;font-weight:800;margin-bottom:4px;}
.rhp-deep .callout.strength .c-title{color:#0d7a42;}
.rhp-deep .callout.risk .c-title{color:#b91d24;}
.rhp-deep .callout .c-body{font-size:13.5px;color:var(--text);line-height:1.6;}
.rhp-deep .val-box{background:linear-gradient(135deg,var(--navy-deep),var(--navy-mid));color:#fff;border-radius:16px;padding:26px 28px;margin:18px 0;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:16px;}
.rhp-deep .val-box .val-num{font-size:34px;font-weight:800;line-height:1;}
.rhp-deep .val-box .val-lbl{font-size:11.5px;color:#c7cde6;font-weight:600;text-transform:uppercase;letter-spacing:.4px;margin-top:6px;}
.rhp-deep .val-box .val-sub{font-size:13px;color:#dde1f2;max-width:320px;}
.rhp-deep .verdict-box{background:#fff8e6;border:1.5px solid #f0d488;border-radius:14px;padding:22px 24px;margin:24px 0;}
.rhp-deep .verdict-box .v-tag{display:inline-block;font-size:11px;font-weight:800;color:#8a6116;background:#fbe9bd;padding:4px 10px;border-radius:6px;text-transform:uppercase;letter-spacing:.4px;margin-bottom:10px;}
.rhp-deep .verdict-box p{font-size:14px;line-height:1.65;color:#4a3c1c;}
@media(max-width:640px){
  .rhp-deep .fact-grid{grid-template-columns:1fr;}
  .rhp-deep .fin-grid{grid-template-columns:1fr;}
  .rhp-deep .seg-bar-row .seg-name{flex:0 0 110px;}
}
