/* Newscast 5 Newspaper style theme */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+Bengali:wght@400;600;700;800;900&family=Hind+Siliguri:wght@300;400;500;600;700&display=swap');

:root {
  --paper: #FBF7EF;
  --paper-dim: #F2ECDF;
  --band: #EEF3EA;
  --ink: #1C1A17;
  --ink-soft: #2e2c29;
  --maroon: #7C2430;
  --maroon-deep: #5A1A23;
  --gold: #B98A32;
  --teal: #1E5C55;
  --rule: #D9CFB8;
  --white: #FFFFFF;
}

body {
  background-color: var(--paper) !important;
  color: var(--ink) !important;
  font-family: 'Noto Serif Bengali', serif !important;
  line-height: 1.6;
  font-size: 15px;
  font-weight: 600;
}

/* Typography Overrides */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Noto Serif Bengali', serif !important;
  font-weight: 800;
  line-height: 1.28;
  color: var(--ink) !important;
}

p, span, a, div, input, select, button {
  font-family: 'Noto Serif Bengali', serif !important;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Full Width Wrappers and Grids */
.wrap {
  max-width: 100%;
  width: 100%;
  padding: 0 45px;
}

.content-grid {
  display: grid;
  grid-template-columns: 2.5fr 1fr;
  gap: 40px;
  padding: 26px 0;
}

.secondary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding-top: 20px;
  border-top: 2px solid var(--rule);
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.four-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

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

.dual-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.single-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
}

.split-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.ad-strip {
  background: var(--paper-dim);
  border: 1px dashed var(--rule);
  color: var(--ink-soft);
  font-size: 12px;
  text-align: center;
  padding: 16px;
  letter-spacing: .05em;
  margin: 26px 0;
}

@media (max-width: 960px) {
  .wrap {
    padding: 0 15px;
  }
  .content-grid {
    grid-template-columns: 1fr;
  }
  .secondary-grid {
    grid-template-columns: 1fr;
  }
  .mini-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .four-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .triple-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dual-grid {
    grid-template-columns: 1fr;
  }
  .single-grid {
    grid-template-columns: 1fr;
  }
  .split-row {
    grid-template-columns: 1fr;
  }
}

/* Global utility bar override */
.bg-gray-900 {
  background-color: var(--ink) !important;
}
.text-gray-300 {
  color: #D8D2C6 !important;
}

/* Global header/masthead override */
header.bg-white {
  background-color: var(--paper) !important;
  border-bottom: 4px solid var(--ink) !important;
  box-shadow: none !important;
}

header.bg-white a h1 {
  color: var(--maroon-deep) !important;
  font-family: 'Noto Serif Bengali', serif !important;
  font-weight: 900 !important;
}

header.bg-white a p {
  color: var(--ink-soft) !important;
}

/* Global Navigation override */
nav.bg-primary {
  background-color: var(--ink) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.15) !important;
}

nav.bg-primary a {
  color: #EDE7D9 !important;
  font-family: 'Noto Serif Bengali', serif !important;
  font-weight: 700 !important;
  border-bottom: 3px solid transparent !important;
}

nav.bg-primary a:hover {
  color: var(--white) !important;
  border-bottom-color: var(--gold) !important;
  background-color: rgba(255,255,255,.04) !important;
}

/* Dropdown Menu Item Overrides */
nav.bg-primary ul.absolute a {
  color: var(--ink) !important;
  background-color: var(--white) !important;
  border-bottom: none !important;
  display: block !important;
  padding: 8px 16px !important;
  font-size: 13.5px !important;
}

nav.bg-primary ul.absolute a:hover {
  color: var(--maroon) !important;
  background-color: var(--paper-dim) !important;
}

/* Global Breaking News override */
.bg-\[\#eeeeee\] {
  background-color: var(--paper-dim) !important;
  border-color: var(--rule) !important;
}

.bg-\[\#eeeeee\] .bg-\[\#004e73\] {
  background-color: var(--maroon) !important;
}

/* Global Footer override */
footer.bg-\[\#7A1212\] {
  background-color: var(--ink) !important;
  color: #C9C2B2 !important;
}

footer.bg-\[\#7A1212\] h3, footer.bg-\[\#7A1212\] h4, footer.bg-\[\#7A1212\] h5 {
  color: var(--white) !important;
}

footer.bg-\[\#7A1212\] a, footer.bg-\[\#7A1212\] p {
  color: #C9C2B2 !important;
  opacity: 0.95;
}

footer.bg-\[\#7A1212\] a:hover {
  color: var(--gold) !important;
}

footer.bg-\[\#7A1212\] .border-\[\#8E1B1B\] {
  border-color: #3a372f !important;
}

/* Custom newspaper design elements */
.torn-divider {
  height: 14px;
  margin: 12px 0 26px;
  background: linear-gradient(135deg, var(--paper) 50%, transparent 50%) 0 0 / 16px 16px, 
              linear-gradient(-135deg, var(--paper) 50%, transparent 50%) 0 0 / 16px 16px;
  background-color: var(--rule);
  background-repeat: repeat-x;
}

/* Lead story */
.lead-story {
  margin-bottom: 24px;
}

.lead-story .eyebrow {
  display: inline-block;
  background: var(--maroon);
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
  padding: 4px 12px;
  margin-bottom: 10px;
}

.lead-story h1 {
  font-size: 32px;
  margin-bottom: 12px;
  font-weight: 900;
}

.lead-story .figure {
  position: relative;
  margin-bottom: 12px;
  border: 2px solid var(--rule);
  overflow: hidden;
}

.lead-story .figure img.aspect-landscape {
  width: 100%;
  aspect-ratio: 16 / 9 !important;
  object-fit: cover;
}

.lead-story .dek {
  font-size: 16.5px;
  color: var(--ink-soft);
  margin-bottom: 10px;
  font-weight: 600;
}

.byline {
  font-size: 13.5px;
  color: var(--ink-soft);
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 700;
}

.byline .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink-soft);
}

/* Secondary Grid Cards */
.story-card {
  border-bottom: none;
  padding-bottom: 0px;
}

.story-card h3 {
  font-size: 18px;
  margin: 10px 0 6px;
  font-family: 'Noto Serif Bengali', serif;
  font-weight: 800;
}

.story-card .figure {
  position: relative;
  border: 2px solid var(--rule);
  overflow: hidden;
}

.story-card .figure img.aspect-landscape {
  width: 100%;
  aspect-ratio: 16 / 9 !important;
  object-fit: cover;
}

.story-card .cat {
  font-size: 12px;
  font-weight: 800;
  color: var(--teal);
  letter-spacing: .05em;
  text-transform: uppercase;
}

.story-card p {
  color: var(--ink-soft);
  font-size: 14.5px;
  font-weight: 600;
}

/* Mini Cards */
.mini-card .figure {
  border: 1px solid var(--rule);
  overflow: hidden;
}

.mini-card .figure img {
  width: 100%;
  aspect-ratio: 16 / 9 !important;
  object-fit: cover;
}

.mini-card h4 {
  font-size: 14.5px;
  font-weight: 700;
  margin-top: 8px;
  line-height: 1.4;
  font-family: 'Noto Serif Bengali', serif;
}

.mini-card .time {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 4px;
  display: block;
  font-weight: 700;
}

/* Sidebar lists */
.sidebar-block {
  margin-bottom: 24px;
  max-width: 96%;
}

.sidebar-title {
  font-family: 'Noto Serif Bengali', serif;
  font-size: 20px;
  font-weight: 900;
  color: var(--maroon-deep);
  padding-bottom: 8px;
  margin-bottom: 12px;
  border-bottom: 3px solid var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-title::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--gold);
  display: inline-block;
  transform: rotate(45deg);
}

.latest-item {
  display: flex;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--rule);
}

.latest-item:last-child {
  border-bottom: none;
}

.latest-item .num {
  font-family: 'Noto Serif Bengali', serif;
  font-size: 26px;
  font-weight: 900;
  color: var(--rule);
  line-height: 1;
  flex-shrink: 0;
  width: 32px;
}

.latest-item h4 {
  font-size: 15.5px;
  font-weight: 700;
  margin-bottom: 4px;
}

.latest-item .time {
  font-size: 12.5px;
  color: var(--ink-soft);
  font-weight: 700;
}

.ad-slot {
  background: var(--paper-dim);
  border: 1px dashed var(--rule);
  color: var(--ink-soft);
  font-size: 12px;
  text-align: center;
  padding: 30px 10px;
  letter-spacing: .05em;
  font-weight: 700;
}

.poll-block {
  background: var(--teal);
  color: var(--white);
  padding: 18px;
  border-radius: 4px;
}

.poll-block h4 {
  color: var(--white) !important;
  font-family: 'Noto Serif Bengali', serif;
  font-size: 18px;
  margin-bottom: 12px;
}

.poll-option {
  display: flex;
  justify-content: space-between;
  padding: 9px 12px;
  background: rgba(255,255,255,.1);
  margin-bottom: 8px;
  font-size: 13.5px;
  border-radius: 2px;
  cursor: pointer;
  transition: .15s;
}

.poll-option:hover {
  background: rgba(255,255,255,.2);
}

/* Section bands for categories */
.section-band {
  padding: 28px 0;
  border-top: 2px solid var(--rule);
  border-bottom: 2px solid var(--rule);
}

.section-band.alt {
  background: var(--band);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 18px;
}

.section-head h2 {
  font-size: 26px;
  font-weight: 900 !important;
  position: relative;
  padding-left: 14px;
}

.section-head h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 5px;
  background: var(--maroon);
}

.section-head a {
  font-size: 14px;
  font-weight: 800;
  color: var(--maroon);
  border-bottom: 2px solid var(--maroon);
  padding-bottom: 1px;
}

/* Card Zoom effect */
.figure img {
  transition: transform 0.5s ease;
}

.story-card:hover .figure img,
.mini-card:hover .figure img {
  transform: scale(1.03);
}

/* Tab widget styles */
.hero-tab-btn {
  font-size: 14px;
  font-weight: 900;
  padding: 8px 16px;
  border: 1px solid var(--rule);
  background: var(--paper-dim);
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.hero-tab-btn.active {
  background: var(--maroon);
  color: var(--white);
  border-color: var(--maroon);
}
