@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Thai:wght@400;500;600;700&display=swap');

/* Add spacing between nav-items */
.nav-item {
  margin-left: 1em;
  margin-right: 1em;
  font-size: 1.25em;
}

nav {
  background-color: #fff;
}


body {
  background-color: #f0ece3;
  color: #5b5b5a;
  font-family: 'IBM Plex Sans Thai', Arial, Helvetica, sans-serif;
  --bs-body-font-family: 'IBM Plex Sans Thai';
}


h1,
h2,
h3 {
  color: #5b5b5a;
  text-decoration: none;
  margin-top: 20px;
  margin-bottom: 20px;
}

h4 {
  color: #5b5b5a;
  text-decoration: none;
  margin: 10px 0px;
}

html {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
}

a {
  color: #5b5b5a;
  text-decoration: none;
}


th,
td {
  padding: 4px 12px;
  word-break: break-word;
}


.hero {
  /* background: url('https://linguistics.mit.edu/wp-content/themes/linguistics/assets/images/hero.jpg') no-repeat center center/cover; */
  color: rgb(15, 0, 0);
  padding: 15px 0px;
  text-align: left;
}

.section-title {
  border-bottom: 3px solid #d61a1f;
  display: inline-block;
}


.footer {
  background: #ffffff;
  color: #5b5b5a;
  padding: 10px 0;
  text-align: center;
  height: 100%;
  z-index: 999;
  width: 100%;
}

.navbar {
  top: 0;
  position: fixed;
  width: 100%;
  z-index: 1000;
  font-size: clamp(12px, 1.8vw, 14px);
}




.navbar-nav .dropdown:hover .dropdown-menu {
  display: block;
  margin-top: 0;
  font-size: clamp(12px, 1.8vw, 14px);
}

* {
  box-sizing: border-box;
}



.column {
  float: left;
  width: 25%;
  padding: 0 10px;
}


.row {
  margin: 0 -5px;
  display: flex;
  justify-content: center;
  align-items: center;
}


.row:after {
  content: "";
  display: table;
  clear: both;
}

.card {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  margin: 0px 10px;
  text-align: left;
  background-color: #f1f1f1;
}

.half-box {
  width: 50%;
  padding: 0px;
  margin-bottom: 20px;
}

.half-box a {
  text-decoration: none;
  color: inherit;
  display: block;

}

.quater-box {
  width: 25%;
  padding: 0px;
  margin-bottom: 20px;
}

.quater-box a {
  text-decoration: none;

  color: inherit;

  display: block;

}

.image-container {
  position: relative;
  display: inline-block;
  width: 100%;
}

.overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 3vw;
  font-weight: bold;
  text-align: center;
  text-shadow: 5px 5px 1px rgba(31, 31, 31, 0.7);
  padding: 1vw 2vw;
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease;
}

.image-container:hover .overlay-text {
  opacity: 1;
  visibility: visible;
  white-space: nowrap;
}

.main-text {
  font-size: 3vw;
  font-weight: bold;
}

.subtext {
  font-size: 2vw;
  font-weight: normal;
  margin-top: 0.5vw;
}

.half-box:hover {
  opacity: 0.6;
  transition: opacity 0.5s ease
}

.quater-box:hover {
  opacity: 0.6;
  transition: opacity 0.5s ease
}


.sidenav {

  position: fixed;
  top: 60px;

  left: 0;
  width: 200px;

  background-color: #f8f9fa4e;
  padding: 20px;
  height: calc(100% - 60px);
  overflow-y: auto;

  z-index: 998;

}

.sidenav a {
  display: block;
  padding: 10px 20px;
  text-decoration: none;
  color: #5b5b5a;
}

.sidenav a:hover {
  background-color: #ddd;
}

.main-content {
  margin-left: 0px;
  padding: 20px;
  margin-top: 20px;
  min-height: 100%;
  padding-top: 80px;
}

.img-member {
  width: 200px;
  max-width: 100%;
  height: 250px;
  border-radius: 5%;
  object-fit: cover;
  margin: 10px;
}

.img-schedule {  width: 80%;
  max-width: 100%;
  height:75%;
  border-radius: 5%;
  margin: 10px;
  justify-content: center;
  align-items: center;

}

.main-content p {
  word-wrap: break-word;
  /* margin-left: 10px; */


}

.row.mb-4 {
  display: flex;
  align-items: center;
}

#link-text {
  text-decoration: underline;
  font-style: italic;
}

/* Responsive adjustments */
@media (min-width: 768px) {
  .column {
    width: 100%;
    display: block;
    margin-bottom: 20px;
  }

  .sidenav {
    padding-top: 80px;
  }

  /* .main-content {
      margin-left: 170px; 
  } */
  .half-box {
    width: 50%;
  }

  .quater-box {
    width: 25%;
    /* 2 items per row */
  }


  body {
    font-size: clamp(12px, 1.8vw, 14px);
  }

  h1 {
    font-size: clamp(26px, 1.8vw, 30px);
  }

  h2 {
    font-size: clamp(22px, 1.8vw, 26px);
  }

  h3 {
    font-size: clamp(20px, 1.8vw, 22px);
  }

  h4 {
    font-size: clamp(16px, 1.8vw, 20px);
  }

  .course-name-col {
    width: 50%;
    white-space: nowrap;
  }

  .people-name-col {
    width: 20%;
    white-space: nowrap;
  }

}

@media (max-width: 767px) {
  .column {
    width: 100%;
    display: block;
    margin-bottom: 20px;
  }

  .sidenav {
    display: none;
  }

  .main-content {
    margin-left: 0px;
  }

  .half-box {
    width: 100%;
  }

  .quater-box {
    width: 100%;
  }


  body {
    font-size: clamp(12px, 1.8vw, 14px);
    align-content: center;
  }

  h1 {
    font-size: clamp(26px, 1.8vw, 30px);
  }

  h2 {
    font-size: clamp(22px, 1.8vw, 26px);
  }

  h3 {
    font-size: clamp(20px, 1.8vw, 22px);
  }

  h4 {
    font-size: clamp(16px, 1.8vw, 20px);
  }

  .center-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
  }

  .course-name-col {
    width: 60%;
    white-space: nowrap;
  }

  .people-name-col {
    width: 20%;
    white-space: nowrap;
  }
}

@media (max-width: 576px) {
  .column {
    width: 100%;
    display: block;
    margin-bottom: 20px;
  }

  .sidenav {
    display: none;
  }

  .main-content {
    margin-left: 0px;
  }

  .half-box {
    width: 100%;
  }

  .quater-box {
    width: 100%;
  }


  body {
    font-size: clamp(12px, 1.8vw, 14px);
    align-content: center;
  }

  h1 {
    font-size: clamp(26px, 1.8vw, 30px);
  }

  h2 {
    font-size: clamp(22px, 1.8vw, 26px);
  }

  h3 {
    font-size: clamp(20px, 1.8vw, 22px);
  }

  h4 {
    font-size: clamp(16px, 1.8vw, 20px);
  }

  .center-container {
    display: flex;
    justify-content: center;
    /* horizontal */
    align-items: center;
    /* vertical */
    min-height: 100vh;
    /* full viewport height */
    text-align: center;
  }

  .course-name-col {
    width: 60%;
    white-space: nowrap;
  }

  .people-name-col {
    width: 20%;
    white-space: nowrap;
  }
}