.publications-grand-public-block {
  margin: 0;
  border-bottom: none;
}

.publications-grand-public-block .publications-section {
  width: 100%;
  background: #ffffff;
  padding-bottom: 0;
  font-size: 1.1rem;
}

.publications-grand-public-block .section-link {
   color: #E30613;
   text-decoration: none;
   font-weight: 600;
   display: flex;
   align-items: center;
   gap: 8px;
   transition: color 0.3s ease;
 }

.publications-grand-public-block .section-link:hover {
  color: #1a1a1a;
}

.publications-grand-public-block .section-link svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  transition: transform 0.3s ease;
}

.publications-grand-public-block .section-link:hover svg {
  transform: translateX(4px);
}

/* Desktop: intros in left column, cards side-by-side on the right. */
.publications-content {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr 1fr;
  grid-template-areas:
    "intro1 card1 card2"
    "intro2 card1 card2";
  column-gap: 40px;
  row-gap: 30px;
  align-items: start;
}

.publications-pair {
  display: contents;
}

.publications-pair:nth-child(1) .publications-intro-block {
  grid-area: intro1;
}

.publications-pair:nth-child(2) .publications-intro-block {
  grid-area: intro2;
}

.publications-pair:nth-child(1) .publication-card {
  grid-area: card1;
  /* Keep cover ratio; do not stretch with taller intro copy. */
  align-self: start;
}

.publications-pair:nth-child(2) .publication-card {
  grid-area: card2;
  align-self: start;
}

.publications-intro-block {
  margin: 0;
}

.publications-intro-title {
  font-size: 1.15rem;
  line-height: 1.35;
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.publications-intro-text {
  color: #555;
  line-height: 1.6;
  margin-bottom: 15px;
}

.intro-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #E30613;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.intro-link:hover { color: #1a1a1a; }

.intro-link svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  transition: transform 0.3s ease;
}

.intro-link:hover svg { transform: translateX(3px); }

.publication-card {
  width: 100%;
  max-width: 280px;
  justify-self: end;
  /* 3:4 sits between the two covers so both stay whole, with only a thin gap. */
  aspect-ratio: 3 / 4;
  height: auto;
  min-height: 0;
  text-decoration: none;
  color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  border: none;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  background-color: transparent;
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
}

.publication-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}

.card-body {
  padding: 18px 20px 8px;
  position: relative;
  z-index: 1;
}

.card-title {
  font-weight: 500;
  color: #fff;
  margin-bottom: 0;
  line-height: 1.4;
}

.publication-card:hover .card-title { color: #fff; }

.card-footer {
  padding: 0 20px 20px;
  display: flex;
  justify-content: flex-end;
  position: relative;
  z-index: 1;
}

.read-more {
  color: #fff;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

.read-more svg {
  width: 14px;
  height: 14px;
  stroke: #fff;
  transition: transform 0.3s ease;
}

.publication-card:hover .read-more svg { transform: translateX(3px); }

@media (max-width: 900px) {
  /* Mobile: text then its matching image, for each publication. */
  .publications-content {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }

  .publications-pair {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .publications-pair:nth-child(1) .publications-intro-block,
  .publications-pair:nth-child(2) .publications-intro-block,
  .publications-pair:nth-child(1) .publication-card,
  .publications-pair:nth-child(2) .publication-card {
    grid-area: auto;
  }

  .publication-card {
    width: 100%;
    max-width: 100%;
    justify-self: stretch;
    min-height: 0;
  }
}

@media (max-width: 600px) {
  .publications-grand-public-block .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .publications-content {
    width: 100%;
    max-width: 100%;
  }

  .publication-card {
    aspect-ratio: 3 / 4;
    height: auto;
    background-size: contain;
    background-position: center center;
  }
}
