/* =========================================================
   table-style.css
   Beautified & responsive styling for the UG Syllabus
   Faculty of Arts table.
   Scoped under .mu-tbl-* to avoid conflicts with
   existing site CSS.
   ========================================================= */

/* Responsive wrapper (table shrinks to fit the screen, no scrolling) */
.mu-tbl-wrap {
  width: 100%;
  margin: 20px 0;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.mu-tbl-beautified {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  border-spacing: 0;
  background: #ffffff;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 15px;
  color: #333333;
  box-shadow: none;
}

/* Faculties title row */
.mu-tbl-beautified thead tr.mu-tbl-title th {
  background: #1a2e4f;
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-align: left;
  padding: 14px 18px;
  border: none;
}

.mu-tbl-beautified thead tr.mu-tbl-title th:after {
  display: none;
}

/* Column header row */
.mu-tbl-beautified thead tr.mu-tbl-head th {
  background-color: #2d4a7a !important;
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  padding: 12px 18px;
  border: 1px solid #27406a;
  cursor: pointer;
  position: relative;
  -webkit-user-select: none;
  user-select: none;
  overflow-wrap: break-word;
}

.mu-tbl-beautified thead tr.mu-tbl-head th:hover {
  background-color: #3a5b93 !important;
}

/* Sort indicators */
.mu-tbl-beautified thead tr.mu-tbl-head th .mu-sort-icon {
  display: inline-block;
  margin-left: 6px;
  opacity: 0.55;
  font-size: 12px;
}

.mu-tbl-beautified thead tr.mu-tbl-head th.mu-sorted-asc .mu-sort-icon:after {
  content: "\25B2";
}

.mu-tbl-beautified thead tr.mu-tbl-head th.mu-sorted-desc .mu-sort-icon:after {
  content: "\25BC";
}

.mu-tbl-beautified thead tr.mu-tbl-head th:not(.mu-sorted-asc):not(.mu-sorted-desc) .mu-sort-icon:after {
  content: "\25B4";
  opacity: 0.4;
}

/* Data cells */
.mu-tbl-beautified tbody td {
  padding: 12px 18px;
  border: 1px solid #e6e9ef;
  vertical-align: middle;
  overflow-wrap: break-word;
  word-break: break-word;
}

.mu-tbl-beautified tbody tr:nth-child(even) td {
  background: #f5f7fb;
}

.mu-tbl-beautified tbody tr:hover td {
  background: #eef2fb;
}

/* First column (Programme) emphasis */
.mu-tbl-beautified thead tr.mu-tbl-head th:first-child,
.mu-tbl-beautified tbody td:first-child {
  width: 30%;
}

.mu-tbl-beautified tbody td:first-child {
  font-weight: 600;
  color: #1a2e4f;
}

/* Links inside the table */
.mu-tbl-beautified tbody td a {
  color: #2d4a7a;
  text-decoration: none;
  font-weight: 500;
}

.mu-tbl-beautified tbody td a:hover {
  color: #c0392b;
  text-decoration: underline;
}

/* Responsive: reduce padding on small screens */
@media screen and (max-width: 767px) {
  .mu-tbl-beautified {
    font-size: 14px;
  }

  .mu-tbl-beautified thead tr.mu-tbl-title th {
    font-size: 16px;
    padding: 12px 14px;
  }

  .mu-tbl-beautified thead tr.mu-tbl-head th,
  .mu-tbl-beautified tbody td {
    padding: 10px 8px;
  }

  /* Programme column wider for readability, years share the rest */
  .mu-tbl-beautified thead tr.mu-tbl-head th:first-child,
  .mu-tbl-beautified tbody td:first-child {
    width: 32%;
  }
}
