.honoraria-grid {
  display: grid;
}

/* 1. Main row container using Grid to enforce spacing */
.honoraria-grid__row {
  display: grid;
  /* Maintain the two-column layout from your screenshot */
  grid-template-columns: repeat(2, 1fr);

  /* The gap property uses the format: [row-spacing] [column-spacing]
     This sets 20px vertically between cards and 16px horizontally.
  */
  gap: 20px 16px;

  /* Ensure no legacy margins interfere with the grid gap */
  margin-bottom: 20px;
}

/* 2. Column logic */
.honoraria-grid__col {
  min-width: 0;
  width: 100%;
}

/* 3. Card styling ensuring consistent height in the grid */
.honoraria-item {
  padding: 15px;
  border-radius: 12px;
  background: #fff;
  display: flex;
  flex-direction: column;
  /* This ensures all cards in a row match the height of the tallest card */
  height: 200px;
}

/* 4. Mobile responsiveness */
@media (max-width: 769px) {
  .honoraria-grid__row {
    /* Collapse to a single column on small screens */
    grid-template-columns: 1fr;
    /* Maintain the 20px vertical spacing between cards */
    gap: 20px;
  }
}

.honoraria-item__badge {
  /*
  background: #4fbbcd;
*/
  display: inline-block;
  /*
  padding: 2px 8px;
  font-size: 11px;
  font-weight: bold;
*/
  margin-bottom: 10px;
  width: fit-content;
}

.honoraria-item__title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 5px;
  line-height: 1.4; /* Set a specific line-height for consistent calculation */
  height: 2.8em; /* Enforce a fixed height (line-height * 2 lines) for layout consistency */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0; /* Prevents the title from collapsing inside the flex container */
}

/* FIX FOR BREXPIPRAZOLE WRAPPING */
.honoraria-item__meta {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  /* Keeps label at top */
  margin-bottom: 10px;
}

.honoraria-item__meta .label {
  font-weight: bold;
  white-space: nowrap;
}

.honoraria-item__meta .value {
  flex: 1;
  /* Forces text into its own column space */
}

.honoraria-item__action {
  margin-top: auto;
  /* Pushes button to bottom */
  text-align: right;
}

/*
.honoraria-item__action a {
  /* background-color: #00acc1;
  color: #747063;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 4px;
  display: inline-block;
}
*/

/* Container for the stats row */
.honoraria-item__stats {
  /* background-color: #f1f1f1; */
  /* Light grey panel background */
  padding: 5px 0;
  border-radius: 4px;
  margin: 5px 0;
  width: 100%;
}

/* The flex container */
.stat-group {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  width: 100%;
}

.stat-group img {
  padding: 5px;
}

/* Left half: Centered between edge and pipe */
.stat-group .stat-left {
  flex: 1;
  /* Takes up exactly 50% of remaining space */
  text-align: center;
  color: #333;
}

/* The Pipe: Fixed width in the exact center */
.stat-group .stat-divider {
  flex: 0 0 auto;
  color: #ccc;
  /* font-size: 1.2rem; */
  font-weight: 300;
}

/* Right half: Centered between pipe and edge */
.stat-group .stat-right {
  flex: 1;
  /* Takes up exactly 50% of remaining space */
  text-align: center;
  color: #333;
}

/* The container itself */
.honoraria-grid--empty {
  text-align: center;
  background: #fdfeff;
  border-radius: 12px;
  padding: 20px;
  /* Added to give the background some space */
  margin-bottom: 20px;
}

/* Images inside spans within the empty grid */
.honoraria-grid--empty span img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 160px;
  height: 160px;
  padding-top: 10px;
}

/* Paragraphs inside spans within the empty grid */
.honoraria-grid--empty span p {
  display: flex;
  justify-content: center;
  margin: 10px 0;
}

/* Leader_1 ad above the listing */
.honoraria-leader-ad {
  text-align: center;
  margin-bottom: 6px;
}

/* Rec_1 ad below the listing */
.honoraria-rec-ad {
  text-align: center;
  margin-bottom: 6px;
}

.honoraria-rec-ad ul {
  list-style: none;
  padding: 0;
  margin: 0 auto;
}

@media (max-width: 568px) {
  .honoraria-leader-ad,
  .honoraria-rec-ad {
    margin-bottom: 4px;
  }
}
