html, body {
  margin: 0;
  padding: 0;
  font-family: 'Forum', serif;
  font-size: 18px;
  line-height: 1.6;
}

.banner {
  background-color: #136782;
  color: white;
  padding: 80px 20px;
  text-align: center;
  font-size: 1.8em;
}

.main {
  display: flex;
  flex-wrap: wrap;
  gap: 20px; /* space between columns */
  margin: 20px; /* space outside the entire layout */
}

.left-column {
  flex: 0 0 68%;
  background-color: #fef9fc;
  padding: 20px;
  box-sizing: border-box;
}

.right-column {
  flex: 0 0 30%;
  background-color: #fef9fc;
  padding: 20px;
  box-sizing: border-box;
}

.full-width {
  background-color: #fefaf9;
  padding: 20px;
  margin: 0 20px 20px 20px; /* match spacing from sides and below */
}


.collapsible-text {
  font-family: 'Forum', serif;
  font-size: 18px;
  line-height: 1.6;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4; /* or however many lines you want */
}

.non-collapsible-text {
  font-family: 'Forum', serif;
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.expanded {
  -webkit-line-clamp: unset;
  display: block;
}

button {
  margin-top: 10px;
  padding: 6px 12px;
  background-color: #004080;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 4px;
}

button:hover {
  background-color: #0066cc;
}

.info-entry {
  margin-bottom: 15px;
}

.label {
  font-weight: bold;
}










/* Schedule Table Styling */
.schedule-table {
    width: 90%;
    border-collapse: separate;
    border-spacing: 4px;
    margin-top: 1rem;
    margin-left: 2rem;
}

.schedule-table th, .schedule-table td {
    padding: 0.6rem;
    border: 1px solid #ccc;
}

.schedule-table td {
    vertical-align: middle;
    text-align: left;
}

.schedule-table td.center-text {
    text-align: center;
    vertical-align: middle;
}

.schedule-table th {
    background: #f0f0f0;
    color: #333;
}

/* ---- Row colours -------------------------------------------------------
   Every row carries two custom properties:
     --zebra   the alternating stripe; the week-number column always uses it
     --row-bg  the colour the rest of the cells in that row use
   Cells read those variables, so a single cell can override its own colour
   without any selector-specificity fight.
------------------------------------------------------------------------ */

.schedule-table tbody tr {
    --zebra: #ffffff;
    --row-bg: var(--zebra);
}

/* Stripe the ordinary rows only. Holiday/quiz/exam rows are left out of the
   count, so inserting one doesn't flip the alternation of everything below. */
.schedule-table tbody tr:nth-child(even of :not(.holiday):not(.quiz):not(.exam)) {
    --zebra: #f9f9f9;
}

/* Special rows — each one controlled on its own line */
.schedule-table tbody tr.holiday { --row-bg: #fcf0f3; }  /* no class / holiday */
.schedule-table tbody tr.quiz    { --row-bg: #eaf1fb; }  /* quizzes            */
.schedule-table tbody tr.exam    { --row-bg: #fdf1e3; }  /* mid sem / end sem  */

/* Paint the cells */
.schedule-table tbody td {
    background-color: var(--row-bg);
}

/* The week-number cell spans two rows, so it keeps the plain stripe rather
   than taking a special row's colour. (It is the only cell with rowspan.) */
.schedule-table tbody td[rowspan] {
    background-color: var(--zebra);
}

/* Per-cell override — works in any column, on any row, always wins */
.schedule-table td.highlight-cell {
    --row-bg: #e7f7cd;
    --zebra: #e7f7cd;
}

/* Link Pill Styling */
a.pill {
    display: inline-block;
    padding: 3px 8px;
    margin: 2px 2px 2px 0;
    background: #e6f0fa;
    color: #0066cc;
    border: 1px solid #cce;
    border-radius: 8px;
    font-size: 0.9rem;
    text-decoration: none;
}

a.pill:hover {
    background: #d0e6f7;
}

/* Badge Styling */
.badge {
    display: inline-block;
    padding: 2px 6px;
    background: #666;
    color: white;
    border-radius: 6px;
    font-size: 0.8rem;
}


.light-bg {
    background-color: #f5f4ee;
}

.alt-bg {
    background-color: #f5f4ee;
}


.text-red {
    color: red;
}


nav a {
  text-decoration: none;
  color: white;
  font-weight: bold;
  font-family: 'Forum', serif;
  font-size: 1.2rem;
  transition: text-decoration 0.3s ease;
  }

   nav a:hover {
  text-decoration: underline;
  }


     .no-underline-link {
      text-decoration: none;
      color: #29120E; /* color for links */
      font-weight: normal;
    }

    .no-underline-link:hover {
      text-decoration: none;
      color: #f182b9;
    }

    .highlight-cyan {
      color: #f182b9;
      font-weight: normal;
    }
