:root {
  --red: #e62129;
  --red-dark: #b50f18;
  --green: #0aa65f;
  --green-dark: #057342;
  --gold: #f0bd42;
  --ink: #15171b;
  --muted: #69727d;
  --line: #e7ebef;
  --paper: #f6f8fb;
  --white: #ffffff;
  --dark: #07100d;
  --max: 1180px;
  font-family: Arial, "Helvetica Neue", "Noto Sans Bengali", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; overflow-x: hidden; letter-spacing: 0; }
body { min-width: 320px; color: var(--ink); background: var(--paper); }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
p { line-height: 1.65; }
.wrap { width: min(var(--max), calc(100% - 44px)); margin: 0 auto; }
.signal { color: #fff; background: var(--red); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.signal .wrap { min-height: 34px; display: flex; align-items: center; justify-content: center; text-align: center; }
.utility { background: #fff; border-bottom: 1px solid var(--line); }
.utility-inner { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: var(--muted); font-size: 13px; }
.search { width: min(270px, 45vw); height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 13px; border: 1px solid var(--line); border-radius: 6px; color: #9aa3ad; background: #fbfcfe; }
.search svg { width: 16px; height: 16px; stroke: currentColor; }
.masthead { padding: 36px 0 34px; text-align: center; background: #fff; }
.logo { display: inline-flex; align-items: center; justify-content: center; gap: 12px; color: var(--red); font-size: 44px; line-height: .95; font-weight: 950; text-transform: uppercase; }
.logo-mark { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 8px; color: #07100d; background: linear-gradient(145deg, #fff2a1, #f0bd42 48%, #0aa65f); box-shadow: 0 16px 38px rgba(240, 189, 66, .34); font-size: 19px; font-weight: 950; }
.logo span:last-child { color: var(--green); }
.tagline { margin-top: 9px; color: #4a535d; font-size: 12px; font-weight: 850; text-transform: uppercase; }
.nav-band { position: sticky; top: 0; z-index: 10; color: #fff; background: var(--red); box-shadow: 0 10px 24px rgba(181, 15, 24, .18); }
.nav { min-height: 50px; display: flex; align-items: center; justify-content: center; gap: 24px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { min-height: 50px; display: inline-flex; align-items: center; border-bottom: 3px solid transparent; font-size: 13px; font-weight: 900; text-transform: uppercase; }
.nav a.is-active { border-bottom-color: var(--gold); }
.page { padding: 28px 0 0; }
.ticker { min-height: 46px; display: flex; align-items: center; gap: 14px; padding: 0 16px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--muted); font-size: 13px; overflow: hidden; }
.ticker strong { color: var(--red); font-weight: 950; text-transform: uppercase; white-space: nowrap; }
.top-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; margin-top: 24px; align-items: start; }
.hero-card { overflow: hidden; min-height: 552px; display: grid; align-items: end; border-radius: 8px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(4, 10, 8, .02) 0%, rgba(4, 10, 8, .44) 46%, rgba(4, 10, 8, .88) 100%), url("/assets/new666-hero.png") center / cover no-repeat; box-shadow: 0 22px 50px rgba(7, 16, 13, .16); }
.hero-copy { padding: 32px; color: #fff; }
.cat { display: inline-flex; min-height: 24px; align-items: center; padding: 0 9px; color: #fff; background: var(--red); border-radius: 4px; font-size: 11px; font-weight: 950; text-transform: uppercase; }
.hero-copy h1 { width: min(660px, 100%); margin-top: 14px; font-size: 42px; line-height: 1.05; font-weight: 950; }
.hero-copy p { width: min(560px, 100%); margin-top: 12px; color: rgba(255,255,255,.84); font-size: 15px; }
.rail { display: grid; gap: 18px; }
.panel { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.panel-head { min-height: 46px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; border-bottom: 2px solid var(--red); }
.panel-head h2 { color: var(--red); font-size: 14px; font-weight: 950; text-transform: uppercase; }
.rank-list, .event-list { display: grid; gap: 0; padding: 12px 14px 14px; }
.rank-item { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rank-item:last-child { border-bottom: 0; }
.rank-item b { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 6px; color: #fff; background: var(--green); font-size: 13px; }
.rank-item h3 { font-size: 14px; line-height: 1.35; font-weight: 900; }
.rank-item span, .event-card span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; font-weight: 700; }
.event-card { display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.event-card:last-child { border-bottom: 0; }
.datebox { min-height: 52px; display: grid; place-items: center; border-radius: 7px; color: #fff !important; background: var(--red); font-size: 13px !important; font-weight: 950 !important; text-align: center; line-height: 1.15; }
.event-card h3 { font-size: 14px; line-height: 1.35; font-weight: 900; }
.latest, .feature-bands, .guide-section, .article-list, .visual-band { margin-top: 34px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 16px; border-bottom: 3px solid var(--red); }
.section-title h2 { display: inline-flex; align-items: center; min-height: 42px; color: #fff; background: var(--red); padding: 0 18px; border-radius: 7px 7px 0 0; font-size: 18px; font-weight: 950; text-transform: uppercase; }
.section-title a { color: var(--red); font-size: 13px; font-weight: 900; }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.news-item { display: grid; grid-template-columns: 82px 1fr; gap: 13px; padding: 13px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.thumb { display: block; width: 100%; aspect-ratio: 1; border-radius: 7px; background: linear-gradient(135deg, var(--red), var(--green) 54%, var(--gold)); }
.news-item small, .story small { color: var(--green-dark); font-size: 11px; font-weight: 950; text-transform: uppercase; }
.news-item h3 { margin-top: 5px; font-size: 15px; line-height: 1.28; font-weight: 900; }
.feature-bands { display: grid; gap: 24px; }
.band { padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.story-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.story { display: block; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fbfcfe; }
.story .thumb { aspect-ratio: 16 / 10; border-radius: 0; background-image: linear-gradient(135deg, rgba(230,33,41,.9), rgba(10,166,95,.9)), url("/assets/new666-topics.png"); background-size: cover; background-position: center; }
.story small, .story h3 { display: block; padding-left: 13px; padding-right: 13px; }
.story small { padding-top: 12px; }
.story h3 { padding-top: 7px; padding-bottom: 14px; font-size: 16px; line-height: 1.3; font-weight: 900; }
.visual-band { display: grid; grid-template-columns: .95fr 1.05fr; gap: 24px; align-items: center; padding: 22px; border-radius: 8px; border: 1px solid var(--line); background: #fff; }
.visual-band img { border-radius: 8px; aspect-ratio: 16 / 10; object-fit: cover; }
.visual-band h2 { margin-top: 13px; font-size: clamp(28px, 4vw, 46px); line-height: 1.03; font-weight: 950; }
.visual-band p { margin-top: 12px; color: var(--muted); font-weight: 650; }
.visual-band a { display: inline-flex; margin-top: 16px; color: var(--red); font-size: 13px; font-weight: 950; text-transform: uppercase; }
.guide-section { padding: 30px; border-radius: 8px; background: linear-gradient(135deg, #07100d, #0c633e); color: #fff; }
.guide-layout { display: grid; grid-template-columns: .95fr 1.05fr; gap: 26px; align-items: center; }
.guide-layout h2 { font-size: clamp(28px, 4vw, 46px); line-height: 1.03; font-weight: 950; }
.guide-layout p { margin-top: 12px; color: rgba(255,255,255,.78); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.step { padding: 18px; border-radius: 8px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); }
.step b { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 7px; color: var(--dark); background: var(--gold); }
.step h3 { margin-top: 14px; font-size: 18px; }
.step span { display: block; margin-top: 7px; color: rgba(255,255,255,.72); font-size: 13px; line-height: 1.5; }
.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.article-card { padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.article-card time { color: var(--green-dark); font-size: 12px; font-weight: 950; }
.article-card h3 { margin-top: 10px; font-size: 20px; line-height: 1.25; font-weight: 950; }
.article-card p { margin-top: 10px; color: var(--muted); font-size: 14px; }
.article-card a { display: inline-flex; margin-top: 14px; color: var(--red); font-size: 13px; font-weight: 950; text-transform: uppercase; }
.article-card.large { min-height: 230px; }
.page-hero { display: grid; grid-template-columns: 1fr .82fr; gap: 24px; align-items: end; min-height: 420px; padding: 28px; border-radius: 8px; color: #fff; background: linear-gradient(135deg, #07100d, #0a5738); overflow: hidden; }
.page-hero h1 { margin-top: 14px; font-size: clamp(34px, 5vw, 62px); line-height: 1.02; font-weight: 950; }
.page-hero p { width: min(640px, 100%); margin-top: 13px; color: rgba(255,255,255,.82); font-size: 16px; }
.page-hero img { aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; box-shadow: 0 24px 54px rgba(0,0,0,.28); }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; margin-top: 24px; margin-bottom: 54px; }
.detail-main { display: grid; gap: 16px; }
.detail-block { padding: 24px; border-radius: 8px; border: 1px solid var(--line); background: #fff; }
.detail-block span { color: var(--red); font-size: 34px; line-height: 1; font-weight: 950; }
.detail-block h2 { margin-top: 12px; font-size: 26px; line-height: 1.15; font-weight: 950; }
.detail-block p { margin-top: 10px; color: var(--muted); font-weight: 650; }
.side-panel { position: sticky; top: 72px; display: grid; gap: 9px; padding: 18px; border-radius: 8px; border: 1px solid var(--line); background: #fff; }
.side-panel h2 { margin: 8px 0 4px; color: var(--red); font-size: 14px; font-weight: 950; text-transform: uppercase; }
.side-panel a { padding: 10px 0; border-bottom: 1px solid var(--line); color: #27313a; font-size: 14px; font-weight: 850; line-height: 1.35; }
.footer { margin-top: 50px; color: #dce7df; background: var(--dark); }
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr 1fr; gap: 34px; padding: 46px 0; }
.footer h3 { color: var(--gold); font-size: 16px; font-weight: 950; text-transform: uppercase; }
.footer p { margin-top: 12px; color: #b7c8bd; }
.footer a { display: block; margin-top: 10px; color: #e8f4ec; font-weight: 800; }
.copyright { min-height: 48px; display: grid; place-items: center; border-top: 1px solid rgba(255,255,255,.12); color: #93a99b; font-size: 13px; text-align: center; }
@media (max-width: 1000px) {
  .top-grid, .visual-band, .guide-layout, .page-hero, .detail-layout { grid-template-columns: 1fr; }
  .rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-grid, .story-row, .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .side-panel { position: static; }
}
@media (max-width: 680px) {
  .wrap { width: min(100% - 28px, var(--max)); }
  .utility-inner { align-items: flex-start; flex-direction: column; padding: 10px 0; gap: 10px; }
  .search { width: 100%; }
  .masthead { padding: 26px 0; }
  .logo { font-size: 34px; }
  .logo-mark { width: 46px; height: 46px; font-size: 16px; }
  .nav { justify-content: flex-start; gap: 18px; }
  .ticker { align-items: flex-start; flex-direction: column; padding: 12px 14px; }
  .hero-card { min-height: 430px; background-position: 63% center; }
  .hero-copy { padding: 22px; }
  .hero-copy h1 { font-size: 34px; }
  .rail, .news-grid, .story-row, .steps, .article-grid { grid-template-columns: 1fr; }
  .guide-section, .visual-band, .page-hero { padding: 18px; }
  .page-hero h1 { font-size: 34px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* codex mobile fit 20260706 */
html,body{overflow-x:hidden;max-width:100vw}
@media(max-width:640px){.wrap{max-width:calc(100vw - 28px)}.page-hero h1,.detail-block h2,.article-card h3{max-width:100%;white-space:normal;overflow-wrap:anywhere;word-break:break-all;line-height:1.16}.page-hero h1{font-size:24px!important}.detail-block h2{font-size:22px!important}.article-card h3{font-size:18px!important}.page-hero p,.detail-block p,.article-card p{max-width:100%;white-space:normal;overflow-wrap:anywhere;word-break:break-all;font-size:14px}}
/* /codex mobile fit 20260706 */
