/* ============================================================
   CSS 09.05 — :first-child and :last-child
   ============================================================
   li:first-child = "an li that is the FIRST child of its parent".
   li:last-child  = "an li that is the LAST child of its parent".
   ============================================================ */

.notice-list li {
  padding: 10px 0;
  border-bottom: 1px solid #E4E4E4;  /* a line under every notice … */
}

.notice-list li:last-child {
  border-bottom: none;              /* … except the last one         */
}

.notice-list li:first-child {
  font-weight: 700;
  color: #E54B4F;
}

.notice-list li:first-child::after {
  content: "  LATEST";              /* ::after — see example 09      */
  font-size: 11px;
  letter-spacing: 1px;
  background-color: #E54B4F;
  color: #FFFFFF;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 8px;
}
/* Try it: change  li:first-child  to  li:last-child  in the last two rules
   → the fee notice becomes the "latest". */


/* ------------------------------------------------------------
   Only to make the list look neat — not part of this lesson
   ------------------------------------------------------------ */
.notice-list {
  list-style: none;
  padding: 0;
  max-width: 460px;
}
