/* ============================================================
   CSS 12.08 — A short page: keep the footer at the bottom
   ============================================================
   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.

   body / .page { display: flex; flex-direction: column; min-height: 100vh; }
   main         { flex: 1; }   ← main grows → the footer is pushed to the bottom

   On a real page you would put these lines on <body> and use
   min-height: 100vh. Here the mini page is 300px tall.
   ============================================================ */

.mini-page {
  display: flex;                    /* ★ FLEX */
  flex-direction: column;           /* ★ FLEX: header, main, footer top to bottom */
  height: 300px;                    /* real page: min-height: 100vh;              */
}

.mini-main {
  flex: 1;                          /* ★ FLEX: grow and fill → footer pushed down */
}
/* Try it: remove  flex: 1;  from .mini-main → the footer jumps up
   and an empty white gap appears at the bottom. */


/* ------------------------------------------------------------
   Only to make the mini page visible — not part of this lesson
   ------------------------------------------------------------ */
.mini-page {
  max-width: 700px;
  border: 2px dashed #9A9A9A;
  border-radius: 10px;
  overflow: hidden;
}

.mini-header,
.mini-footer {
  padding: 12px 16px;
  background-color: #0F1B3D;
  color: #FFFFFF;
  font-weight: 700;
}

.mini-main {
  padding: 16px;
  background-color: #F4F5F7;
}


/* ============================================================
   Lesson 12 — Quick summary: the flex patterns to remember
   ============================================================
   Pattern                          Key lines
   -------------------------------  ----------------------------------------------------
   Navbar (left … right)            display: flex; align-items: center; + margin-left: auto
   Equal cards that wrap            flex-wrap: wrap; gap; + items flex: 1 1 220px
   Button at the bottom of a card   card: flex column  + button margin-top: auto
   Input that stretches             input flex: 1
   Photo + text + button            align-items: center; photo flex-shrink: 0; text flex: 1
   Two halves                       both flex: 1 1 280px; + flex-wrap: wrap
   Bar with ends                    justify-content: space-between
   Footer at the bottom             page flex column, min-height: 100vh; main flex: 1

   margin-left: auto     push something to the right in a flex row
   margin-top: auto      push something to the bottom in a flex column
   flex: 1               take the remaining space
   flex: 1 1 220px       equal items that wrap below 220px
   flex-shrink: 0        never squash this item
   justify-content: space-between   items at both ends
   Nested flex: a flex item can itself be a flex container.

   Practice tasks:
     1. Add a 5th link "Library" to the navbar — does it still fit?
     2. Make a row of 4 "stat" boxes (4,000 Students · 14 Departments ·
        60 Acres · 92% Placement) with equal widths, numbers centred.
     3. Build a notice row: a 📌 icon, the notice text (flex: 1), and a date on the right.
   ============================================================ */
