:root{
  --do-nen: #8b1c1c;
  --vang: #ffd54f;
  --vien: #d4af37;
  --xanh: #0d47a1;
}

/* ===== NỀN TRANG ===== */
body {
  font-family: "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #a42626, var(--do-nen));
  margin: 0;
  padding: 0;
  min-height: 100vh;
  color: var(--vang);
}
/* ===== KHUNG CHUNG CHO TIÊU ĐỀ + GHI NHẬN ===== */
.header-box {
    max-width: 100%;
    margin: 6px auto 12px;
    padding: 12px 16px 12px; /* ✅ GIẢM GẦN 50% CHIỀU CAO */
    border-radius: 14px;
    background: linear-gradient(135deg, #5c0f0f, #b71c1c);
    border: 4px solid var(--vien);
    box-shadow: 0 10px 28px rgba(0,0,0,0.35);
    text-align: center;
    position: relative;
    
}

    .header-box h2 {
        font-family: "Times New Roman", serif;
        font-size: clamp(18px, 2vw, 26px);
        font-weight: 900;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        background: linear-gradient( to bottom, #fff6c2, #ffd54f 45%, #e0b73f 75%, #b08a1e );
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        text-shadow: 0 2px 2px rgba(0,0,0,0.6), 0 6px 12px rgba(255,215,0,0.45), 0 0 22px rgba(255,215,0,0.6);
    }

.header-box .subtitle {
  margin-top: 10px;
  font-size: 16px;
  color: #ffe9a6;
  font-style: italic;
  letter-spacing: 0.4px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}

/* ===== KHUNG EBOOK TỔNG ===== */
#container {
  max-width: 1100px;
  margin: 10px auto;
  background: #fffaf0;
  border-radius: 22px;
  padding: 30px;
  box-shadow: 0 12px 25px rgba(0,0,0,0.35);
  border: 6px double var(--vien);
  color: var(--xanh);
  position: relative;
  display: block;
}

/* HOA VĂN 4 GÓC */
#container::before,
#container::after {
  content: "❖";
  position: absolute;
  font-size: 38px;
  color: var(--vien);
}
#container::before { top: 10px; left: 15px; }
#container::after  { top: 10px; right: 15px; }

/* ==================================================
   KHUNG THÀNH TÍCH MỖI NĂM – KHUNG RIÊNG BIỆT RÕ RÀNG
================================================== */
.year-block {
  margin: 10px 0;
  padding: 20px 18px 12px;
  border-radius: 24px;
  background: linear-gradient(to bottom, #c6f7bf, #87ebad);

  /* ✅ VIỀN VÀNG NGOÀI */
  border: 6px double var(--vien);

  /* ✅ VIỀN LÓT TRONG */
  box-shadow:
    inset 0 0 0 3px rgba(212,175,55,0.6),
    0 12px 30px rgba(0,0,0,0.28);

  position: relative;
}

/* ✅ HOA VĂN GÓC KHUNG NĂM */
.year-block::before,
.year-block::after {
  content: "❖";
  position: absolute;
  color: var(--vien);
  font-size: 22px;
}
.year-block::before { top: 12px; left: 16px; }
.year-block::after  { top: 12px; right: 16px; }

/* ===== TIÊU ĐỀ NĂM – CÓ DÒNG KẺ RIÊNG ===== */
.year-block h3 {
  text-align: center;
  font-size: 22px;
  color: #b71c1c;
  margin: 0 0 26px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-weight: 900;
  padding-bottom: 14px;
  position: relative;
}

/* ✅ DÒNG KẺ VÀNG PHÂN CÁCH GIỮA TIÊU ĐỀ & BẢNG */
.year-block h3::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 70%;
  height: 4px;
  background: linear-gradient(
    to right,
    transparent,
    var(--vien),
    transparent
  );
  transform: translateX(-50%);
}

/* ==================================================
                 BẢNG THÀNH TÍCH
================================================== */
.year-block table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 16px;
  overflow: hidden;

  /* ✅ VIỀN BẢNG RIÊNG */
  border: 4px solid var(--vien);

  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

/* ===== DÒNG TIÊU ĐỀ BẢNG ===== */
.year-block th {
  background: linear-gradient(135deg, #7a1313, #b71c1c);
  color: var(--vang);
  font-weight: bold;
  padding: 12px 8px;
  border: 2px solid var(--vien);
  text-align: center;
  font-size: 14px;
}

/* ===== Ô DỮ LIỆU ===== */
.year-block td {
  padding: 10px 8px;
  border: 2px solid #e0c97a;
  color: var(--xanh);
  text-align: center;
  font-size: 14px;
}

/* ===== HÀNG SO LE ===== */
.year-block tbody tr:nth-child(even) {
  background: #fff4c2;
}

.year-block tbody tr:hover {
  background: #ffe082;
  transition: 0.2s;
}

/* ===== ẢNH TRONG BẢNG ===== */
.year-block td img {
  width: 50px;
  height: 66px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid var(--vien);
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

/* ===== THẺ VINH DANH (NẾU CÒN DÙNG) ===== */
.card {
  background: linear-gradient(145deg, #fff8e1, #fff3c0);
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  display: flex;
  gap: 15px;
  padding: 14px;
  border: 4px solid var(--vien);
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-6px);
}

.card img {
  width: 90px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid var(--vien);
}

.info {
  flex: 1;
  font-size: 14px;
  color: var(--xanh);
}

.info h3 {
  margin: 0 0 6px;
  font-size: 14px;
  color: #b71c1c;
  font-weight: 800;
}

.info p {
  margin: 4px 0;
}

.empty {
  text-align: center;
  color: #555;
  margin-top: 40px;
  font-style: italic;
}

/* ===== ÉP MÀU CHỮ CHO VÙNG NỘI DUNG ĐỌC ===== */
#container,
.year-block,
.year-block table {
    color: #1f2937; /* xám xanh đậm – đọc cực rõ */
}

    /* Nội dung ô bảng */
    .year-block td {
        color: #1f2937;
    }

        /* Thành tích dài */
        .year-block td:nth-child(5) {
            text-align: left;
            line-height: 1.5;
            color: #374151;
        }

        /* Ngày ghi nhận */
        .year-block td:nth-child(6) {
            font-size: 12px;
            color: #6b7280;
        }


