/* Layout shell */
.oc247news {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

.oc247newsheader {
  margin: 0 0 22px;
}

.oc247newstitle {
  margin: 0 0 12px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.oc247newsintro {
  margin: 0;
  max-width: 72ch;
  font-size: 18px;
  line-height: 1.6;
  color: #5b677a;
  padding-top: 14px;
}

.oc247newslayout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: start;
}

/* Hero + cards */
.oc247newsgrid {
  display: block;
}

.oc247newshero {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 18px;
  border: 1px solid #e6eaf1;
  border-radius: 14px;
  padding: 18px;
  background: #fff;
}

.oc247newsheromedia {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  background: #f3f5f8;
}

.oc247newsheroimg {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

.oc247newsheroimgplaceholder {
  height: 260px;
  display: grid;
  place-items: center;
  color: #6b778b;
  font-size: 14px;
}

.oc247newsherotitle {
  margin: 2px 0 10px;
  font-size: 32px;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.oc247newsherotitle a {
  color: #0b1220;
  text-decoration: none;
}

.oc247newsherotitle a:hover {
  text-decoration: underline;
}

.oc247newsmeta {
  font-size: 14px;
  color: #6b778b;
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 0 12px;
}

.oc247newsmsep {
  opacity: 0.8;
}

.oc247newsexcerpt {
  margin: 0 0 10px;
  color: #3a4659;
  line-height: 1.55;
}

.oc247newsread {
  display: inline-block;
  font-weight: 700;
  text-decoration: none;
  color: #1a56db;
}

.oc247newsread:hover {
  text-decoration: underline;
}

.oc247newscards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.oc247newscard {
  border: 1px solid #e6eaf1;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.oc247newscardmedia {
  display: block;
  background: #f3f5f8;
}

.oc247newscardimg {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}

.oc247newscardimgplaceholder {
  height: 170px;
  display: grid;
  place-items: center;
  color: #6b778b;
  font-size: 14px;
}

.oc247newscardbody {
  padding: 14px 14px 16px;
}

.oc247newscardtitle {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.25;
}

.oc247newscardtitle a {
  color: #0b1220;
  text-decoration: none;
}

.oc247newscardtitle a:hover {
  text-decoration: underline;
}

/* More stories list */
.oc247newslist {
  margin-top: 22px;
}

.oc247newslisttitle {
  font-size: 18px;
  margin: 0 0 12px;
  color: #0b1220;
}

.oc247newsrow {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid #edf0f6;
}

.oc247newsrowmedia {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  background: #f3f5f8;
}

.oc247newsrowimg {
  width: 100%;
  height: 72px;
  object-fit: cover;
  display: block;
}

.oc247newsrowimgplaceholder {
  height: 72px;
  display: grid;
  place-items: center;
  color: #6b778b;
  font-size: 12px;
}

.oc247newsrowtitle {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.25;
}

.oc247newsrowtitle a {
  color: #0b1220;
  text-decoration: none;
}

.oc247newsrowtitle a:hover {
  text-decoration: underline;
}

/* Sidebar */
.oc247newssidebar {
  position: sticky;
  top: 18px;
}

.oc247newssidecard {
  border: 1px solid #e6eaf1;
  border-radius: 14px;
  background: #fff;
  padding: 16px;
}

.oc247newssidetitle {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.2;
}

.oc247newsrecent {
  list-style: none;
  padding: 0;
  margin: 0;
}

.oc247newsrecentitem {
  padding: 12px 0;
  border-top: 1px solid #edf0f6;
}

.oc247newsrecentitem:first-child {
  border-top: 0;
  padding-top: 0;
}

.oc247newsrecentlink {
  display: block;
  font-weight: 700;
  color: #0b1220;
  text-decoration: none;
  line-height: 1.25;
}

.oc247newsrecentlink:hover {
  text-decoration: underline;
}

.oc247newsrecentmeta {
  margin-top: 6px;
  font-size: 13px;
  color: #6b778b;
}

/* Pagination */
.oc247newspagination {
  margin-top: 22px;
}

.oc247newspagination .nav-links {
  display: flex;
  gap: 10px;
  align-items: center;
}

.oc247newspagination a,
.oc247newspagination span {
  border: 1px solid #e6eaf1;
  border-radius: 10px;
  padding: 8px 10px;
  text-decoration: none;
}

.oc247newspagination a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 980px) {
  .oc247newslayout {
    grid-template-columns: 1fr;
  }

  .oc247newssidebar {
    position: static;
  }

  .oc247newshero {
    grid-template-columns: 1fr;
  }

  .oc247newsheroimg,
  .oc247newsheroimgplaceholder {
    height: 220px;
  }
}

@media (max-width: 640px) {
  .oc247newscards {
    grid-template-columns: 1fr;
  }
}

/* Make ALL news images square (1:1) on the News archive */
.oc247news img.oc247newsheroimg,
.oc247news img.oc247newscardimg,
.oc247news img.oc247newsrowimg,
.oc247news img.oc247newsimg {
  aspect-ratio: 1 / 1;
  height: auto;
  width: 100%;
  object-fit: cover;
  display: block;
}

/* Ensure media wrappers don't fight the square crop */
.oc247newsheromedia,
.oc247newscardmedia,
.oc247newsrowmedia,
.oc247newsmedia {
  overflow: hidden;
}

/* Optional: keep hero from becoming too tall on desktop */
.oc247newsheroimg {
  max-height: 340px;
}

/* Optional: tighten smaller thumbs */
.oc247newscardimg {
  max-height: 220px;
}

.oc247newsrowimg {
  max-height: 88px;
}