table.orgchart {
    width: 80%;
    margin: auto;
    border-spacing: 10px;
    border-collapse: separate;
    font-family: Arial, sans-serif;
  }
  table.orgchart td {
    border: 1px solid black;
    text-align: center;
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    color: black;
    transition: background-color 0.3s ease, color 0.3s ease;
    vertical-align: top;
    word-wrap: break-word;
  }
  table.orgchart td:hover {
    background-color: #133C6A;
    color: white;
  }
  .director {
    background-color: #f5f5f5;
    font-weight: bold;
    font-size: 1.2em;
  }
  .deputy {
    background-color: #f5f5f5;
    font-weight: bold;
    font-size: 1.1em;
  }
  .subordinate {
    background-color: #fff;
  }
  .label {
    font-size: 80%;
	color: inherit;
  }
  .email a {
    color: inherit;
    text-decoration: none;
  }
  .empty {
    border: none;
    background: transparent;
  }

  /* Responsive styles */
  @media (max-width: 1024px) {
    table.orgchart {
      width: 95%;
    }
    table.orgchart td {
      font-size: 0.95em;
      padding: 10px;
    }
  }

  @media (max-width: 768px) {
    table.orgchart {
      width: 100%;
    }
    table.orgchart td {
      display: block;
      width: 100%;
      margin-bottom: 10px;
    }
    table.orgchart tr {
      display: block;
      margin-bottom: 20px;
    }
    .director, .deputy {
      font-size: 1em;
    }
  }

  @media (max-width: 480px) {
    table.orgchart td {
      font-size: 0.85em;
      padding: 8px;
    }
    .director {
      font-size: 1em;
    }
    .deputy {
      font-size: 0.95em;
    }
  }