body {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 50px;
    padding-bottom: 50px;
}
.container {
    width: 100%;
}

p {
    font-size: 17px;
    line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: auto;
}

/* Keep default list styles for content */
.session-block ul,
.container > .col-md-10 > ul {
    list-style-type: disc;
    margin: 1em 0;
    padding-left: 40px;
}

.session-block li,
.container > .col-md-10 > li {
    display: list-item;
    margin-bottom: 0.3em;
}

/* Nested lists */
.session-block ul ul,
.container ul ul {
    list-style-type: circle;
    margin: 0.2em 0;
}

/* If you have navigation menus, add specific classes for them */
nav ul, ul.nav {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

nav li, ul.nav li {
    display: inline;
}

li a {
    text-align: left;
    padding-right: 16px;
    text-decoration: none;
}

#flex {
  display: flex;
  flex-wrap: wrap;
  padding: 0 4px;
}

/* Create four equal columns that sits next to each other */
.column {
  flex: 25%;
  max-width: 25%;
  padding: 0 4px;
}

.about{
    margin-top: 30px;
    margin-bottom: 10px;
}

.publications{
    margin-bottom: 30px;
}

.column img {
  margin-top: 8px;
  vertical-align: middle;
}

/* Responsive layout - makes a two column-layout instead of four columns */
@media screen and (max-width: 800px) {
  .column {
    flex: 50%;
    max-width: 50%;
  }
}

/* Responsive layout - makes the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 600px) {
  .column {
    flex: 100%;
    max-width: 100%;
  }
}

/* Schedule table styles */
table.schedule {
    border-collapse: collapse;
    width: 100%;
    margin: 20px auto;
    background-color: white;
}

table.schedule td, table.schedule th {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
    vertical-align: top;
    line-height: 1.4;
}

table.schedule th {
    background-color: #0076C0;
    color: white;
    font-weight: bold;
    text-align: center;
}

table.schedule .schedule_week {
    background-color: #0076C0;
    color: white;
    font-weight: bold;
    padding: 10px;
}

table.schedule tr:nth-child(even) {
    background-color: #f9f9f9;
}

table.schedule ul {
    margin: 0.3em 0;
    padding-left: 20px;
}

table.schedule li {
    margin-bottom: 0.2em;
}

table.schedule a {
    color: #0076C0;
    text-decoration: none;
}

table.schedule a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
  .about, .about_img {
      width: 100%;
      margin-left: 15px;
      margin-right: 15px;
  }
  .about_img {
      margin-top: 0;
      margin-bottom: 20px;
      text-align: center;
      order: -1;
  }
  .about_img img {
      max-width: 250px;
      margin: 0 auto;
  }
  .col-md-offset-0 {
      margin-left: 0;
  }
  ul {
      padding-left: 0;
  }
  ul li {
      display: inline-block;
      margin-right: 15px;
  }
  .row {
      display: flex;
      flex-direction: column;
  }
  .hero-banner {
      padding-left: 0 !important;
      padding-right: 0 !important;
      flex: 0 0 100% !important;
  }
  
  .hero-section {
      flex-direction: column !important;
  }
  
  /* Make teaching team cards responsive - stack on mobile */
  div[style*="grid-template-columns: repeat(3, 1fr)"] {
      grid-template-columns: 1fr !important;
  }
  
  /* Make schedule table responsive */
  table.schedule, table.schedule tbody, table.schedule tr, table.schedule td {
      display: block;
      width: 100%;
  }
  
  /* Hide the header row on mobile */
  table.schedule thead,
  table.schedule th {
      display: none;
  }
  
  table.schedule tr {
      margin-bottom: 15px;
      border: 1px solid #ddd;
      background-color: white !important;
  }
  
  table.schedule td {
      text-align: left;
      padding: 10px;
      position: relative;
      border: none !important;
      border-bottom: 1px solid #f0f0f0 !important;
  }
  
  table.schedule td:last-child {
      border-bottom: none !important;
  }
  
  /* Don't show labels for schedule_week rows */
  table.schedule td.schedule_week {
      text-align: center;
      font-size: 1.1em;
      border-bottom: none !important;
  }
  
  table.schedule td.schedule_week:before {
      display: none;
  }
  
  /* Add labels before each cell */
  table.schedule td[data-label]:before {
      content: attr(data-label) ": ";
      font-weight: bold;
      color: #0076C0;
      display: inline;
      margin-right: 5px;
  }
  
  /* Don't show label if content is empty */
  table.schedule td:empty:before {
      display: none;
  }
}