/*
Theme Name: Hamar Kurigram Red Green Editorial
Theme URI: https://hamarkurigram.com/
Description: Hamar Kurigram child theme with a red-green newsroom look and Bengali typography.
Author: Hamar Kurigram
Version: 1.1.9
Template: hamar-kurigram
Text Domain: hamar-kurigram-red-green
*/

:root {
  --hk-red: #d92332;
  --hk-red-dark: #b91c2a;
  --hk-green: #087a45;
  --hk-green-dark: #075b37;
  --hk-green-soft: #eef7f1;
  --hk-red-soft: #fff1f2;
  --hk-ink: #1b2720;
  --hk-muted: #617068;
  --hk-line: #dce7df;
  --hk-font-body: Inter, "Noto Sans Bengali", "Nirmala UI", sans-serif;
  --hk-font-interface: Inter, "Hind Siliguri", "Nirmala UI", sans-serif;
  --hk-font-editorial: Inter, "Hind Siliguri", "Nirmala UI", sans-serif;
}

html {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body,
input,
button,
select,
textarea {
  font-family: var(--hk-font-body);
}

body {
  color: var(--hk-ink);
  font-size: clamp(16px, calc(15.3px + 0.22vw), 18px);
  line-height: 1.78;
}

a:hover {
  color: var(--hk-red);
}

h1,
h2,
h3,
h4,
.news-card h2,
.article h1,
.article h2,
.article h3,
.section-title {
  font-family: var(--hk-font-editorial);
  font-weight: 600;
  line-height: 1.42;
  text-wrap: pretty;
}

.news-card h2 {
  margin: 12px 14px 16px;
  font-size: clamp(19px, 1.55vw, 23px);
  line-height: 1.45;
}

.news-card:first-child h2 {
  font-size: clamp(22px, 2.2vw, 28px);
}

.article h1 {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.38;
}

.section-title {
  position: relative;
  border-bottom: 2px solid var(--hk-green);
  padding-bottom: 10px;
  font-size: clamp(22px, 2.1vw, 26px);
  font-weight: 700;
  line-height: 1.4;
}

.section-title::after {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 58px;
  height: 4px;
  background: var(--hk-red);
  content: "";
}

.section-title a {
  color: var(--hk-green);
}

.section-title span,
.section-title > a,
.category,
.meta,
.utility,
.tagline,
.ticker,
.district-strip,
.latest-panel,
.pagination,
button,
input,
select,
textarea,
.newsletter,
.newsletter-form,
.epaper,
.epaper-ui,
.epaper-reader,
.e-paper,
.e-paper-ui,
.pdf-viewer,
.pdfjs-viewer {
  font-family: var(--hk-font-interface);
}

.article .entry-content,
.article .entry-content p,
.news-card p {
  font-family: var(--hk-font-body);
  line-height: 1.9;
}

.masthead {
  padding: 14px 0;
  gap: 22px;
}

.tagline {
  color: var(--hk-muted);
}

nav {
  position: relative;
  z-index: 20;
  border-top: 3px solid var(--hk-red);
  border-bottom: 3px solid var(--hk-red);
  background: var(--hk-green-dark);
  color: #fff;
}

nav .wrap > ul {
  gap: 4px;
  padding: 0;
  align-items: center;
}

nav .wrap > ul > li > a {
  display: block;
  padding: 10px 12px;
  border-radius: 3px;
  color: #fff;
  font-family: var(--hk-font-interface);
  font-weight: 500;
  transition: background-color 180ms ease, color 180ms ease;
}

nav .wrap > ul > li > a:hover,
nav .wrap > ul > li.current-menu-item > a,
nav .wrap > ul > li.current-menu-ancestor > a {
  background: var(--hk-red);
  color: #fff;
}

nav .sub-menu {
  border-top: 2px solid var(--hk-red);
  background: var(--hk-green-dark);
  color: #fff;
}

.ticker {
  align-items: center;
  border-left: 5px solid var(--hk-red);
  border-radius: 3px;
  background: var(--hk-green-dark);
  color: #fff;
}

.ticker strong {
  margin: -12px 0 -12px -16px;
  padding: 12px 14px;
  background: var(--hk-red);
  color: #fff;
}

.ticker a {
  color: #fff;
}

.ticker a:hover {
  color: #fff;
  text-decoration: underline;
}

.district-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 18px 0 28px;
  padding: 10px 12px;
  border: 1px solid var(--hk-line);
  border-left: 4px solid var(--hk-green);
  border-radius: 4px;
  background: var(--hk-green-soft);
}

.district-strip strong {
  margin-right: 4px;
  color: var(--hk-red);
}

.district-strip a {
  padding: 3px 9px;
  border-radius: 3px;
  color: var(--hk-green-dark);
  font-size: 14px;
  font-weight: 500;
}

.district-strip a:hover {
  background: var(--hk-green);
  color: #fff;
}

.front-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 26px;
  align-items: start;
}

.lead-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.lead-grid .news-card:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.lead-grid .news-card:first-child h2 {
  font-size: clamp(24px, 2.4vw, 34px);
}

.latest-panel {
  padding: 16px;
  border: 1px solid var(--hk-line);
  border-top: 4px solid var(--hk-red);
  border-radius: 5px;
  background: #f5f8f6;
}

.latest-panel h2 {
  margin: -16px -16px 8px;
  padding: 10px 14px;
  background: var(--hk-green);
  color: #fff;
  font-family: var(--hk-font-interface);
  font-weight: 700;
  font-size: 20px;
}

.latest-panel ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: hk-latest;
}

.latest-panel li {
  position: relative;
  padding: 12px 0 12px 34px;
  border-bottom: 1px solid var(--hk-line);
  counter-increment: hk-latest;
  line-height: 1.55;
}

.latest-panel li::before {
  position: absolute;
  top: 12px;
  left: 0;
  color: var(--hk-red);
  content: counter(hk-latest, decimal-leading-zero);
  font-weight: 700;
}

.latest-panel li .meta {
  display: block;
  margin-top: 3px;
  color: var(--hk-muted);
}

.news-grid,
.section-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.section-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.category-section {
  margin-top: 38px;
  padding-top: 8px;
  border-top: 1px solid var(--hk-line);
}

.news-card {
  min-width: 0;
  overflow: hidden;
  padding: 0 0 6px;
  border: 1px solid var(--hk-line);
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 2px 9px rgb(18 56 36 / 5%);
  transition: box-shadow 180ms ease, border-color 180ms ease;
}

.news-card:hover,
.news-card:focus-within {
  border-color: #b7d8c3;
  box-shadow: 0 8px 22px rgb(18 56 36 / 12%);
}

.news-card > a {
  display: block;
  overflow: hidden;
}

.news-card > a img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 360ms cubic-bezier(0.2, 0.7, 0.2, 1);
  transform: scale(1);
}

.news-card > .category,
.news-card > .meta,
.news-card > p {
  display: none;
}

.news-card .placeholder {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--hk-green-soft), #dbece1);
  color: var(--hk-green-dark);
}

.news-card h2 a:hover {
  color: var(--hk-red-dark);
}

.lead-ad-slot {
  margin-bottom: 22px;
}

.lead-ad-slot .ad-label {
  color: var(--hk-muted);
}

.lead-ad-slot .house-ad {
  border-left: 4px solid var(--hk-red);
  border-radius: 4px;
  background: var(--hk-green-soft);
  color: var(--hk-green-dark);
}

button,
input[type="submit"] {
  border-radius: 3px;
  background: var(--hk-green);
  font-family: var(--hk-font-interface);
  font-weight: 600;
  transition: background-color 180ms ease;
}

button:hover,
input[type="submit"]:hover {
  background: var(--hk-red);
}

input[type="search"],
input[type="email"],
input[type="text"],
textarea,
select {
  border-color: var(--hk-line);
  border-radius: 3px;
  font-family: var(--hk-font-interface);
}

.newsletter,
.newsletter-form,
.wpforms-container {
  font-family: var(--hk-font-interface);
}

.newsletter h2,
.newsletter-form h2 {
  color: var(--hk-green-dark);
  font-family: var(--hk-font-editorial);
}

.epaper,
.epaper-ui,
.epaper-reader,
.e-paper,
.e-paper-ui,
.pdf-viewer,
.pdfjs-viewer,
[class*="epaper"],
[class*="e-paper"],
[class*="pdf-viewer"] {
  font-family: var(--hk-font-interface);
}

.epaper h1,
.epaper h2,
.epaper-ui h1,
.epaper-ui h2,
.e-paper h1,
.e-paper h2 {
  font-family: var(--hk-font-editorial);
}

.article {
  max-width: 800px;
  margin: 35px auto;
}

.article .entry-content {
  font-size: clamp(18px, 1.25vw, 20px);
}

.article .entry-content a {
  color: var(--hk-green);
}

.article .entry-content a:hover {
  color: var(--hk-red);
}

.pagination {
  padding: 28px 0;
}

.page-numbers {
  border-color: var(--hk-line);
  border-radius: 3px;
}

.page-numbers.current,
.page-numbers:hover {
  border-color: var(--hk-green);
  background: var(--hk-green);
  color: #fff;
}

footer {
  border-top: 4px solid var(--hk-red);
  background: var(--hk-green-dark);
}

@media (hover: hover) and (pointer: fine) {
  .news-card:hover > a img,
  .news-card:focus-within > a img {
    transform: scale(1.055);
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-card,
  .news-card > a img,
  nav .wrap > ul > li > a,
  button,
  input[type="submit"] {
    transition: none;
  }

  .news-card:hover > a img,
  .news-card:focus-within > a img {
    transform: none;
  }
}

@media (max-width: 1000px) {
  .front-layout {
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 18px;
  }

  .section-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .front-layout {
    grid-template-columns: 1fr;
  }

  .lead-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lead-grid .news-card:first-child {
    grid-column: span 2;
    grid-row: auto;
  }

  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-card h2 {
    font-size: clamp(19px, 3.2vw, 22px);
  }

  .article .entry-content,
  .article .entry-content p {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .lead-grid,
  .news-grid,
  .section-grid {
    grid-template-columns: 1fr;
  }

  .lead-grid .news-card:first-child {
    grid-column: auto;
  }

  .lead-grid .news-card:first-child h2 {
    font-size: 24px;
  }

  nav .wrap > ul {
    gap: 2px;
  }

  nav .wrap > ul > li > a {
    padding: 8px 9px;
    font-size: 15px;
  }
}

/* Homepage hierarchy inspired by a modern, high-density Bengali news desk. */
.hk-top-ad {
  margin: 16px 0 22px;
}

.hk-top-ad .house-ad {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 112px;
  overflow: hidden;
  padding: 18px 22px;
  border: 1px solid #0d7448;
  border-left: 5px solid var(--hk-red);
  border-radius: 14px;
  background: radial-gradient(circle at 98% 0%, rgb(217 35 50 / 25%), transparent 26%), linear-gradient(112deg, #064b32 0%, #087a45 62%, #0b6840 100%);
  color: #fff;
  box-shadow: 0 10px 28px rgb(6 74 50 / 15%);
}

.hk-top-ad .house-ad::after {
  position: absolute;
  z-index: -1;
  top: -70px;
  right: 245px;
  width: 200px;
  height: 200px;
  border: 1px solid rgb(255 255 255 / 11%);
  border-radius: 50%;
  box-shadow: 0 0 0 22px rgb(255 255 255 / 4%), 0 0 0 44px rgb(255 255 255 / 3%);
  content: "";
  pointer-events: none;
}

.hk-top-ad .house-ad-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 17px;
  background: rgb(255 255 255 / 12%);
  font-size: 28px;
}

.hk-top-ad .house-ad-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 3px;
  min-width: 0;
}

.hk-top-ad .house-ad-kicker {
  color: #bfe5ce;
  font: 500 12px/1.4 var(--hk-font-interface);
  letter-spacing: .02em;
}

.hk-top-ad .house-ad-copy strong {
  color: #fff;
  font: 700 clamp(18px, 2vw, 23px)/1.35 var(--hk-font-editorial);
}

.hk-top-ad .house-ad-copy > span:last-child {
  color: #e0f1e6;
  font: 500 14px/1.5 var(--hk-font-interface);
}

.hk-top-ad .house-ad-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hk-top-ad .house-ad-action {
  display: grid;
  align-content: center;
  justify-items: start;
  min-width: 168px;
  min-height: 52px;
  padding: 8px 14px;
  border: 1px solid rgb(255 255 255 / 30%);
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.hk-top-ad .house-ad-action-email {
  background: rgb(255 255 255 / 12%);
}

.hk-top-ad .house-ad-action-whatsapp {
  border-color: #57d68a;
  background: #16a05a;
}

.hk-top-ad .house-ad-action-title {
  font: 600 14px/1.35 var(--hk-font-interface);
}

.hk-top-ad .house-ad-action-detail {
  color: #d7eee0;
  font: 400 11px/1.4 var(--hk-font-body);
}

.hk-top-ad .house-ad-action:hover,
.hk-top-ad .house-ad-action:focus-visible {
  transform: translateY(-2px);
  background: var(--hk-red);
  box-shadow: 0 6px 16px rgb(0 0 0 / 17%);
  color: #fff;
}

.hk-top-ad .house-ad-action:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .hk-top-ad .house-ad {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 14px;
  }

  .hk-top-ad .house-ad-icon {
    width: 50px;
    height: 50px;
  }

  .hk-top-ad .house-ad-actions {
    grid-column: 2;
  }
}

@media (max-width: 540px) {
  .hk-top-ad .house-ad {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    padding: 16px 14px;
  }

  .hk-top-ad .house-ad-icon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    font-size: 22px;
  }

  .hk-top-ad .house-ad-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .hk-top-ad .house-ad-action {
    min-width: 0;
    min-height: 50px;
    padding: 7px 9px;
  }

  .hk-top-ad .house-ad-action-title {
    font-size: 12px;
  }

  .hk-top-ad .house-ad-action-detail {
    font-size: 10px;
  }
}

.hk-topic-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  margin: 16px 0 18px;
  padding: 3px 0 7px;
  scrollbar-width: thin;
}

.hk-topic-strip strong {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 3px 0 0 3px;
  background: var(--hk-red);
  color: #fff;
  font: 600 14px/1.3 var(--hk-font-interface);
}

.hk-topic-strip a {
  flex: 0 0 auto;
  padding: 6px 12px;
  border: 1px solid var(--hk-line);
  border-radius: 99px;
  background: #f4f7f5;
  color: var(--hk-ink);
  font: 500 14px/1.3 var(--hk-font-interface);
}

.hk-topic-strip a:hover {
  border-color: var(--hk-green);
  background: var(--hk-green);
  color: #fff;
}

.hk-prayer-widget {
  position: relative;
  overflow: hidden;
  margin: 18px 0 20px;
  padding: clamp(16px, 2.2vw, 26px);
  border: 1px solid #0b7244;
  border-top: 4px solid var(--hk-red);
  border-radius: 8px;
  background: radial-gradient(circle at 93% 12%, rgb(217 35 50 / 26%), transparent 28%), linear-gradient(120deg, #064a32, #087a45 64%, #0b6640);
  color: #fff;
  box-shadow: 0 8px 22px rgb(6 74 50 / 16%);
}

.hk-prayer-widget::after {
  position: absolute;
  right: 24px;
  bottom: -75px;
  width: 220px;
  height: 220px;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 50%;
  box-shadow: 0 0 0 24px rgb(255 255 255 / 4%), 0 0 0 48px rgb(255 255 255 / 3%);
  content: "";
  pointer-events: none;
}

.hk-prayer-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 18px;
}

.hk-prayer-place {
  display: block;
  margin-bottom: 3px;
  color: #d8efe1;
  font: 500 13px/1.45 var(--hk-font-interface);
}

.hk-prayer-heading h2 {
  margin: 0;
  color: #fff;
  font: 700 clamp(22px, 2.8vw, 31px)/1.35 var(--hk-font-editorial);
}

.hk-prayer-date {
  margin-top: 6px;
  color: #e5f1e9;
  font: 14px/1.5 var(--hk-font-interface);
}

.hk-prayer-countdown {
  display: grid;
  justify-items: end;
  min-width: 195px;
  padding: 10px 14px;
  border: 1px solid rgb(255 255 255 / 24%);
  border-radius: 6px;
  background: rgb(0 51 34 / 34%);
  font-family: var(--hk-font-interface);
}

.hk-prayer-countdown > span {
  color: #d8efe1;
  font-size: 12px;
}

.hk-prayer-countdown strong {
  color: #fff;
  font-size: 17px;
}

.hk-prayer-countdown time {
  color: #fff;
  font: 700 clamp(22px, 2.2vw, 29px)/1.35 Inter, "Noto Sans Bengali", sans-serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: .03em;
}

.hk-prayer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.hk-prayer-card {
  display: grid;
  justify-items: center;
  gap: 2px;
  min-height: 96px;
  padding: 11px 8px;
  border: 1px solid rgb(13 91 55 / 10%);
  border-radius: 7px;
  background: rgb(255 255 255 / 94%);
  color: var(--hk-green-dark);
  text-align: center;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.hk-prayer-icon {
  font-size: 20px;
  line-height: 1.2;
}

.hk-prayer-name {
  font: 600 15px/1.35 var(--hk-font-interface);
}

.hk-prayer-time {
  color: #536159;
  font: 500 13px/1.4 var(--hk-font-interface);
  white-space: nowrap;
}

.hk-prayer-card.is-next {
  transform: translateY(-3px);
  border-color: #f5d4d7;
  background: var(--hk-red);
  color: #fff;
  box-shadow: 0 5px 14px rgb(0 0 0 / 13%);
}

.hk-prayer-card.is-next .hk-prayer-time {
  color: #fff;
}

.hk-prayer-note {
  position: relative;
  z-index: 1;
  margin: 10px 0 0;
  color: #deeee4;
  font: 12px/1.5 var(--hk-font-interface);
}

.hk-home-grid {
  display: grid;
  grid-template-columns: minmax(210px, .95fr) minmax(0, 2.35fr) minmax(225px, 1.05fr);
  grid-template-areas: "left center right";
  gap: 20px;
  align-items: start;
  margin: 18px 0 34px;
}

.hk-home-left { grid-area: left; }
.hk-home-center { grid-area: center; min-width: 0; }
.hk-home-right { grid-area: right; min-width: 0; }

.hk-column-title {
  margin: 0 0 12px;
  padding: 0 0 8px;
  border-bottom: 2px solid var(--hk-green);
  color: var(--hk-ink);
  font: 700 20px/1.4 var(--hk-font-editorial);
}

.hk-small-story-list,
.hk-right-story-list {
  display: grid;
  gap: 11px;
}

.hk-small-story,
.hk-right-story {
  min-width: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hk-line);
}

.hk-small-story > a,
.hk-right-story > a {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.hk-small-story img,
.hk-right-story img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 4px;
  object-fit: cover;
  transition: transform 280ms ease;
}

.hk-small-story h3,
.hk-right-story h3 {
  margin: 0;
  color: var(--hk-ink);
  font: 600 15px/1.48 var(--hk-font-editorial);
}

.hk-small-story a:hover h3,
.hk-right-story a:hover h3 {
  color: var(--hk-red-dark);
}

.hk-small-story a:hover img,
.hk-right-story a:hover img {
  transform: scale(1.04);
}

.hk-main-story {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  border-radius: 6px;
  background: var(--hk-green-dark);
  isolation: isolate;
}

.hk-main-story-image,
.hk-main-story-image img,
.hk-main-story-image .placeholder {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
}

.hk-main-story-image img {
  position: absolute;
  inset: 0;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 420ms ease;
}

.hk-main-story:hover .hk-main-story-image img,
.hk-main-story:focus-within .hk-main-story-image img {
  transform: scale(1.035);
}

.hk-main-story-caption {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 60px 20px 18px;
  background: linear-gradient(transparent, rgb(0 25 16 / 88%));
  color: #fff;
}

.hk-main-story-caption .category,
.hk-main-story-caption .category a {
  color: #e4f2e9;
  font: 500 13px/1.4 var(--hk-font-interface);
}

.hk-main-story-caption h1 {
  margin: 5px 0 0;
  color: #fff;
  font: 700 clamp(24px, 2.5vw, 34px)/1.38 var(--hk-font-editorial);
  text-wrap: balance;
}

.hk-main-story-caption h1 a:hover {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--hk-red);
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
}

.hk-home-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.hk-home-mini-grid .news-card {
  border-radius: 5px;
}

.hk-home-mini-grid .news-card h2 {
  margin: 9px 10px 12px;
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.45;
}

.hk-home-right .hk-column-title {
  border-bottom-color: var(--hk-red);
}

.hk-home-pagination {
  margin-top: 10px;
}

.hk-bottom-ticker {
  position: fixed;
  z-index: 100;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  min-height: 40px;
  border-top: 2px solid var(--hk-red);
  background: var(--hk-green-dark);
  color: #fff;
  box-shadow: 0 -3px 14px rgb(12 38 25 / 12%);
  font-family: var(--hk-font-interface);
}

.hk-bottom-ticker > strong {
  flex: 0 0 auto;
  align-self: stretch;
  display: flex;
  align-items: center;
  padding: 0 16px;
  background: var(--hk-red);
  color: #fff;
  font-size: 14px;
}

.hk-bottom-ticker-window {
  overflow: hidden;
  min-width: 0;
}

.hk-bottom-ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  min-width: max-content;
  padding: 7px 18px;
  animation: hk-headline-scroll 52s linear infinite;
}

.hk-bottom-ticker:hover .hk-bottom-ticker-track,
.hk-bottom-ticker:focus-within .hk-bottom-ticker-track {
  animation-play-state: paused;
}

.hk-bottom-ticker-track a {
  color: #fff;
  font-size: 14px;
}

.hk-bottom-ticker-track a::after {
  margin-left: 26px;
  color: #f06a75;
  content: "■";
  font-size: 10px;
}

@keyframes hk-headline-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

body.home,
body.front-page {
  padding-bottom: 42px;
}

@media (max-width: 1100px) {
  .hk-home-grid {
    grid-template-columns: minmax(190px, .9fr) minmax(0, 2fr) minmax(200px, 1fr);
    gap: 14px;
  }

  .hk-small-story > a,
  .hk-right-story > a {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 8px;
  }

  .hk-small-story h3,
  .hk-right-story h3 {
    font-size: 14px;
  }
}

@media (max-width: 900px) {
  .hk-home-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(220px, .9fr);
    grid-template-areas: "center right" "left right";
  }

  .hk-home-left {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 12px;
  }

  .hk-home-left .hk-column-title {
    grid-column: 1 / -1;
  }

  .hk-small-story-list {
    display: contents;
  }

  .hk-prayer-grid {
    gap: 8px;
  }
}

@media (max-width: 680px) {
  body.home,
  body.front-page {
    padding-bottom: 40px;
  }

  .hk-home-grid {
    grid-template-columns: 1fr;
    grid-template-areas: "center" "left" "right";
  }

  .hk-home-left {
    display: block;
  }

  .hk-small-story-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hk-main-story,
  .hk-main-story-image,
  .hk-main-story-image img,
  .hk-main-story-image .placeholder {
    min-height: 250px;
  }

  .hk-prayer-header {
    align-items: flex-start;
    gap: 12px;
  }

  .hk-prayer-countdown {
    min-width: 130px;
    padding: 8px 10px;
  }

  .hk-prayer-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
  }

  .hk-prayer-card {
    min-height: 82px;
    padding: 8px 4px;
  }

  .hk-prayer-name {
    font-size: 13px;
  }

  .hk-prayer-time {
    font-size: 11px;
  }
}

/* Two explicit time boundaries keep each daily prayer window easy to read. */
.hk-prayer-times {
  display: grid;
  gap: 2px;
  width: 100%;
}

.hk-prayer-time-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
}

.hk-prayer-time-label {
  color: #66746b;
  font: 600 11px/1.35 var(--hk-font-interface);
}

.hk-prayer-card.is-next .hk-prayer-time-label {
  color: #fff;
}

@media (max-width: 680px) {
  .hk-prayer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hk-prayer-time {
    font-size: 13px;
  }

  .hk-prayer-time-label {
    font-size: 10px;
  }
}

@media (max-width: 460px) {
  .hk-prayer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Hamar Kurigram typography: semibold news heads, medium navigation, bold features. */
h1,
h2,
h3,
h4,
.news-card h2,
.article h1,
.article h2,
.article h3,
.hk-small-story h3,
.hk-right-story h3 {
  font-family: var(--hk-font-editorial);
  font-weight: 600;
}

.section-title,
.hk-column-title,
.latest-panel h2,
.hk-main-story-caption h1,
.news-card:first-child h2,
.lead-grid .news-card:first-child h2,
.newsletter h2,
.newsletter-form h2,
.epaper h1,
.epaper h2,
.epaper-ui h1,
.epaper-ui h2,
.e-paper h1,
.e-paper h2,
.hk-prayer-heading h2 {
  font-family: var(--hk-font-editorial);
  font-weight: 700;
}

nav .wrap > ul > li > a,
nav .sub-menu a,
.category,
.district-strip,
.district-strip a,
.hk-topic-strip,
.hk-topic-strip a {
  font-family: var(--hk-font-interface);
  font-weight: 500;
}

@media (max-width: 460px) {
  .hk-prayer-header {
    display: grid;
  }

  .hk-prayer-countdown {
    grid-template-columns: 1fr auto;
    align-items: center;
    justify-items: start;
    width: 100%;
  }

  .hk-prayer-countdown > span {
    grid-column: 1;
  }

  .hk-prayer-countdown strong {
    grid-column: 1;
  }

  .hk-prayer-countdown time {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .hk-prayer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hk-home-mini-grid,
  .hk-small-story-list {
    grid-template-columns: 1fr;
  }

  .hk-small-story > a,
  .hk-right-story > a {
    grid-template-columns: 100px minmax(0, 1fr);
  }

  .hk-main-story,
  .hk-main-story-image,
  .hk-main-story-image img,
  .hk-main-story-image .placeholder {
    min-height: 220px;
  }

  .hk-main-story-caption {
    padding: 46px 14px 13px;
  }

  .hk-main-story-caption h1 {
    font-size: 23px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hk-prayer-card,
  .hk-small-story img,
  .hk-right-story img,
  .hk-main-story-image img {
    transition: none;
  }

  .hk-bottom-ticker-track {
    animation-duration: 80s;
  }
}


/* Keep narrow screens from widening when third-party ad slots inject fixed-width frames. */
@media (max-width: 480px) {
  #main {
    min-width: 0;
    overflow-x: clip;
  }
}

/* Larger, heavier type keeps the Kurigram prayer schedule readable at a glance. */
body {
  font-weight: 500;
}

.hk-prayer-place {
  color: #e9f5ee;
  font: 600 15px/1.5 var(--hk-font-interface);
}

.hk-prayer-heading h2 {
  font: 700 clamp(24px, 3vw, 34px)/1.32 var(--hk-font-interface);
}

.hk-prayer-date {
  color: #f1f7f3;
  font: 500 15px/1.55 "Noto Sans Bengali", "Nirmala UI", sans-serif;
}

.hk-prayer-countdown > span {
  color: #f1f7f3;
  font: 600 14px/1.4 var(--hk-font-interface);
}

.hk-prayer-countdown strong {
  font-size: 19px;
  font-weight: 700;
}

.hk-prayer-countdown time {
  font-size: clamp(26px, 2.5vw, 33px);
  line-height: 1.3;
  font-family: "Noto Sans Bengali", "Nirmala UI", sans-serif;
}

.hk-prayer-name {
  font: 700 16px/1.4 var(--hk-font-interface);
}

.hk-prayer-time {
  color: #35443b;
  font: 600 14px/1.45 "Noto Sans Bengali", "Nirmala UI", sans-serif;
}

.hk-prayer-note {
  color: #f1f7f3;
  font: 500 13px/1.55 var(--hk-font-interface);
}

@media (max-width: 680px) {
  .hk-prayer-place,
  .hk-prayer-date {
    font-size: 14px;
  }

  .hk-prayer-countdown > span {
    font-size: 13px;
  }

  .hk-prayer-name {
    font-size: 14px;
  }

  .hk-prayer-time {
    font-size: 12px;
  }

  .hk-prayer-note {
    font-size: 12px;
  }
}

@media (max-width: 680px) {
  .hk-prayer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 460px) {
  .hk-prayer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
