body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
}

.banner img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  display: block;
}

.container {
  max-width: 1200px;
  /* hoặc 1000px tùy theo bạn muốn rộng hay gọn */
  margin: 0 auto;
  background: white;
  padding: 20px;
}

.news-link {
  color: #0055a5;
  /* Màu gốc */
  text-decoration: none;
  transition: color 0.4s ease;
  /* Chuyển màu mượt */
}

.news-link:hover {
  color: #ED325D;
}

h1 {
  padding: 3%;
  text-align: center;
  color: #183f54;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
  /* để nội dung tin tức không bị căn giữa */
}

.news-item {
  display: flex;
  gap: 15px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 15px;
}

.news-item img {
  width: 150px;
  height: 100px;
  object-fit: cover;
  border-radius: 4px;
}

.news-content {
  flex: 1;
}

.news-title {
  font-weight: bold;
  font-size: 1.1em;
  color: #222;
  margin-bottom: 5px;
}

.news-date {
  font-size: 0.9em;
  color: #777;
  margin-bottom: 10px;
}

.news-description {
  color: #444;
  font-size: 0.95em;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.pagination button {
  background-color: #ff0000;
  color: white;
  border: none;
  padding: 8px 12px;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.pagination button:hover:not(:disabled) {
  background-color: #ff0000;
}

.pagination button.active {
  background-color: #ac0404;
  font-weight: bold;
}

.pagination button:disabled {
  background-color: #ccc;
  cursor: default;
}

.contact {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 10px;
  flex-wrap: wrap;
  background-color: #ff0000;
}

.office {
  flex: 1;
  min-width: 220px;
  border-radius: 8px;
  padding: 15px;
}

.office h3 {
  color: white;
  margin-bottom: 10px;
}

.office p {
  margin: 4px 0;
  font-size: 14px;
  color: white;
}

#backToTopBtn {
  display: none;
  /* Ẩn ban đầu */
  position: fixed;
  bottom: 40px;
  right: 30px;
  z-index: 999;
  font-size: 18px;
  border: none;
  outline: none;
  background-color: #ff0000;
  color: white;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 50%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  transition: opacity 0.3s ease;
}

#backToTopBtn:hover {
  background-color: #b50808;
}

.news-item {
  display: flex;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid #ddd;
}

.news-item img {
  width: 300px;
  height: auto;
  max-height: 200px;
  object-fit: contain;
  /* ✅ Hiển thị toàn bộ ảnh, không cắt */
  border-radius: 6px;
  background-color: #f5f5f5;
  /* nền nhẹ nếu ảnh không đủ chiều rộng */
  padding: 4px;

}

.news-image-link {
  display: block;
  flex-shrink: 0;
}

.news-title-link {
  text-decoration: none;
  transition: color 0.4s ease;
}

.news-title-link .news-title:hover {
  color: #ED325D;
}

.news-content {
  flex: 1;
}

.news-title {
  font-size: 1.2em;
  font-weight: bold;
  color: #b40f0f;
  margin-bottom: 6px;
}

.news-date {
  font-size: 0.85em;
  color: #888;
  margin-bottom: 8px;
}

.news-description {
  font-size: 0.95em;
  color: #444;
  line-height: 1.5;
}

@media screen and (max-width: 1024px) {
  .news-item {
    flex-direction: column;
  }

  .news-item img {
    width: 100%;
    height: auto;
  }

  .banner img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: cover;
    margin-top: 60px; /* nếu cần đẩy xuống tránh header */
  }

  #backToTopBtn {
    display: none !important;
  }
}