.table_container {
  overflow-x: auto;
  border: 1px solid #ddd;
  padding: 10px;
  background-color: #fff;
  max-width: 100%;
  color: black;
}

.teacher_info_table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

/* Column widths */
.teacher_info_table th:nth-child(1),
.teacher_info_table td:nth-child(1) {
  width: 130px;
  /* ছবি column */
}

.teacher_info_table th:nth-child(2),
.teacher_info_table td:nth-child(2),
.teacher_info_table th:nth-child(3),
.teacher_info_table td:nth-child(3) {
  width: auto;
  /* Let তথ্য and যোগাযোগ fill the rest */
}

/* Table headers and cells */
.teacher_info_table th,
.teacher_info_table td {
  border: 1px solid #ccc;
  padding: 10px;
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}

/* Table header style */
.teacher_info_table th {
  background-color: #f0f0f0;
  font-weight: bold;
}

/* Zebra row and hover effect */
.teacher_info_table tr:nth-child(even) {
  background-color: #fafafa;
}

.teacher_info_table tr:hover {
  background-color: #f5f5f5;
}

/* Employee image */
.official-img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  object-position: top;
  border-radius: 4px;
  border: 1px solid #ccc;
}

/* Info & contact formatting */
.teacher_info_border div {
  margin-bottom: 5px;
}

.teacher_info_border span:first-child {
  display: inline-block;
  min-width: 120px;
  font-weight: bold;
}