:root {
  --hd-red: #b91c1c;
  --hd-red-dark: #7f1010;
  --hd-navy: #111827;
  --hd-gray: #6b7280;
  --hd-line: #e5e7eb;
}

body {
  font-family: "Segoe UI", "Noto Sans", system-ui, sans-serif;
  color: #1f2937;
  background: #fff;
}
body.lang-hi {
  font-family: "Noto Sans Devanagari", "Mukta", "Segoe UI", sans-serif;
}

a {
  color: var(--hd-red);
  text-decoration: none;
}
a:hover {
  color: var(--hd-red-dark);
  text-decoration: underline;
}

img {
  max-width: 100%;
}

/* ---------- Top utility bar ---------- */
.hd-topbar {
  background: var(--hd-navy);
  color: #d1d5db;
  font-size: 0.82rem;
  padding: 0.35rem 0;
}
.hd-topbar a {
  color: #e5e7eb;
}
.hd-topbar .lang-switch .btn {
  font-weight: 700;
  border-radius: 999px;
  padding: 0.05rem 0.55rem;
  line-height: 1.4;
}
.hd-topbar .lang-switch .btn.active {
  background: var(--hd-red);
  border-color: var(--hd-red);
  color: #fff;
}

/* ---------- Header ---------- */
.hd-header {
  background: #fff;
  border-bottom: 1px solid var(--hd-line);
}
.hd-logo img {
  height: 44px;
  width: auto;
}
.hd-date-line {
  font-size: 0.8rem;
  color: var(--hd-gray);
}
.hd-search-form .form-control {
  border-radius: 999px 0 0 999px;
  border-right: 0;
  min-width: 190px;
}
.hd-search-form .btn {
  border-radius: 0 999px 999px 0;
  background: var(--hd-red);
  border-color: var(--hd-red);
  color: #fff;
}

/* ---------- Navbar ---------- */
.hd-navbar {
  background: var(--hd-red);
  position: sticky;
  top: 0;
  z-index: 1030;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}
.hd-navbar .navbar-brand {
  display: none;
} /* logo already in header */
.hd-navbar .nav-link {
  color: #fecaca !important;
  font-weight: 600;
  padding: 0.85rem 1rem !important;
  text-transform: uppercase;
  font-size: 0.86rem;
}
.hd-navbar .nav-link:hover,
.hd-navbar .nav-link.active {
  color: #fff !important;
  box-shadow: inset 0 -3px 0 #fff;
}
.hd-navbar .dropdown-menu {
  border-radius: 0;
  border-top: 2px solid var(--hd-red);
}

/* ---------- Breaking news ticker ---------- */
.hd-ticker {
  background: #fff7ed;
  border-bottom: 1px solid #fed7aa;
  overflow: hidden;
}
.hd-ticker .ticker-label {
  background: var(--hd-red);
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 0.45rem 0.9rem;
  white-space: nowrap;
}
.hd-ticker .ticker-wrap {
  overflow: hidden;
  position: relative;
  flex: 1;
}
.hd-ticker .ticker-items {
  display: inline-block;
  white-space: nowrap;
  padding: 0.45rem 0 0.45rem 100%;
  animation: hd-scroll 40s linear infinite;
}
.hd-ticker:hover .ticker-items {
  animation-play-state: paused;
}
.hd-ticker .ticker-items a {
  color: #7c2d12;
  margin-right: 3rem;
  font-size: 0.9rem;
}
@keyframes hd-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

/* ---------- Hero slider ---------- */
.hd-hero .carousel-item img {
  height: 420px;
  object-fit: cover;
  width: 100%;
}
.hd-hero .carousel-caption {
  text-align: left;
  left: 4%;
  right: 4%;
  bottom: 1.25rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(transparent, rgba(17, 24, 39, 0.92));
  border-radius: 0.5rem;
}
.hd-hero .carousel-caption h5 {
  font-weight: 800;
}
.hd-hero .badge-cat {
  background: var(--hd-red);
}

/* ---------- Section headings ---------- */
.hd-section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.75rem 0 1rem;
}
.hd-section-title h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.hd-section-title::before {
  content: "";
  width: 6px;
  height: 26px;
  background: var(--hd-red);
  border-radius: 3px;
  display: inline-block;
}
.hd-section-title .view-all {
  margin-left: auto;
  font-size: 0.85rem;
}

/* ---------- Cards ---------- */
.card {
  border: 1px solid var(--hd-line);
  border-radius: 0.6rem;
  transition:
    box-shadow 0.18s ease,
    transform 0.18s ease;
}
.card:hover {
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.12);
}
.hd-card-img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
  background: #f3f4f6;
}
.card-title {
  font-weight: 700;
  line-height: 1.35;
}
.card-title a {
  color: inherit;
}
.card-title a:hover {
  color: var(--hd-red);
  text-decoration: none;
}
.badge-cat {
  background: var(--hd-red);
  color: #fff;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.35em 0.7em;
}
.badge-cat:hover {
  background: var(--hd-red-dark);
  color: #fff;
  text-decoration: none;
}
.hd-card-meta {
  font-size: 0.78rem;
  color: var(--hd-gray);
}

/* Horizontal list item (sidebar / latest) */
.hd-list-item {
  display: flex;
  gap: 0.85rem;
  padding: 0.85rem 0;
  border-bottom: 1px dashed var(--hd-line);
}
.hd-list-item:last-child {
  border-bottom: 0;
}
.hd-list-item img {
  width: 96px;
  height: 66px;
  object-fit: cover;
  border-radius: 0.35rem;
  flex-shrink: 0;
  background: #f3f4f6;
}
.hd-list-item h6 {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 0.15rem;
  line-height: 1.35;
}
.hd-list-item h6 a {
  color: inherit;
}
.hd-list-item h6 a:hover {
  color: var(--hd-red);
  text-decoration: none;
}

/* Trending numbered list */
.hd-trending-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px dashed var(--hd-line);
  align-items: flex-start;
}
.hd-trending-num {
  font-size: 1.4rem;
  font-weight: 800;
  color: #d1d5db;
  line-height: 1;
  min-width: 1.6rem;
}
.hd-trending-item h6 {
  font-size: 0.88rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.35;
}
.hd-trending-item h6 a {
  color: inherit;
}
.hd-trending-item h6 a:hover {
  color: var(--hd-red);
  text-decoration: none;
}

/* Sidebar widgets */
.hd-widget {
  background: #fff;
  border: 1px solid var(--hd-line);
  border-radius: 0.6rem;
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.5rem;
}
.hd-widget h5 {
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  border-left: 5px solid var(--hd-red);
  padding-left: 0.6rem;
  margin-bottom: 1rem;
}

/* Newsletter band */
.hd-newsletter {
  background: var(--hd-navy);
  color: #e5e7eb;
  border-radius: 0.6rem;
  padding: 2rem;
}
.hd-newsletter h3 {
  font-weight: 800;
}
.hd-newsletter .form-control {
  border-radius: 999px 0 0 999px;
}
.hd-newsletter .btn {
  border-radius: 0 999px 999px 0;
  background: var(--hd-red);
  border-color: var(--hd-red);
}

/* ---------- Single article ---------- */
.hd-article-title {
  font-weight: 800;
  line-height: 1.3;
}
.hd-article-body {
  font-size: 1.06rem;
  line-height: 1.85;
}
.hd-article-body p {
  margin-bottom: 1.15rem;
}
.hd-article-body img {
  border-radius: 0.5rem;
}
.hd-article-meta {
  font-size: 0.85rem;
  color: var(--hd-gray);
}

.share-buttons a.btn {
  width: 42px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.share-wa {
  background: #25d366;
}
.share-fb {
  background: #1877f2;
}
.share-tw {
  background: #0f1419;
}
.share-tg {
  background: #229ed9;
}

.tag-chip {
  display: inline-block;
  background: #fef2f2;
  color: var(--hd-red);
  border: 1px solid #fecaca;
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  margin: 0 0.35rem 0.45rem 0;
}
.tag-chip:hover {
  background: var(--hd-red);
  color: #fff;
  text-decoration: none;
}

/* Comments */
.comment-item {
  border: 1px solid var(--hd-line);
  border-radius: 0.5rem;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
}
.comment-replies {
  margin-top: 0.9rem;
  margin-left: 1.6rem;
  border-left: 3px solid #fecaca;
  padding-left: 1rem;
}
.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--hd-red);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

/* ---------- Footer ---------- */
.hd-footer {
  background: var(--hd-navy);
  color: #9ca3af;
  margin-top: 3rem;
}
.hd-footer h6 {
  color: #fff;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}
.hd-footer a {
  color: #9ca3af;
}
.hd-footer a:hover {
  color: #fff;
  text-decoration: none;
}
.hd-footer .footer-links li {
  margin-bottom: 0.45rem;
}
.hd-footer-bottom {
  border-top: 1px solid #374151;
  font-size: 0.83rem;
}
.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #374151;
  color: #e5e7eb;
  margin-right: 0.4rem;
}
.social-icon:hover {
  background: var(--hd-red);
  color: #fff;
}

/* Back to top */
#backToTop {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1050;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--hd-red);
  color: #fff;
  border: none;
  display: none;
  box-shadow: 0 6px 16px rgba(185, 28, 28, 0.4);
}
#backToTop.show {
  display: block;
}

/* Ad slot placeholder */
.ad-slot {
  background: #f9fafb;
  border: 1px dashed #d1d5db;
  color: #9ca3af;
  font-size: 0.75rem;
  text-align: center;
  padding: 1.5rem 0.5rem;
  border-radius: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Category page header */
.page-head {
  background: linear-gradient(90deg, var(--hd-red), #7f1010);
  color: #fff;
  border-radius: 0.6rem;
  padding: 1.6rem 1.8rem;
  margin-bottom: 1.6rem;
}
.page-head h1 {
  font-weight: 800;
  margin: 0;
  font-size: 1.7rem;
}
.page-head p {
  margin: 0.35rem 0 0;
  opacity: 0.85;
}

/* Hindi typography tweaks when active */
body.lang-hi .card-title,
body.lang-hi .hd-article-title,
body.lang-hi .hd-section-title h2 {
  letter-spacing: 0;
  line-height: 1.45;
}
