/* ============================================================
   DOM 03.09 — Putting it together: the ID card maker
   ============================================================
   Only to make it look nice — not part of this lesson
   ------------------------------------------------------------ */
body {
  font-family: Arial, sans-serif;
  background-color: #FCFCFC;
  padding: 24px 32px;
}

.college-box {
  display: block;
  max-width: 420px;
  font-size: 14px;
  color: #525252;
}

.college-box input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 4px;
  padding: 8px 10px;
  font-size: 16px;
  border: 1px solid #E4E4E4;
  border-radius: 6px;
}

.made {
  color: #525252;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.id-card {
  width: 260px;
  background-color: #FFFFFF;
  border: 1px solid #E4E4E4;
  border-top: 10px solid #9A9A9A;
  border-radius: 12px;
  padding: 12px 18px 16px;
  text-align: center;
}

.id-card .college {
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #525252;
  min-height: 30px;
}

.id-card img {
  width: 96px;
  height: 112px;
}

.id-card h3 {
  margin: 8px 0 4px;
}

.id-card .roll {
  font-family: Consolas, "Courier New", monospace;
}

.id-card .dept {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  color: #FFFFFF;
  background-color: #9A9A9A;
  font-size: 13px;
  font-weight: bold;
}


/* ------------------------------------------------------------
   The concept: the card colour follows its data-dept attribute
   (written by JavaScript with  card.dataset.dept = "…")
   ------------------------------------------------------------ */
.id-card[data-dept="CSE"] { border-top-color: #2D62EF; }
.id-card[data-dept="CSE"] .dept { background-color: #2D62EF; }

.id-card[data-dept="ECE"] { border-top-color: #1F9D55; }
.id-card[data-dept="ECE"] .dept { background-color: #1F9D55; }

.id-card[data-dept="MECH"] { border-top-color: #FFAF04; }
.id-card[data-dept="MECH"] .dept { background-color: #FFAF04; color: #000000; }
