body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #f9f9f9;
}

/* ✅ Container không còn padding-top */
.container {
  margin-top: 0 !important;  /* ép không có margin-top */
  padding-top: 0 !important; /* ép không có padding-top */
  padding: 0 5px; /* chỉ còn padding ngang */
  max-width: 1200px;
  margin: 0 auto;
}

/* Reset margin mặc định cho heading và p */
h1, h2, h3, h4, h5, h6, p {
  margin: 0;
}

/* Tiêu đề chính */
#tieuDe {
  text-align: center;
  margin-bottom: 10px;
  font-size: 24px;
  font-weight: bold;
}

/* Button group */
.button-group {
  display: flex;
  justify-content: space-around;
  margin: 10px 0;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.button-group button {
  flex: 1;
  padding: 12px 0;
  font-size: 16px;
  border: none;
  background: none;
  cursor: pointer;
  transition: background 0.3s;
}
.button-group button:hover {
  background: #eee;
}
.button-group button.active {
  background: #d0d0d0;
  font-weight: bold;
}

/* Nội dung ẩn/hiện */
.content {
  display: none;
  margin-top: 5px;
  background: white;
  padding: 5px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.content.active {
  display: block;
}

/* Timeline */
.timeline-container {
  display: flex;
  flex-direction: column;
  background: #f9f9f9;
}
.day-block {
  border-left: 4px solid #4caf50;
  background: #fff;
  padding: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.day-block h2 {
  margin-bottom: 10px; /* chỉ cách dưới */
  color: #8B0000;
}
.day-block ul {
  list-style-type: disc;
  padding-left: 20px;
}

@media screen and (max-width: 600px) {
  .day-block { padding: 5px; }
}

/* Panel Ảnh - Chữ */
.panel_AnhChu {
  display: flex;
  gap: 10px;
  align-items: stretch;
  padding: 5px;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
}
.cotTrai {
  width: 40%;
  display: flex;
  align-items: center;
}
.cotPhai {
  width: 60%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 80px;
  padding: 5px;
}
.cotTrai_Anh img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 5px;
  display: block;
}
.cotPhai_tieuDe {
  font-size: 18px;
}
.cotPhai_tieuDe a {
  text-decoration: none;
  color: #2c2c2c;
}
.cotPhai_thoiKhoa {
  margin-top: auto;
  color: #666;
  font-size: 14px;
}

/* Section title */
.section-title {
  display: flex;
  align-items: flex-end;
  font-size: 20px;
  font-weight: bold;
  color: #00acc1;
  font-family: "Segoe UI", Arial, sans-serif;
  text-transform: uppercase;
  margin: 0 16px 8px; /* bỏ margin-top */
}
.section-title::after {
  content: "";
  flex-grow: 1;
  height: 2px;
  background-color: #00acc1;
  margin-left: 10px;
  margin-bottom: 5px;
  margin-right: 12px;
}

/* Ảnh trong ngày */
.anhTrongNgay {
  width: 18%;
  height: 40px;
  object-fit: cover;
  border-radius: 3px;
  cursor: pointer;
  display: block;
}
.anh-row {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  justify-content: flex-start;
  align-items: stretch;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 12px;
    margin-right: 6px;
  }
  .anhTrongNgay { height: 80px; }
}
@media (min-width: 1200px) {
  .section-title { font-size: 22px; }
  .anhTrongNgay { height: 100px; }
}

/* Lightbox */
#lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
#lightbox img {
  max-width: 90%;
  max-height: 90%;
  box-shadow: 0 0 10px #fff;
  border-radius: 8px;
}

/* Comment form */
.comment-form-card {
  background: #fff;
  padding: 20px;
  margin-bottom: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.comment-form-card h3 {
  margin-bottom: 15px;
  font-size: 1.25rem;
  color: #333;
}
.comment-form-card .form-row { margin-bottom: 12px; }
.comment-form-card input,
.comment-form-card textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  resize: vertical;
}
.comment-form-card .form-actions { text-align: right; }
.comment-form-card button {
  background-color: #4CAF50;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color .2s;
}
.comment-form-card button:hover { background-color: #45a049; }

/* Comment list */
.comment-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.comment-card {
  background: #fff;
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.comment-header {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}
.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 12px;
}
.comment-author {
  font-weight: 600;
  font-size: 1rem;
  color: #222;
}
.comment-time {
  font-size: 0.85rem;
  color: #888;
}
.comment-content {
  font-size: 1rem;
  line-height: 1.5;
  color: #333;
  white-space: pre-wrap;
}

/* Rainbow text */
.rainbow-text {
  font-size: 25px;
  font-weight: bold;
  text-align: center;
  background: linear-gradient(
    270deg,
    red,
    orange,
    yellow,
    green,
    blue,
    indigo,
    violet,
    red
  );
  background-size: 1500% 1500%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rainbow 2s linear infinite;
}
@keyframes rainbow {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}
