/* ---------- HOME LAYOUT ---------- */
.home-layout {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 1.25rem;
}

.left-panel {
  flex: 1 1 420px;
  max-width: 520px;
  min-width: 320px;
}

.right-panel {
  flex: 1 1 560px;
  max-width: 920px;
  min-width: 320px;
}

/* tighter version of striped-border for home */
.left-panel .striped-border {
  padding: 1.75rem;
  margin: 0;
}

.home-hello {
  width: 100%;
  text-align: left;
  margin: 0;
}

.home-welcome {
  margin-top: 0.5rem;
}

.section-title-center {
  width: 100%;
  font-weight: bold;
  text-align: center;
}

.mini-hr {
  border: none;
  border-top: 1.5px solid black;
  margin: 0.8rem 0;
}

/* CTA buttons */
.cta-row {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-start;
  margin-top: 0.6rem;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;

  border: 2px dashed black;
  padding: 0.2rem 0.6rem;

  text-decoration: none;
  color: black;
  font-weight: bold;
  background: white;
  transition: 0.1s;
  white-space: nowrap;
}

.cta:hover {
  background: black;
  color: white;
}

/* Right panel title line */
.line-title {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 0.25rem 0 0.75rem 0;
  font-weight: bold;
  font-size: large;
}

.line-title::before,
.line-title::after {
  content: "";
  flex: 1;
  border-bottom: 1.5px solid black;
}

/* Update cards grid */
.updates-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 900px) {
  .updates-grid { grid-template-columns: 1fr; }
}

.update-card {
  border: 2px dashed black;
  background: white;
  padding: 0.9rem;
}

/* image box */
.update-img {
  width: 100%;
  height: 170px;
  border: 2px dashed black;
  background: #fcfcfc;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;
  margin-bottom: 0.6rem;
}

.update-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.update-title {
  font-weight: bold;
  margin-bottom: 0.15rem;
  line-height: 1.2em;
}

.update-meta {
  font-size: 85%;
  margin-bottom: 0.5rem;
}

.update-excerpt {
  font-size: 90%;
  line-height: 1.35em;
  margin: 0;
}

/* Research update links (fix repeated id -> class) */
.research-update-url {
  text-decoration: none;
  color: black;
}
.research-update-url:hover,
.research-update-url:focus {
  text-decoration: none;
  color: rgb(0, 221, 224);
}

/* Pager */
.pager {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;

  margin-top: 0.9rem;
  user-select: none;
  font-weight: bold;
  font-size: 90%;
}

.pager a {
  color: black;
  text-decoration: none;
  border: 2px dashed black;
  padding: 0.05rem 0.35rem;
  background: white;
}

.pager a:hover {
  background: black;
  color: white;
}

/* Pagination visibility defaults */
.update-card { display: none; }
.update-card.page-1 { display: block; }
