body {
  font-family: Arial, sans-serif;
  margin: 10px; /* giảm margin tổng thể */
}

header {
  text-align: center;
  margin-bottom: 20px; /* giảm khoảng cách header */
}

header img {
  height: 70px;
}

h1 {
  margin-top: 8px;
  color: #FF0000;
}

.section {
  margin-bottom: 25px; /* giảm khoảng cách giữa các section */
}

.section h2 {
  background: #b71c1c;
  color: #fff;
  padding: 8px;
  text-align: center;
  font-size: 18px;
}

/* Grid layout cho danh sách */
.grid {
  display: grid;
  grid-template-columns: repeat(2, auto); /* 2 cột theo nội dung */
  column-gap: 15px;   /* khoảng cách ngang */
  row-gap: 20px;      /* khoảng cách dọc */
  justify-content: center; /* dồn grid vào giữa */
}

/* Responsive: trên màn hình nhỏ chỉ 1 cột */
@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

.card {
  display: flex;
  align-items: flex-start;
  border: 1px solid #ccc;
  padding: 12px;
  background: #fff;
  cursor: pointer;
  transition: background 0.3s;
  width: 340px;       /* cố định chiều rộng card */
}

.card:hover {
  background: #f5f5f5;
}

.card img {
  width: 65px;
  height: 85px;
  object-fit: cover;
  margin-right: 12px;
  border-radius: 4px;
}

.label {
  color: gray;
  font-weight: bold;
}

.name {
  color: #b71c1c;
}

.workplace {
  color: #000;
}

.card .info {
  flex: 1;
}

.card strong {
  font-size: 15px;
}

.btn {
  display: block;          /* chiếm toàn bộ chiều ngang */
  margin: 8px auto 0;      /* căn giữa theo chiều ngang */
  padding: 6px 12px;
  background: #b71c1c;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
  text-align: center;      /* chữ trong nút căn giữa */
}

.btn:hover {
  background: #880e4f;
}
