/* =====================================================================
   COURSES.CSS  (ockcourses.php and admissions.php)
   ===================================================================== */

.programme-card { height: 100%; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.75rem; background: #fff; }
.programme-head { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.25rem; }
.programme-head .bi { width: 52px; height: 52px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--ink); color: var(--gold); font-size: 1.4rem; }
.programme-head h3 { margin: 0; }
.programme-label { font-size: .85rem; font-weight: 600; color: var(--muted); margin: 1.25rem 0 .6rem; }
.programme-items { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .1rem 1rem; }
.programme-items li { padding: .4rem 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 500; }
.programme-extras { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.programme-extras li { padding: .2rem .65rem; border-radius: 6px; background: var(--paper); font-size: .85rem; font-weight: 600; color: var(--navy); }
.programme-extras abbr { text-decoration: none; cursor: help; }

.minor-box { margin-top: 2rem; padding: 1.75rem; border-radius: var(--radius-lg); background: var(--paper); }
.abbr-key { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; margin: 1.25rem 0 0; font-size: .85rem; color: var(--muted); max-width: none; }
.abbr-key strong { color: var(--ink); margin-right: .2rem; }

/* Semester cards: a real sequence, so they are numbered by name */
.semester-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.semester-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; background: #fff; }
.semester-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: .75rem; padding-bottom: .75rem; border-bottom: 1px solid var(--line); }
.semester-head h3 { font-size: 1.3rem; margin: 0; }
.semester-year { font-size: .8rem; color: var(--muted); font-weight: 600; }
.semester-card ul { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .45rem; font-size: .9rem; }
.semester-card ul li { padding-left: .9rem; position: relative; line-height: 1.4; }
.semester-card ul li::before { content: ""; position: absolute; left: 0; top: .55em; width: 5px; height: 5px; border-radius: 50%; background: var(--steel); }
.semester-total { margin: auto 0 0; font-weight: 700; color: var(--maroon); font-size: .9rem; }
