.bio-container {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: space-between;
  border: 1px solid #ccc;
  padding: 20px;
  margin: 20px auto;
  width: 100%;
  max-width: 900px;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, #4a4d55, #b0b0b0);
  color: #fff;
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}
.photo-container {
  flex: 0 0 30%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-right: 2px solid rgba(255,255,255,0.3);
  padding: 10px;
}
.photo-container img {
  max-width: 100%;
  max-height: 180px;
  object-fit: contain;
}
.photo-container p {
  width: 100%;
  text-align: center;
  margin-top: 10px;
}
.bio-text {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 1em;
  line-height: 1.5;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  max-width: 100%;
}
.bio-text b,
.bio-text i,
.matrix-mode .bio-text b,
.matrix-mode .bio-text i {
  display: inline !important;
}
@media (max-width: 768px) {
  .bio-container {
    flex-direction: column;
    align-items: center;
    width: 95%;
  }
  .photo-container {
    width: 100%;
    border-right: none;
    border-bottom: 2px solid rgba(255,255,255,0.3);
    padding-bottom: 10px;
    margin-bottom: 10px;
  }
  .bio-text {
    text-align: center;
    padding: 10px;
  }
  .bio-text b, .bio-text i { display: inline !important; }
}
