@font-face {
  font-family: 'Kalpurush';
  src: url('../fonts/Kalpurush.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary-color: #c8102e;
  --dark-color: #111;
  --light-bg: #f4f4f4;
  --border-color: #e0e0e0;
  --font-main: 'Kalpurush', Arial, sans-serif;
  --max-width: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; }
body {
  font-family: var(--font-main);
  font-size: 1.6rem;
  line-height: 1.7;
  color: var(--dark-color);
  background: #fff;
  word-break: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 15px; }

.topbar { background: var(--dark-color); color: #fff; font-size: 1.3rem; padding: 6px 0; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.topbar a { color: #fff; }

.main-header { padding: 15px 0; border-bottom: 1px solid var(--border-color); }
.main-header .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.logo img { max-height: 55px; }

.search-form { display: flex; }
.search-form input { padding: 8px 10px; border: 1px solid var(--border-color); font-family: var(--font-main); font-size: 1.4rem; }
.search-form button { padding: 8px 14px; background: var(--primary-color); color: #fff; border: none; cursor: pointer; }

.main-nav { background: var(--primary-color); position: relative; }
.main-nav ul { display: flex; flex-wrap: wrap; }
.main-nav a { display: block; color: #fff; padding: 12px 16px; font-size: 1.5rem; white-space: nowrap; }
.main-nav a:hover { background: rgba(0,0,0,0.2); }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 2.4rem; cursor: pointer; padding: 8px; }

.breaking-news { display: flex; align-items: center; background: #fff; border-bottom: 2px solid var(--primary-color); }
.breaking-label { background: var(--primary-color); color: #fff; padding: 8px 14px; font-weight: bold; flex-shrink: 0; font-size: 1.4rem; }
.breaking-ticker { overflow: hidden; white-space: nowrap; flex: 1; position: relative; }
.breaking-ticker ul { display: inline-block; animation: ticker 30s linear infinite; padding-left: 100%; }
.breaking-ticker li { display: inline-block; padding: 8px 30px 8px 0; font-size: 1.4rem; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

.section-title { display: flex; align-items: center; border-left: 4px solid var(--primary-color); padding-left: 10px; margin: 25px 0 15px; font-size: 2rem; font-weight: bold; }

.hero-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.hero-main img { width: 100%; border-radius: 4px; }
.hero-main h1 { font-size: 2.2rem; margin: 12px 0 8px; }
.hero-main p { color: #444; }
.hero-sub-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin-top: 15px; }
.news-card-sm h3 { font-size: 1.5rem; margin-top: 8px; }

.sidebar-box { border: 1px solid var(--border-color); }
.sidebar-box .tabs { display: flex; }
.sidebar-box .tabs button { flex: 1; padding: 10px; background: var(--light-bg); border: none; cursor: pointer; font-family: var(--font-main); font-size: 1.4rem; }
.sidebar-box .tabs button.active { background: var(--primary-color); color: #fff; }
.sidebar-list { padding: 10px; }
.sidebar-list li { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border-color); }
.sidebar-list img { width: 70px; height: 55px; object-fit: cover; border-radius: 3px; flex-shrink: 0; }
.sidebar-list h4 { font-size: 1.4rem; }

.news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.news-card img { width: 100%; height: 150px; object-fit: cover; border-radius: 4px; }
.news-card h3 { font-size: 1.5rem; margin-top: 8px; }
.news-card .meta { font-size: 1.2rem; color: #777; margin-top: 4px; }

.quote-card { background: var(--light-bg); padding: 15px; border-radius: 4px; }
.quote-card p { font-size: 1.5rem; margin-bottom: 10px; }

.news-details h1 { font-size: 2.4rem; margin: 10px 0; }
.news-details .meta { color: #777; font-size: 1.3rem; margin-bottom: 10px; }
.news-thumb { width: 100%; max-height: 450px; object-fit: cover; border-radius: 4px; margin-bottom: 15px; }
.news-content { font-size: 1.7rem; line-height: 1.9; }

.pagination { display: flex; gap: 8px; margin: 20px 0; flex-wrap: wrap; }
.pagination a { padding: 8px 14px; border: 1px solid var(--border-color); border-radius: 4px; }
.pagination a.active { background: var(--primary-color); color: #fff; }

.site-footer { background: var(--dark-color); color: #fff; padding: 20px 0; margin-top: 30px; text-align: center; font-size: 1.4rem; }

@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  html { font-size: 56%; }
  .nav-toggle { display: block; }
  .main-nav ul {
    display: none; flex-direction: column; position: absolute;
    top: 100%; left: 0; right: 0; background: var(--primary-color); z-index: 100;
  }
  .main-nav ul.show { display: flex; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-sub-grid { grid-template-columns: 1fr; }
  .main-header .container { justify-content: center; text-align: center; }
}
@media (max-width: 480px) {
  html { font-size: 50%; }
  .news-grid { grid-template-columns: 1fr; }
  .logo img { max-height: 40px; }
  .news-details h1 { font-size: 2rem; }
}