/* ============================================================
   CSS 12.02 — A row of cards with equal heights
   ============================================================
   Look for the lines marked  ★ FLEX .  Those are the lines that make
   the layout. Everything at the bottom is decoration (colours, padding,
   borders) from earlier lessons.

   .card-row    { display: flex; flex-wrap: wrap; gap: 16px; }
   .course-card { flex: 1 1 220px; }
                        ┬ ┬ ──┬──
                        │ │   └── flex-basis: start at 220px
                        │ └────── flex-shrink: may shrink
                        └──────── flex-grow: may grow
   → the cards fill the row, and wrap when there is no room for 220px each
   ============================================================ */

.card-row {
  display: flex;                    /* ★ FLEX                                      */
  flex-wrap: wrap;                  /* ★ FLEX: new rows on small screens           */
  gap: 16px;                        /* ★ FLEX                                      */
  max-width: 900px;                 /* not too wide, so the cards' text wraps to different lengths */
}

.course-card {
  flex: 1 1 220px;                  /* ★ FLEX: grow, shrink, start at 220px        */
}
/* Equal heights come for FREE: align-items is "stretch" by default,
   so every card in a row is as tall as the tallest one. */
/* Try it: add  align-items: flex-start;  to .card-row
   → each card is only as tall as its own text. */


/* ------------------------------------------------------------
   Only to make the cards look nice — not part of this lesson
   ------------------------------------------------------------ */
.course-card {
  padding: 18px;
  border: 1px solid #E4E4E4;
  border-radius: 12px;
  background-color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.course-card h3 { margin: 0 0 6px; font-size: 18px; }
.course-card p  { margin: 0; color: #525252; }
