/* ============================================================
   CSS 12.06 — Hero section: text and picture side by side
   ============================================================
   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.

   .hero      { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
   .hero-text,
   .hero-pic  { flex: 1 1 280px; }   ← equal halves; each needs 280px, else it wraps below
   ============================================================ */

.hero {
  display: flex;                    /* ★ FLEX */
  flex-wrap: wrap;                  /* ★ FLEX: picture goes below the text on small screens */
  align-items: center;              /* ★ FLEX */
  gap: 24px;
}

.hero-text,
.hero-pic {
  flex: 1 1 280px;                  /* ★ FLEX: two equal halves */
}
/* Try it: change  280px  to  600px  → two halves no longer fit side by side,
   so the picture wraps below the text even on a wide screen. */


/* ------------------------------------------------------------
   Only to make the hero look nice — not part of this lesson
   ------------------------------------------------------------ */
.hero {
  max-width: 1000px;
  padding: 24px;
  background-color: #EEF3FF;
  border-radius: 14px;
}

.hero-tag {
  color: #2D62EF;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 13px;
  margin: 0;
}

.hero-text h3 {
  font-size: 34px;
  margin: 6px 0 8px;
}

.hero-pic {
  min-height: 220px;                /* an empty div needs a height to show its picture */
  border-radius: 12px;
  background: url("../assets/campus.svg") center / cover;   /* lesson 07 */
}

.nav-btn {
  display: inline-block;
  background-color: #2D62EF;
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 8px;
  white-space: nowrap;              /* never break "Apply now" into 2 lines */
}

.nav-btn:hover { background-color: #1A47C2; }
