.table_container {
  overflow-x: auto;
  margin: 20px 0;
}

.title_header {
  font-size: 29px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
  text-align: center;
  color: #7F3997;

}

.teacher_info_table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
  background: transparent;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  font-family: 'Segoe UI', sans-serif;
  color: black;
}

.teacher_info_table th,
.teacher_info_table td {

  text-align: left;
  vertical-align: top;
}

.teacher_info_table th {
  background-color: #f0f0f0;
  text-align: center;
  font-weight: bold;
}

.bg-table-color {
  background-color: #EEEEEE !important;
}

.official-img {
  width: 100px;
  height: 113px;
  object-fit: cover;
  border-radius: 5px;
  object-position: top;
  display: block;
  margin: 0 auto;
}

.teacher_info_table tr {
  background-color: #e8e8e8;
}

.teacher_info_border div {
  border: 1px solid #ccc;
  padding: 6px;
  background: transparent;
  display: flex;
  gap: 0px;
  align-items: center;
  height: 40px;
}

.index_colum {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  flex-grow: 1;
}

.teacher_info_border div span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.teacher_info_border span:first-child {
  font-weight: 600;
  min-width: 90px;
  color: #444;
}

@media (max-width: 768px) {

  .teacher_info_table,
  .teacher_info_table thead,
  .teacher_info_table tbody,
  .teacher_info_table th,
  .teacher_info_table td,
  .teacher_info_table tr {
    display: block;
    width: 100%;
  }

  .teacher_info_table thead {
    display: none;
  }

  .teacher_info_table tr {
    margin-bottom: 20px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
  }

  .teacher_info_table td {
    border: none;
    position: relative;
    padding-left: 50%;
    padding-top: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
  }

  .teacher_info_table td:last-child {
    border-bottom: none;
  }

  .teacher_info_table td::before {
    content: attr(data-label);
    position: absolute;
    top: 10px;
    left: 10px;
    font-weight: bold;
    width: 45%;
    padding-right: 10px;
    white-space: nowrap;
    color: #222;
  }

  .official-img {
    width: 80px;
    height: 90px;
  }
}