/* ============================================================
   CSS 15.04 — Mobile-first: start small, then ADD for bigger screens
   ============================================================
   MOBILE-FIRST means:
     1. Write the PHONE layout first, with no media query (simplest).
     2. Then use  @media (min-width: …)  to ADD columns for bigger screens.
   Why: phones are most of the visitors, and simple-first CSS is shorter.

   (Lesson 13 example 08 did something similar WITHOUT media queries, using
    auto-fit. Media queries give you EXACT control over when it changes.)

   HOW TO TEST ON A "PHONE" WITHOUT A PHONE:
     Open the page in Chrome → press F12 → press Ctrl+Shift+M
     (the "device toolbar"). Choose a phone like "iPhone SE" at the top,
     or drag the edge to change the width. Watch the page change.

   ============================================================ */

/* Phone: 1 column */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

/* Tablet: 2 columns */
@media (min-width: 600px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Laptop: 3 columns */
@media (min-width: 1000px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}
/* Try it: add a 4-column step at  @media (min-width: 1400px) . */


/* ------------------------------------------------------------
   Only to make the cards visible — not part of this lesson
   ------------------------------------------------------------ */
.card {
  font-family: Arial, sans-serif;
  font-weight: bold;
  padding: 24px;
  background-color: #EEF3FF;
  border: 2px solid #2D62EF;
  border-radius: 10px;
  color: #2D62EF;
}
