/* ============================================================
   CSS 08.06 — Build a navbar from a list, step by step
   ============================================================
   The SAME HTML 4 times. Only the class on the <ul> changes.

   Step 2:  list-style: none;  padding-left: 0;
   Step 3:  li { display: inline-block; }
   Step 4:  a  { display: block; padding: …; color: …; text-decoration: none; }
            ul { background-color: …; border-radius: …; }
   (In lesson 11 you will build the same navbar even more easily with flexbox.)
   ============================================================ */

/* Step 1 — no CSS at all (the class exists only as a label) */

/* Step 2 — remove bullets and the default left space */
.nav-step2 {
  list-style: none;
  padding-left: 0;
}

/* Step 3 — everything from step 2 + items in one row */
.nav-step3 {
  list-style: none;
  padding-left: 0;
}

.nav-step3 li {
  display: inline-block;            /* li is block by default → now they sit in a row */
  margin-right: 16px;
}
/* Note: inline-block items get a small extra gap from the spaces /
   new lines between the <li> tags in the HTML. Flexbox (lesson 11)
   does not have this problem. */

/* Step 4 — make it look like a real navbar */
.nav-step4 {
  list-style: none;
  padding: 0 8px;
  margin: 0;
  background-color: #0F1B3D;        /* dark navy bar                      */
  border-radius: 10px;
}

.nav-step4 li {
  display: inline-block;
}

.nav-step4 a {
  display: block;                   /* padding becomes part of the click area */
  padding: 14px 18px;
  color: #E4E4E4;
  text-decoration: none;            /* no underline (lesson 05)          */
  font-weight: 600;
}

.nav-step4 a.current {
  color: #FFAF04;                   /* the page you are on               */
  border-bottom: 3px solid #FFAF04;
}

.nav-step4 a:hover {
  color: #FFFFFF;                   /* :hover = when the mouse is over it (lesson 09) */
}
/* Try it: change the navbar background to #2D62EF → a blue navbar. */


/* ============================================================
   Lesson 08 — Quick summary
   ============================================================
   Value          New line?   Width/height work?   Example elements
   -------------  ----------  -------------------  ------------------------
   block          YES         YES                  div, p, h1, li, section
   inline         NO          NO                   span, a, strong, em
   inline-block   NO          YES                  buttons, tags, badges
   none           — not shown at all, takes no space —

   visibility: hidden → not shown, space stays
   Navbar recipe: list-style none → li inline-block → a block + padding

   Coming later: flexbox (lesson 11) and grid (lesson 13)
   — the modern way to place boxes next to each other.

   Practice tasks:
     1. Make 3 <span> "badges" with inline-block, width 100px, centred text.
     2. Make a footer menu of 4 links in one row using a <ul>.
     3. Hide the "Admissions" item of the step-4 navbar with display: none.
        Then try visibility: hidden — what is different?
   ============================================================ */
