/* ============================================================
   CSS 09.06 — :nth-child() — pick by number
   ============================================================
   :nth-child(2)      → only the 2nd
   :nth-child(even)   → 2nd, 4th, 6th …
   :nth-child(odd)    → 1st, 3rd, 5th …
   :nth-child(3n)     → every 3rd: 3, 6, 9 …
   :nth-child(-n+3)   → the first 3 only
   ============================================================ */

.marks-table tbody tr:nth-child(even) {
  background-color: #F4F5F7;        /* every 2nd row grey = zebra stripes */
}

.marks-table tbody tr:hover {
  background-color: #FFF6E0;        /* the row under the mouse lights up  */
}

.marks-table td:first-child {
  font-weight: 700;                 /* the Name column in bold            */
}
/* Try it: change  even  to  odd  → the other rows get the stripes.
   Try it: change it to  3n  → only every 3rd row is grey. */


/* ------------------------------------------------------------
   Only to make the table look neat — not part of this lesson
   ------------------------------------------------------------ */
.marks-table {
  width: 100%;
  border-collapse: collapse;        /* single lines between cells (lesson 17) */
  font-size: 15px;
}

.marks-table th,
.marks-table td {
  padding: 10px 12px;
  text-align: left;
}

.marks-table th {
  background-color: #0F1B3D;
  color: #FFFFFF;
}

.marks-table .fail {
  color: #E54B4F;
  font-weight: 700;
}
