@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@400;500;600;700&family=Hind:wght@400;500;600;700&display=swap');

:root {
  --brand-red: #d82027;
  --brand-red-dark: #b71c22;
  --brand-red-soft: #fde8e9;
  --text-main: #1a1a1a;
  --text-muted: #666666;
  --border-soft: #e6e6e6;
  --bg-page: #ffffff;
  --bg-soft: #f7f7f7;
  --nav-highlight: #e8f5e9;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: 'Noto Sans Devanagari', 'Hind', sans-serif;
  font-size: 16px;
  color: var(--text-main);
  background: var(--bg-page);
  line-height: 1.7;
}

a,
a:focus,
a:hover {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

/* ========== Header ========== */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border-soft);
  position: sticky;
  top: 0;
  z-index: 1030;
}

.brand-logo .header-logo-img {
  max-height: 52px;
  width: auto;
  object-fit: contain;
}

.brand-date {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.utility-item {
  color: var(--text-main);
  font-size: 12px;
  line-height: 1.2;
}

.utility-item i {
  display: block;
  font-size: 20px;
  color: var(--brand-red);
  margin-bottom: 2px;
}

.header-search .input-group {
  border: 1px solid var(--border-soft);
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  min-width: 200px;
}

.header-search .form-control,
.header-search .input-group-text {
  border: 0;
  box-shadow: none;
  font-size: 14px;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}

.header-search .form-control:focus {
  box-shadow: none;
}

/* ========== Main Nav ========== */
.main-nav {
  border-top: 1px solid var(--border-soft);
  background: #fff;
}

.main-nav .nav-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 0;
}

.main-nav .nav-scroll::-webkit-scrollbar {
  display: none;
}

.main-nav .nav-link {
  color: var(--text-main);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  padding: 0.65rem 0.9rem;
  border-radius: 0;
  position: relative;
}

.main-nav .nav-link:hover {
  color: var(--brand-red);
  background: var(--brand-red-soft);
}

.main-nav .nav-link.active {
  background: var(--brand-red);
  color: #fff !important;
}

.main-nav .nav-link.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--brand-red-dark);
}

.list-group-item.active-nav {
  background: var(--brand-red);
  color: #fff;
  border-color: var(--brand-red);
}

/* ========== Breaking news ========== */
.breaking-bar {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border-soft);
}

.breaking-label {
  display: inline-block;
  background: var(--brand-red);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  white-space: nowrap;
}

.breaking-track {
  overflow: hidden;
  white-space: nowrap;
}

.breaking-track a {
  font-weight: 600;
  font-size: 14px;
  margin-right: 1.5rem;
}

.breaking-track a:hover {
  color: var(--brand-red);
}

/* ========== Section headings ========== */
.section-heading {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 1rem;
  padding-left: 0.65rem;
  border-left: 4px solid var(--brand-red);
  line-height: 1.45;
}

.section-heading a:hover {
  color: var(--brand-red);
}

.heading {
  display: flex;
  align-items: center;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 1rem;
  padding: 0 0 0 0.65rem;
  border-left: 4px solid var(--brand-red);
  background: transparent;
  line-height: 1.45;
}

/* ========== Hero / featured ========== */
.hero-feature {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 4px;
  background: #111;
  aspect-ratio: 16 / 10;
}

.hero-feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.hero-feature:hover img {
  transform: scale(1.03);
}

.hero-feature .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.25) 45%, rgba(0, 0, 0, 0.05) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem 1.1rem;
}

.hero-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(216, 32, 39, 0.95);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 2px;
  letter-spacing: 0.02em;
}

.hero-feature .hero-title {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.55;
  margin: 0;
}

@media (min-width: 992px) {
  .hero-feature .hero-title {
    font-size: 1.65rem;
  }
}

/* ========== News media rows ========== */
.news-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border-soft);
}

.news-item:last-child {
  border-bottom: 0;
}

.news-item-thumb {
  flex: 0 0 96px;
  width: 96px;
  height: 68px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-soft);
}

.news-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-item-body {
  flex: 1;
  min-width: 0;
}

.news-item-title {
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.55;
  margin: 0 0 0.35rem;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-item:hover .news-item-title {
  color: var(--brand-red);
}

.news-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.news-item-sm .news-item-thumb {
  flex: 0 0 72px;
  width: 72px;
  height: 54px;
}

.news-item-sm .news-item-title {
  font-size: 1.05rem;
  line-height: 1.5;
  -webkit-line-clamp: 2;
}

/* Stacked list under hero */
.hero-stack .news-item {
  padding: 0.75rem 0;
}

/* Home grid columns */
.home-main {
  padding-top: 1.25rem;
  padding-bottom: 1.5rem;
}

.home-col-divider {
  border-left: 1px solid var(--border-soft);
}

@media (max-width: 991.98px) {
  .home-col-divider {
    border-left: 0;
    border-top: 1px solid var(--border-soft);
    margin-top: 1rem;
    padding-top: 1rem;
  }
}

.must-read-box {
  background: #fff;
}

.ad-slot {
  margin-top: 1rem;
}

.ad-slot img,
img.prachar {
  width: 100%;
  margin: 0.5rem 0;
  border-radius: 4px;
}

/* Category card grid (lower sections) */
.cat-card {
  display: block;
  margin-bottom: 1.25rem;
}

.cat-card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 0.6rem;
  background: var(--bg-soft);
}

.cat-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.55;
  margin: 0 0 0.4rem;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cat-card:hover .cat-card-title {
  color: var(--brand-red);
}

.cat-card-excerpt {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.section-block {
  padding: 0.5rem 0 1.25rem;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 0.5rem;
}

.section-block:last-of-type {
  border-bottom: 0;
}

/* Legacy class bridges */
.news-thumb {
  width: 96px;
  height: 68px;
  object-fit: cover;
  border-radius: 4px;
  margin-right: 0.75rem;
  float: left;
}

.sub-heading,
.caption-heading,
.side-story,
.side-story a {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.55;
  color: var(--text-main);
  font-family: inherit;
}

.caption-text,
.article-detail {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.side-story .fa,
.side-story .bi {
  color: var(--brand-red);
  margin-right: 0.35rem;
}

/* Owl carousel overrides */
.owl-carousel .item.items {
  border: 0;
}

.owl-carousel .items img,
.crousal-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 4px;
}

.owl-nav .owl-prev,
.owl-nav .owl-next {
  position: absolute;
  top: 40%;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(216, 32, 39, 0.9) !important;
  color: #fff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px !important;
}

.owl-nav .owl-prev {
  left: 8px;
}

.owl-nav .owl-next {
  right: 8px;
}

/* ========== Article / category pages ========== */
.article {
  min-height: 400px;
}

.article-heading {
  font-size: 1.9rem;
  font-weight: 700;
  display: block;
  border-left: 4px solid var(--brand-red);
  padding: 0.25rem 0 0.25rem 0.85rem;
  margin-bottom: 0.75rem;
  line-height: 1.5;
  font-family: inherit;
}

.article-img {
  width: 100%;
  max-width: 480px;
  height: auto;
  float: left;
  margin: 0 1.25rem 1rem 0;
  border-radius: 4px;
  object-fit: cover;
}

.article-detail {
  color: var(--text-main);
  font-size: 1.1rem;
  line-height: 1.85;
}

/* ========== Pagination ========== */
.news-pagination-wrap {
  padding-top: 1rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--border-soft);
  display: flex;
  justify-content: center;
}

.news-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-pagination .page-item {
  display: inline-flex;
  margin: 0;
  padding: 0;
}

.news-pagination .page-item > a,
.news-pagination .page-item > span,
.news-pagination .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 0.75rem;
  margin: 0;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  color: var(--text-main) !important;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none !important;
  box-shadow: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.news-pagination .page-item > a:hover,
.news-pagination .page-link:hover {
  background: var(--brand-red-soft);
  border-color: var(--brand-red);
  color: var(--brand-red) !important;
  transform: translateY(-1px);
}

.news-pagination .page-item.active > span,
.news-pagination .page-item.active > a,
.news-pagination .page-item.active .page-link {
  background: var(--brand-red) !important;
  border-color: var(--brand-red) !important;
  color: #fff !important;
  cursor: default;
  transform: none;
}

.news-pagination .page-item.disabled > span,
.news-pagination .page-item.disabled > a {
  opacity: 0.45;
  pointer-events: none;
  background: #f5f5f5;
}

.article-detail p {
  margin-bottom: 1rem;
}

.date-cat {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 13px;
}

.date-cat span {
  background: var(--brand-red);
  color: #fff;
  padding: 0.15rem 0.55rem;
  font-size: 12px;
  margin-right: 0.5rem;
  border-radius: 2px;
  font-weight: 600;
}

.fix-height-image,
.fix-cat-height {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
}

.cat-list-item {
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-soft);
}

.cat-list-item:last-child {
  border-bottom: 0;
}

.related-news-heading {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.55;
}

.news-item-title.no-clamp {
  -webkit-line-clamp: unset;
  display: block;
  overflow: visible;
}

.related-news-heading a:hover {
  color: var(--brand-red);
}

.video-iframe {
  height: 350px;
  width: 100%;
  border: 1px solid var(--border-soft);
  border-radius: 4px;
}

/* ========== Footer ========== */
.site-footer,
#footer {
  margin-top: 2.5rem;
  color: #d8d8d8;
  background: linear-gradient(180deg, #1b1b1b 0%, #121212 55%, #0e0e0e 100%);
}

.footer-top {
  background: linear-gradient(90deg, #b71c22 0%, #d82027 45%, #8e1419 100%);
  color: #fff;
}

.footer-brand .footer-logo {
  height: 48px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  background: #fff;
  border-radius: 4px;
  padding: 4px 8px;
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  color: #fff;
}

.footer-brand-text strong {
  font-size: 1.15rem;
  font-weight: 700;
}

.footer-brand-text small {
  font-size: 0.8rem;
  opacity: 0.9;
  margin-top: 2px;
}

.footer-social-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff !important;
  font-size: 1.1rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.footer-social-btn:hover {
  background: #fff;
  color: var(--brand-red) !important;
  transform: translateY(-2px);
}

.footer-categories {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.footer-section-title,
.footer-heading {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 1rem;
  padding-bottom: 0.55rem;
  position: relative;
  display: inline-block;
}

.footer-section-title::after,
.footer-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 36px;
  height: 3px;
  background: var(--brand-red);
  border-radius: 2px;
}

.footer-cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.65rem;
}

.footer-cat-list a {
  display: inline-block;
  padding: 0.35rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #e6e6e6 !important;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.2s ease;
}

.footer-cat-list a:hover {
  background: var(--brand-red);
  border-color: var(--brand-red);
  color: #fff !important;
}

.footer-main {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-col-body,
.footer-col-body p {
  color: #bdbdbd;
  font-size: 0.92rem;
  line-height: 1.65;
}

.footer-col-body p:last-child {
  margin-bottom: 0;
}

.flink ul,
.footer-links {
  padding: 0;
  margin: 0;
  list-style: none;
}

.flink li,
.footer-links li {
  padding: 0;
  margin: 0 0 0.55rem;
}

.flink a,
.footer-links a,
#footer a {
  color: #cfcfcf;
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.flink a:hover,
.footer-links a:hover,
#footer a:hover {
  color: #fff;
}

.footer-links a {
  display: inline-block;
  position: relative;
  padding-left: 0.9rem;
}

.footer-links a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-red);
}

.footer-links a:hover {
  padding-left: 1.05rem;
  color: #fff;
}

.flink h4,
.flink h5,
.flink strong {
  color: #fff;
  margin-bottom: 0.75rem;
  display: block;
}

.footer-bottom {
  background: #0a0a0a;
}

.footer-copy {
  color: #9a9a9a;
  font-size: 0.85rem;
}

.footer-bottom-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  padding: 0;
  margin: 0;
}

.footer-bottom-links a {
  color: #b0b0b0 !important;
  font-size: 0.85rem;
  font-weight: 600;
}

.footer-bottom-links a:hover {
  color: #fff !important;
}

/* ========== Responsive ========== */
@media (max-width: 767.98px) {
  .brand-logo .header-logo-img {
    max-height: 40px;
  }

  .hero-feature .hero-title {
    font-size: 1.05rem;
  }

  .article-img {
    float: none;
    margin: 0 0 1rem;
    max-width: 100%;
  }

  .video-iframe {
    height: 220px;
  }

  .news-item-thumb {
    flex: 0 0 84px;
    width: 84px;
    height: 60px;
  }
}
