:root {
  --kbd-black: #151515;
  --kbd-red: #df2e2f;
  --kbd-red-dark: #b81519;
  --kbd-blue: #486995;
  --kbd-gold: #f3c75c;
  --kbd-ink: #39404a;
  --kbd-muted: #687284;
  --kbd-line: #e7e9ee;
  --kbd-soft: #f6f7f9;
  --kbd-shell: min(1060px, calc(100% - 32px));
}
* { box-sizing: border-box; }
html { min-width: 320px; }
body.kbd-page {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--kbd-ink);
  background: #fff;
  font-family: Arial, "Noto Sans Bengali", "Kohinoor Bangla", sans-serif;
  line-height: 1.7;
  letter-spacing: 0;
}
.kbd-page a { color: inherit; text-decoration: none; }
.kbd-page img { display: block; max-width: 100%; }
.kbd-shell, .kbd-article, .kbd-section { width: var(--kbd-shell); margin-inline: auto; }
.kbd-header { background: var(--kbd-black); color: #fff; }
.kbd-top {
  width: var(--kbd-shell);
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.kbd-logo { display: inline-flex; flex-direction: column; gap: 2px; width: max-content; }
.kbd-logo span { font-size: 34px; line-height: 1; font-weight: 950; color: #80ec84; }
.kbd-logo span i { color: #ffb547; font-style: normal; }
.kbd-logo small { color: rgba(255,255,255,.72); font-size: 12px; font-weight: 800; }
.kbd-actions { display: flex; gap: 14px; align-items: center; }
.kbd-actions a {
  min-width: 118px;
  min-height: 42px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--kbd-blue);
  color: #fff;
  font-weight: 900;
  font-size: 14px;
}
.kbd-nav {
  min-height: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px 22px;
  padding: 0 calc((100% - min(1060px, calc(100% - 32px))) / 2);
  background: var(--kbd-red);
  color: #202020;
}
.kbd-nav a {
  position: relative;
  padding: 22px 0 18px;
  color: rgba(22, 22, 22, .72);
  font-size: 15px;
  font-weight: 950;
  white-space: nowrap;
}
.kbd-nav a:hover, .kbd-nav a.is-active { color: #141414; }
.kbd-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 13px;
  height: 3px;
  background: #3d6293;
  border-radius: 99px;
}
.kbd-hero-banner { width: 100%; background: #e5f3d1; overflow: hidden; }
.kbd-hero-banner img {
  width: 100%;
  height: clamp(180px, 31vw, 430px);
  object-fit: cover;
  object-position: center;
}
.kbd-article {
  padding: 34px 0 14px;
  font-size: 16px;
}
.kbd-home-article h1, .kbd-category-page h1 {
  margin: 0 0 16px;
  color: #414853;
  text-align: center;
  font-size: clamp(25px, 3.2vw, 34px);
  line-height: 1.25;
}
.kbd-article p { margin: 0 0 18px; }
.kbd-article strong { color: #243f68; }
.kbd-kicker {
  text-align: center;
  color: var(--kbd-red);
  font-weight: 950;
}
.kbd-highlight-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0 10px;
}
.kbd-highlight-row a, .kbd-card, .kbd-news-card, .kbd-info-panel, .kbd-side, .kbd-article-card {
  border: 1px solid var(--kbd-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(22, 27, 36, .06);
}
.kbd-highlight-row a {
  min-height: 126px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.kbd-highlight-row span, .kbd-card span {
  width: max-content;
  min-width: 42px;
  min-height: 32px;
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #fff3f3;
  color: var(--kbd-red-dark);
  font-weight: 950;
}
.kbd-highlight-row strong { color: #2b3440; font-size: 18px; }
.kbd-highlight-row small { color: var(--kbd-muted); font-size: 13px; }
.kbd-section { padding: 28px 0; }
.kbd-section-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 18px;
  border-left: 5px solid var(--kbd-red);
  padding-left: 14px;
}
.kbd-section-head h2 { margin: 0 0 5px; color: #333a45; font-size: clamp(22px, 2.4vw, 30px); }
.kbd-section-head p { margin: 0; color: var(--kbd-muted); }
.kbd-card-grid, .kbd-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.kbd-card, .kbd-news-card { padding: 20px; min-width: 0; }
.kbd-card h3, .kbd-news-card h3 { margin: 12px 0 9px; color: #2e3540; font-size: 20px; line-height: 1.35; }
.kbd-card p, .kbd-news-card p { margin: 0 0 15px; color: var(--kbd-muted); }
.kbd-card a, .kbd-news-card h3 a, .kbd-inline-button, .kbd-warning a, .kbd-tools a, .kbd-tools button, .kbd-age {
  color: var(--kbd-red-dark);
  font-weight: 950;
}
.kbd-media-band, .kbd-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  align-items: center;
  border-block: 1px solid var(--kbd-line);
}
.kbd-media-band img, .kbd-two-col img {
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(23, 24, 28, .12);
}
.kbd-media-band h2, .kbd-two-col h2, .kbd-category-page h2, .kbd-article-body h2 {
  color: #343b46;
  line-height: 1.32;
}
.kbd-media-band ul, .kbd-category-page ul, .kbd-two-col ol { padding-left: 22px; }
.kbd-news-thumb {
  width: 100%;
  aspect-ratio: 16 / 8;
  border-radius: 6px;
  background: linear-gradient(135deg, #171717, #b81519);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 950;
  font-size: 30px;
}
.kbd-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: #828a98;
  font-size: 13px;
}
.kbd-warning {
  margin-bottom: 38px;
  padding: 26px;
  border-radius: 8px;
  background: #fff6f4;
  border: 1px solid #ffd4ce;
}
.kbd-warning h2 { margin: 0 0 10px; color: var(--kbd-red-dark); }
.kbd-warning p { margin: 0 0 12px; }
.kbd-info-panel {
  padding: 20px;
  margin-top: 20px;
  background: #fbfcfe;
}
.kbd-info-panel h3 { margin: 0 0 8px; }
.kbd-related {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.kbd-related a {
  min-height: 92px;
  padding: 16px;
  border-radius: 8px;
  background: #f7f8fb;
  border: 1px solid var(--kbd-line);
}
.kbd-related strong { display: block; color: var(--kbd-red-dark); }
.kbd-related span { color: var(--kbd-muted); }
.kbd-article-hero {
  background: linear-gradient(135deg, #171717, #2b1515 58%, #b81519);
  color: #fff;
  padding: 54px 0 46px;
}
.kbd-article-hero p { max-width: 820px; margin: 0 0 14px; color: rgba(255,255,255,.82); }
.kbd-article-hero h1 { max-width: 900px; margin: 0 0 14px; font-size: clamp(28px, 4vw, 46px); line-height: 1.22; }
.kbd-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: start;
}
.kbd-article-card { padding: 26px; }
.kbd-article-body { min-width: 0; }
.kbd-lede {
  padding: 18px;
  border-left: 4px solid var(--kbd-red);
  background: #fff8f8;
  font-weight: 800;
}
.kbd-article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 15px;
}
.kbd-article-body th, .kbd-article-body td {
  border: 1px solid var(--kbd-line);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}
.kbd-article-body th { background: #f7f8fb; }
.kbd-article-body details {
  border: 1px solid var(--kbd-line);
  border-radius: 8px;
  padding: 14px 16px;
  margin: 10px 0;
}
.kbd-article-body summary { cursor: pointer; font-weight: 950; color: #2f3742; }
.kbd-alert {
  margin: 22px 0;
  padding: 18px;
  border-radius: 8px;
  border: 1px solid #ffd4ce;
  background: #fff6f4;
  color: #7b221d;
  font-weight: 850;
}
.kbd-side {
  position: sticky;
  top: 18px;
  padding: 20px;
}
.kbd-side h2 { margin: 0 0 12px; font-size: 20px; }
.kbd-side ul { list-style: none; padding: 0; margin: 0; }
.kbd-side li + li { border-top: 1px solid var(--kbd-line); }
.kbd-side a { display: block; padding: 11px 0; color: #445062; font-weight: 850; }
.kbd-prenext, .kbd-tools {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.kbd-tools a, .kbd-tools button {
  min-height: 42px;
  border: 1px solid var(--kbd-line);
  border-radius: 8px;
  background: #fff;
  padding: 0 14px;
  font: inherit;
  cursor: pointer;
}
.kbd-footer {
  margin-top: 28px;
  background: #161616;
  color: rgba(255,255,255,.78);
  border-top: 5px solid var(--kbd-red);
}
.kbd-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .7fr .7fr 1fr;
  gap: 28px;
  padding: 36px 0;
}
.kbd-logo-footer span { font-size: 32px; }
.kbd-footer p { margin: 12px 0 0; }
.kbd-footer nav { display: flex; flex-direction: column; gap: 8px; }
.kbd-footer strong { color: #fff; }
.kbd-footer a { color: rgba(255,255,255,.82); }
.kbd-age {
  display: inline-flex;
  margin-top: 12px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 6px;
  color: #fff;
}
.kbd-copy {
  padding: 15px 0;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,.10);
  font-size: 13px;
}
.kbd-dede-zone {
  padding-top: 18px;
  border-top: 1px solid var(--kbd-line);
}
.kbd-pagination { margin-top: 18px; color: var(--kbd-muted); }
@media (max-width: 900px) {
  .kbd-top { min-height: 70px; }
  .kbd-logo span { font-size: 28px; }
  .kbd-actions a { min-width: 96px; min-height: 38px; padding: 0 14px; }
  .kbd-nav { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding: 0 16px; min-height: 64px; }
  .kbd-highlight-row, .kbd-card-grid, .kbd-news-grid, .kbd-related, .kbd-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kbd-media-band, .kbd-two-col, .kbd-article-layout { grid-template-columns: 1fr; }
  .kbd-media-band img, .kbd-two-col img { width: 100%; }
  .kbd-side { position: static; }
}
@media (max-width: 560px) {
  .kbd-top { flex-direction: column; align-items: flex-start; padding: 14px 0 16px; gap: 12px; }
  .kbd-actions { width: 100%; }
  .kbd-actions a { flex: 1; }
  .kbd-hero-banner img { height: 190px; }
  .kbd-article, .kbd-section { width: min(100% - 24px, 1060px); }
  .kbd-highlight-row, .kbd-card-grid, .kbd-news-grid, .kbd-related, .kbd-footer-grid { grid-template-columns: 1fr; }
  .kbd-section-head { display: block; }
  .kbd-article-card { padding: 18px; }
}
