/* === Giao diện timeline trái – phải xen kẽ chuẩn === */

.timeline {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  margin-top: 40px;
}

.to-img {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 60px;
  text-align: center;
}

.circle-frame {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 6px solid #999;
  box-shadow: 0 0 8px rgba(0,0,0,0.3);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
}

.circle-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.to-name {
  font-weight: bold;
  margin-top: 12px;
  font-size: 22px;
  color: #000;
  text-align: center;
}

/* Mỗi node */
.node {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-bottom: 80px;
  width: 100%;
  max-width: 1100px;
  position: relative;
}

/* Phái lệch trái */
.node.left .left-info {
  order: 3;
  text-align: left;
  padding-left: 30px;
}
.node.left .mid-dot {
  order: 2;
}
.node.left .right-box {
  order: 1;
}

/* Phái lệch phải */
.node.right .left-info {
  order: 1;
  text-align: right;
  padding-right: 30px;
}
.node.right .mid-dot {
  order: 2;
}
.node.right .right-box {
  order: 3;
}

.left-info, .right-box {
  flex: 1;
}

.left-info {
  font-weight: bold;
  color: #300058;
  font-size: 18px;
  line-height: 1.4;
}

.left-info .xem-sodo {
  display: inline-block;
  color: #c5005a;
  font-weight: bold;
  text-transform: uppercase;
  margin-top: 5px;
  font-family: Georgia, serif;
  font-size: 16px;
  text-decoration: none;
}

.mid-dot {
  width: 44px;
  height: 44px;
  background-color: #fff;
  border: 4px solid #ccc;
  border-radius: 50%;
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 22px;
  color: #b00040;
  margin: 0 20px;
}

.mid-dot::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  width: 3px;
  height: 200px;
  background: #ccc;
  transform: translateX(-50%);
  z-index: -1;
}

.mid-dot::after {
  content: "\f007";
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
}

.right-box {
  background: #fff;
  border-left: 6px solid #b00040;
  padding: 20px 25px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.right-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #300058;
  text-align: left;
}

.avatar {
  width: 90px;
  height: auto;
  border-radius: 10px;
  margin-bottom: 10px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.ghichu-box {
  margin-top: 8px;
  font-style: italic;
  color: #444;
  font-size: 15px;
}

@media (max-width: 768px) {
  .node {
    flex-direction: column;
    align-items: center;
  }

  .left-info, .right-box {
    text-align: center;
    width: 100%;
  }

  .mid-dot {
    margin: 20px 0;
  }
}