/* ============================================================
   CSS 06.11 — Everything together: a Student ID card
   ============================================================
   Each line says which file (01–10) it comes from.
   ============================================================ */

.id-card {
  max-width: 420px;                 /* 05 — never too wide           */
  margin: 0 auto;                   /* 07 — centred                  */
  border: 2px solid #2D62EF;        /* 03                            */
  border-radius: 14px;              /* rounded corners (lesson 07)   */
  overflow: hidden;                 /* 09 — keeps the coloured header inside the round corners */
  background-color: #FFFFFF;
}

.id-header {
  background-color: #2D62EF;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2px;
  padding: 10px 16px;               /* 02                            */
}

.id-body {
  padding: 16px;                    /* 02                            */
  overflow: hidden;                 /* clears the float: this box now grows to
                                       hold the floated photo completely */
}

/* Photo on the left, details on the right:
   float = the OLD way to put things side by side;
   lesson 11 (flexbox) shows the modern way. */
.id-photo {
  float: left;                      /* the photo moves left, the details flow beside it */
  margin-right: 16px;               /* 04 — space between photo and details */
  width: 90px;                      /* 05 — fixed photo size         */
  height: 110px;
  border: 3px solid #E4E4E4;        /* 03                            */
  border-radius: 8px;
  background-color: #EEF3FF;
  color: #2D62EF;
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  line-height: 110px;               /* = the height → puts the letters in the middle vertically (one-line trick) */
}

.id-details p {
  margin: 0 0 6px;                  /* 08 — margin on ONE side only  */
}

.id-name {
  font-size: 22px;
  font-weight: 700;
}

.id-line {
  font-size: 15px;
  color: #525252;
}

.id-footer {
  border-top: 1px dashed #C9C9C9;   /* 03 — one side only            */
  padding: 8px 16px;
  font-size: 12px;
  color: #525252;
  text-align: center;
}
/* Try it: change .id-card border-radius to 0 → square corners.
   Try it: remove  overflow: hidden  from .id-card → the blue header's square
   corners poke out of the rounded card.
   Try it: remove  float: left  from .id-photo → the photo sits ABOVE the details. */


/* ============================================================
   Lesson 06 — Quick summary
   ============================================================
   content → padding → border → margin   (inside to outside)
   padding     space inside, gets the background
   border      width style colour (style is required)
   margin      space outside, see-through; margin: 0 auto centres a box
   Shorthand   1 value = all · 2 = vertical horizontal · 4 = top right bottom left
   max-width   better than width for containers
   box-sizing  border-box → width includes padding and border ✔
               put  * { box-sizing: border-box; }  at the top of every project
   Vertical margins collapse — only the bigger one is used.
   overflow    visible · hidden · auto ✔ · scroll

   Practice tasks:
     1. Make a box: width 250px, padding 20px, border 4px dashed green.
        How wide is it with content-box? (298px) With border-box? (250px)
     2. Centre a 500px-wide notice using margin.
     3. Make a "Fee receipt" card with a coloured top border of 6px
        and 24px padding.
   ============================================================ */
