:root {
  --navy: #123d32; --orange: #e77b27; --green: #21834b; --ink: #20352f;
  --muted: #66766f; --line: #dce7e0; --surface: #f4f8f5; --gold: #d6a43a;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 22px; }
body { margin: 0; color: var(--ink); background: #fff; font-family: Arial, Helvetica, sans-serif; }
[hidden] { display: none !important; }
.trending-bar { min-height: 34px; display: flex; align-items: center; gap: 12px; padding: 4px 4vw; color: #fff; background: linear-gradient(90deg, #123d32, #1b6044); }
.trending-label { flex: 0 0 auto; padding: 5px 12px; border-radius: 5px; background: var(--orange); font-weight: 800; font-size: 11px; letter-spacing: .4px; }
.trending-text { flex: 1; font-size: 12px; font-weight: 600; }
.site-header { min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 12px 4vw; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 3px 14px rgba(15,44,30,.07); }
.brand { display: flex; align-items: center; flex: 0 1 40%; min-width: 0; }
.brand img { display: block; width: clamp(190px, 28vw, 390px); max-width: 100%; height: auto; max-height: 100px; object-fit: contain; object-position: left center; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 16px; flex: 1 1 auto; }
.category-nav { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.language-button { flex: 0 0 auto; margin-left: auto; border: 1px solid rgba(255,255,255,.75); border-radius: 6px; background: transparent; color: #fff; padding: 5px 12px; cursor: pointer; font-weight: 700; white-space: nowrap; }
.language-button:hover { background: rgba(255,255,255,.14); }
.nav-button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 10px clamp(12px, 1.5vw, 22px); border-radius: 7px; color: #fff; text-decoration: none; font-size: clamp(13px, 1.15vw, 16px); font-weight: 700; box-shadow: 0 3px 8px rgba(0,0,0,.1); transition: transform .15s ease, filter .15s ease; white-space: nowrap; }
.education-nav { background: #26764b; } .indian-nav { background: #d96d22; } .global-nav { background: #315f91; }
.nav-button:hover, .nav-button:focus-visible { filter: brightness(.92); transform: translateY(-2px); outline: 2px solid var(--gold); outline-offset: 2px; }
.nav-icon { font-size: 19px; }
.page-content { width: min(1480px, 100%); margin: 0 auto; padding: 25px 4vw 42px; }
.news-section { margin: 0 0 30px; scroll-margin-top: 20px; }
.section-heading { display: flex; align-items: baseline; gap: 14px; padding-bottom: 10px; margin-bottom: 15px; border-bottom: 2px solid var(--green); }
.section-heading h2 { margin: 0; color: var(--navy); font-size: 23px; }
.section-heading span { color: var(--muted); font-size: 13px; }
.news-placeholder { display: flex; align-items: center; gap: 16px; min-height: 100px; padding: 17px 19px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.placeholder-icon { display: grid; place-items: center; flex: 0 0 56px; height: 56px; border-radius: 9px; background: #edf5ef; font-size: 27px; }
.news-placeholder h3 { margin: 0 0 5px; font-size: 16px; } .news-placeholder p { margin: 0; color: var(--muted); font-size: 14px; }
.market-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.market-card { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 17px 15px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); text-decoration: none; box-shadow: 0 3px 12px rgba(22,54,37,.055); transition: transform .15s ease, box-shadow .15s ease; }
.market-card:hover, .market-card:focus-visible { transform: translateY(-3px); box-shadow: 0 7px 18px rgba(22,54,37,.12); outline: 2px solid var(--gold); outline-offset: 2px; }
.market-symbol { display: grid; place-items: center; flex: 0 0 43px; height: 43px; border-radius: 8px; color: #fff; font-size: 19px; font-weight: 800; }
.nifty-card .market-symbol { background: #26764b; } .stocks-card .market-symbol { background: #d96d22; } .sensex-card .market-symbol { background: #315f91; } .banknifty-card .market-symbol { background: #74539a; }
.market-card strong, .market-card small { display: block; } .market-card strong { font-size: 16px; } .market-card small { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.card-arrow { margin-left: auto; color: #84948b; font-size: 25px; }
.market-details { margin-top: 17px; }
.detail-panel { scroll-margin-top: 20px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.detail-panel h3 { margin: 0 0 6px; color: var(--navy); font-size: 16px; } .detail-panel p { margin: 0; color: var(--muted); font-size: 13px; }
.content-note { margin: 13px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.back-link { color: var(--green); font-weight: 700; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.site-footer { display: flex; justify-content: space-between; gap: 12px; padding: 18px 4vw; color: #eaf4ed; background: #123d32; font-size: 13px; }
@media (max-width: 850px) {
  .site-header { gap: 16px; } .brand { flex-basis: 32%; } .brand img { width: clamp(155px, 25vw, 250px); }
  .header-actions { gap: 9px; } .category-nav { gap: 7px; } .nav-button { gap: 6px; padding: 9px 10px; }
  .market-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .trending-bar { padding: 5px 10px; gap: 8px; } .trending-label { font-size: 10px; padding: 5px 8px; } .trending-text { font-size: 10px; }
  .site-header { min-height: 0; flex-direction: column; align-items: stretch; gap: 12px; padding: 12px; }
  .brand { justify-content: center; flex: none; } .brand img { width: min(78vw, 300px); max-height: 85px; object-position: center; }
  .header-actions { flex-direction: column-reverse; align-items: stretch; gap: 10px; }
  .category-nav { display: grid; grid-template-columns: 1fr; gap: 8px; }
  .nav-button { min-height: 43px; font-size: 15px; }
  .page-content { padding: 17px 12px 30px; } .section-heading { display: block; }
  .section-heading span { display: block; margin-top: 5px; } .market-grid { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; padding: 16px 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; } }


/* Published post cards shared by all category pages */
.nifty-post-list{display:grid;gap:18px;margin-top:22px}
.nifty-post{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:20px;box-shadow:0 4px 14px rgba(0,0,0,.04)}
.nifty-post h3{margin:0 0 10px;color:#17324d}
.nifty-post .post-date{font-size:.88rem;color:#667085;margin-bottom:12px}
.nifty-post .post-body{line-height:1.7;color:#263238}
.nifty-post .post-body p{margin:8px 0}
.nifty-post .post-table-wrap{overflow-x:auto;margin:12px 0 18px}
.nifty-post table{width:100%;border-collapse:collapse;min-width:300px}
.nifty-post th,.nifty-post td{padding:10px 12px;border:1px solid #dfe5e8;text-align:left}
.nifty-post th{background:#edf4f0;color:#17324d}
.nifty-post td.action-sell{color:#b42318;background:#fff1f0;font-weight:700}
.nifty-post td.action-buy{color:#15803d;background:#ecfdf3;font-weight:700}
.posts-message{padding:18px;border-radius:10px;background:#f5f7f6;color:#46545b}
