/* ============================================================
   CSS 14.07 — News page layout (grid-template-areas)
   ============================================================
   3 columns. The top story covers 2 columns and 2 rows:

     "top    top    side1"
     "top    top    side2"
     "short1 short2 short3"
   ============================================================ */

.news {
  display: grid;                                 /* ★ GRID */
  grid-template-columns: repeat(3, 1fr);         /* ★ GRID */
  grid-template-areas:                           /* ★ GRID */
    "top    top    side1"
    "top    top    side2"
    "short1 short2 short3";
  gap: 14px;
  max-width: 1000px;
}

.top-story { grid-area: top; }
.side-1    { grid-area: side1; }
.side-2    { grid-area: side2; }
.short-1   { grid-area: short1; }
.short-2   { grid-area: short2; }
.short-3   { grid-area: short3; }
/* Try it: change the first two rows to  "side1 top top"  and  "side2 top top"
   → the top story moves to the right. */


/* ------------------------------------------------------------
   Only to make the stories visible — not part of this lesson
   ------------------------------------------------------------ */
.news { font-family: Georgia, serif; }
.news article {
  padding: 14px 16px;
  border: 1px solid #E4E4E4;
  border-radius: 10px;
}
.news h2, .news h3, .news h4 { margin: 0 0 6px; }
.news p { margin: 0; color: #525252; }
.top-story {
  color: #FFFFFF;
  background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
              url("../assets/campus.svg") center / cover;
  min-height: 260px;
}
.top-story p { color: #E4E4E4; }


/* ============================================================
   Lesson 14 — Quick summary: grid patterns
   ============================================================
   Pattern               Key lines
   --------------------  ------------------------------------------------
   Gallery               repeat(auto-fill, minmax(180px, 1fr)) + featured span 2 / span 2
   Dashboard             repeat(4, 1fr) + tiles with span 2 / 1 / -1
   Page layout           grid-template-areas + rows  auto 1fr auto  + min-height 100vh
   Timetable             70px repeat(5, 1fr) + lunch  grid-column: 2 / -1
   Form                  140px 1fr — label | input, .full spans 1 / -1
   Responsive cards      repeat(auto-fit, minmax(240px, 1fr)) + flex column inside
   News layout           grid-template-areas with a 2 × 2 top story

   Grid for the OUTSIDE layout (rows AND columns),
   flexbox for things INSIDE one part (a row OR a column).

   Practice tasks:
     1. Make a "Results" dashboard: 3 stat tiles on top, a wide marks list below.
     2. Add a Saturday column to the timetable.
     3. Build a 3 × 3 gallery where the middle photo spans 1 column and 3 rows.
   ============================================================ */
