/* wp-content/plugins/library-featured/library-featured.css */
/* layout rows */
.lf-row {
  display: grid;
  gap: 1rem;
}
.lf-top {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.lf-mid {
  grid-template-columns: 1fr 1fr;
  align-items: start;
} /* 50 / 50 */
.lf-bottom {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0.75rem;
}

/* reports box as a card */
.lf-reports-card .lg-card__body {
  padding: 14px;
  margin-bottom: auto;
}

.lg-panel-title {
  font-weight: 700;
  margin: 0 0 8px;
}

/* report list with verified icon */
.lg-report-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.lg-report-item + .lg-report-item {
  margin-top: 10px;
}
.lg-report-link {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  text-decoration: none;
}
.lg-report-ico {
  width: 16px;
  height: 16px;
  margin-top: 3px;
}

/* event date row with schedule icon */
.lf-event-date {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-weight: 600;
}
.lf-event-date__ico {
  width: 20px;
  height: 20px;
  display: block;
}

/* image head (news + event) */
.lg-card__media {
  position: relative;
}
.lg-card__img {
  display: block;
  width: 100%;
  height: auto;
}
.lg-card__img--ph {
  width: 100%;
  aspect-ratio: 16/9;
  background: #ececec;
}

/* overlay badge (for news when needed) */
.lg-card__badge--over {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
}

/* read more button */
.lg-readmore {
  display: inline-block;
  margin-top: 10px;
  padding: 0.6rem 1rem;
  border-radius: 12px;
  background: #016d89;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.lg-readmore:hover {
  background: #245768;
}

/* responsive */
@media (max-width: 900px) {
  .lf-top,
  .lf-bottom {
    grid-template-columns: repeat(2, 1fr);
  }
  .lf-mid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .lf-top,
  .lf-bottom {
    grid-template-columns: 1fr;
  }
}

/* Middle row: force equal heights */
.lf-mid {
  grid-template-columns: 1fr 1fr;
  align-items: stretch; /* was: start */
}

/* Make each column a flex container so the card can grow */
.lf-mid > .lf-col-left,
.lf-mid > .lf-col-right {
  display: flex;
}

/* Make the cards fill the column height */
.lf-mid .lg-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0; /* override base min-height to allow equalizing */
}
