/* ============================================================
   CSS 13.01 — display: grid
   ============================================================
   Grid = place boxes in ROWS and COLUMNS at the same time,
   like a table — but for layout.

   Flexbox thinks in ONE direction (a row OR a column).
   Grid thinks in TWO directions (rows AND columns).

   Like flexbox, it starts on the PARENT:
     <div class="container grid">   ← GRID CONTAINER
       <div class="box">1</div>     ← GRID ITEMS (direct children)
       …
     </div>
   You choose the COLUMNS; the items fill them left to right,
   then start a new row automatically.
   ============================================================ */

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;   /* 3 equal columns (fr — see example 02) */
  gap: 10px;                            /* space between cells (example 04)      */
}
/* Try it: change to  1fr 1fr  → 2 columns, 3 rows.
   Try it: delete  display: grid;  → back to one box per line. */

/* ------------------------------------------------------------
   Only to make the boxes visible — not part of this lesson
   ------------------------------------------------------------ */
.box {
  background-color: #2D62EF;
  color: #FFFFFF;
  font-weight: bold;
  padding: 14px;
  border-radius: 6px;
}

.container {
  background-color: #F4F5F7;
  border: 2px dashed #9A9A9A;
  padding: 8px;
  margin-bottom: 16px;
  max-width: 900px;
}
