/* ============================================================
   CSS 14.03 — Full page layout (grid + flexbox together)
   ============================================================
   GRID for the big parts (2 directions):          FLEXBOX inside a part
     "header  header"                              (1 direction):
     "sidebar main"                                the menu in the header
     "footer  footer"
   min-height: 100vh  → the page is at least as tall as the window,
   and the middle row (1fr) grows → the footer sits at the bottom.
   ============================================================ */

body {
  margin: 0;                        /* no white edge around the page */
}

.page {
  display: grid;                                    /* ★ GRID */
  grid-template-columns: 220px 1fr;                 /* ★ GRID: sidebar + content */
  grid-template-rows: auto 1fr auto;                /* ★ GRID: middle row grows   */
  grid-template-areas:                              /* ★ GRID */
    "header  header"
    "sidebar main"
    "footer  footer";
  min-height: 100vh;                                /* at least the full window height */
}

.page-header  { grid-area: header; }
.page-sidebar { grid-area: sidebar; }
.page-main    { grid-area: main; }
.page-footer  { grid-area: footer; }

/* inside the header: FLEXBOX — name on the left, menu on the right */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
/* Try it: change the middle row of the areas to  "main sidebar"
   and the columns to  1fr 220px  → the sidebar moves to the right. */


/* ------------------------------------------------------------
   Only to make the parts visible — not part of this lesson
   ------------------------------------------------------------ */
.page { font-family: Arial, sans-serif; }
.page-header  { background-color: #0F1B3D; color: #FFFFFF; padding: 14px 20px; }
.page-header a { color: #E4E4E4; margin-left: 14px; text-decoration: none; }
.page-sidebar { background-color: #EEF3FF; padding: 16px 20px; line-height: 1.8; }
.page-main    { padding: 16px 24px; }
.page-footer  { background-color: #0F1B3D; color: #C9CEDC; padding: 12px 20px; }
