/* ---- Wider layout ---- */
.wrapper,
.page-content,
main,
.container,
.container-lg,
.container-md,
.container-sm,
.container-xl,
article,
section {
  max-width: 1400px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 16px !important;
  padding-right: 16px !important;
}

/* ---- DataTables comfort ---- */
.table-wrap {
  width: 100%;
  overflow-x: auto;
}

#directory th {
  white-space: nowrap;
}

table.dataTable {
  width: 100% !important;
}

.wrapper .container,
.wrapper .page-content,
.wrapper section,
.wrapper article {
  max-width: 1400px !important;
}

.dataTables_scrollHeadInner,
.dataTables_scrollHeadInner table {
  width: 100% !important;
}

#directory td:nth-child(4) {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 520px;
}

/* ---- Readability ---- */
body {
  line-height: 1.65;
}

p {
  line-height: 1.6;
  margin: 0 0 12px 0;
}

h1 {
  margin-top: 20px;
  margin-bottom: 10px;
  line-height: 1.25;
}

h2 {
  margin-top: 40px;
  margin-bottom: 10px;
  padding-top: 8px;
  line-height: 1.25;
}

h3 {
  line-height: 1.25;
}

ul,
ol {
  margin-bottom: 16px;
  padding-left: 22px;
}

li {
  margin-bottom: 6px;
}

section,
article,
.section {
  margin-bottom: 40px;
}

hr {
  border: none;
  border-top: 1px solid #e5e5e5;
  margin: 30px 0;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 8px 14px;
  margin-right: 8px;
  background: #f5f5f5;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  color: #333;
}

.btn:hover {
  background: #e0e0e0;
}

/* ---- Profile card ---- */
.profile-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  border: 1px solid #e5e5e5;
  padding: 16px;
  border-radius: 8px;
  background: #ffffff;
  margin-top: 12px;
}

.profile-info {
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 700px) {
  .profile-card {
    flex-direction: column;
    align-items: center;
  }

  .profile-info {
    width: 100%;
  }
}
.top-buttons {
  margin-top: 12px;
  margin-bottom: 16px;
}

.top-buttons .btn {
  display: inline-block;
  margin-right: 10px;
}
/* ---- Teaching course cards ---- */
.course-card {
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 18px;
  margin-top: 18px;
  background: #ffffff;
}

.course-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.course-card p strong {
  display: inline-block;
  margin-top: 6px;
}

.course-card ul {
  margin-top: 8px;
  margin-bottom: 14px;
}
