/* @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap'); */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* ✅ THAY THẾ 'Poppins' BẰNG 'Montserrat' */
    font-family: 'Montserrat', sans-serif;
}

/* Thêm định nghĩa animation Ken Burns vào đầu file */
@keyframes kenburns {
    0% {
        transform: scale(1) translate(0, 0);
    }
    25% {
        transform: scale(1.05) translate(-20px, 10px);
    }
    50% {
        transform: scale(1.1) translate(15px, -15px);
    }
    75% {
        transform: scale(1.15) translate(5px, 20px);
    }
    100% {
        transform: scale(1.2) translate(-20px, 15px);
    }
}

/* Định nghĩa animation cho mắt rồng */
@keyframes pulsating-glow {
    0% {
        opacity: 0.7;
        box-shadow: 0 0 15px 5px rgba(255, 255, 0, 0.7);
    }
    100% {
        opacity: 1;
        transform: rotate(30deg) scale(1.1);
        box-shadow: 0 0 25px 10px rgba(255, 255, 0, 0.9);
    }
}

body {
	display: block;
	min-height: 100vh;
	background-color: #000;
	padding-top: 50px;
	padding-bottom: 50px;
    position: relative;
    overflow: hidden;
}

/* ✅ LỚP GIẢ NÀY KHÔNG CÒN ĐƯỢC DÙNG ĐỂ CHỨA NỀN NỮA */
body::before {
    content: none;
}

/* ✅ THÊM: KHUNG CHỨA MỚI CHO NỀN VÀ MẮT RỒNG */
#background-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden; /* Đảm bảo ảnh không tràn ra ngoài khi zoom */
}

/* ✅ THÊM: HÌNH ẢNH NỀN ĐỘNG */
#animated-background-img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Tương tự background-size: cover */
    animation: kenburns 200 ease-out infinite alternate;
}

.overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.15);
	z-index: -1; 
}

#tsparticles {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

/* ... Toàn bộ các quy tắc cho header, navigation, site-footer giữ nguyên ... */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  background-color: transparent;
}

.navigation a {
	position: relative;
	display: inline-block;
	font-size: 1.1em;
	color: #fff;
	text-decoration: none;
	font-weight: 500;
	margin-left: 40px;
	transition: transform 0.25s ease, color 0.25s ease, text-shadow 0.25s;
	text-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
}

.navigation a::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: -6px;
	width: 100%;
	height: 3px;
	background: #fff;
	border-radius: 5px;
	transform-origin: right;
	transform: scaleX(0);
	transition: transform .5s ease;
}

.navigation a:hover {
	color: #ffffff;
	text-shadow: 0 0 10px #ffffff;
	transform: scale(1.18);
}

.navigation a:hover::after {
	transform-origin: left;
	transform: scaleX(1);
}

.navigation a:active {
	transform: scale(0.95);
	filter: brightness(0.85);
}

.navigation .btnLogin-popup {
	width: 200px;
	height: 50px;
	background: transparent;
	border: 2px solid #fff;
	outline: none;
	border-radius: 6px;
	cursor: pointer;
	font-size: 1.1em;
	color: #fff;
	font-weight: 500;
	margin-left: 40px;
	transition: all 0.3s ease;
	display: inline-block;
}

.navigation .btnLogin-popup:hover {
	background: #fff;
	color: #162938;
	transform: scale(1.08);
	box-shadow: 0 0 10px #ffffffaa;
}

.navigation .btnLogin-popup:active {
	transform: scale(0.96);
}

.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 0.85em;
  padding: 5px 100px;
  z-index: 999;
}

.footer-container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  max-width: 2000px;
  margin: 0 auto;
  gap: 100px;
}

.footer-logo {
  height: 60px;
   width: 150px;
  object-fit: contain;
}

.footer-text {
  font-size: 0.8em;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

.footer-text p {
  margin: 6px 0;
}

/* ✅ BỘ QUY TẮC CHO MẮT RỒNG (BÂY GIỜ SẼ NẰM BÊN TRONG KHUNG NỀN ĐỘNG) */
.dragon-eye-glow {
    position: absolute;
    
    /* Giữ lại giá trị bạn đã tinh chỉnh, nó sẽ hoạt động đúng trong hệ tọa độ mới */
    top: 12.42%;
    left: 40.24%;

    width: 16px; 
    height: 8px;
    border-radius: 50%; /* Tạo hình elip */
    background-color: rgba(255, 255, 255, 0.9);
    transform: rotate(30deg); /* Xoay elip đi một góc */
    animation: pulsating-glow 2s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 1; /* Nằm trên thẻ img nền */
}

.navigation .nav-button {
    display: inline-block;
    width: auto;
    /* Dùng padding thay vì width cố định để linh hoạt hơn */
    padding: 0 20px;
    height: 50px;
    line-height: 50px; /* Căn chữ ra giữa theo chiều dọc */
    background: transparent;
    border: 2px solid #fff;
    outline: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1em;
    color: #fff;
    font-weight: 500;
    margin-left: 20px;
    text-decoration: none; /* Bỏ gạch chân cho thẻ <a> */
    text-align: center;
    transition: all 0.3s ease;
}

.navigation .nav-button:hover {
    background: #fff;
    color: #162938;
    transform: scale(1.05);
    box-shadow: 0 0 10px #ffffffaa;
}

/* Tinh chỉnh khoảng cách cho nút đăng xuất */
.navigation .nav-button.logout {
    margin-left: 10px;
    /* Có thể đổi màu riêng cho nút đăng xuất nếu muốn */
    /* border-color: #ff7675; */
}

.wrapper {
	position: relative;
	width: 400px;
	min-height: 440px;
	background: transparent;
	border: 2px solid rgba(255, 255, 255, .5);
	border-radius: 20px;
	backdrop-filter: blur(20px);
	box-shadow: 0 0 30px rgba(0, 0, 0, .5);
	display: flex;
	justify-content: center;
	align-items: center;
	overflow: hidden;
	transform: scale(0);
	transition: transform .5s ease, height .2s ease;
	margin-top: 60px;
	z-index: 20;
	margin-left: auto;
	margin-right: auto;
}

.wrapper.active-popup {
	transform: scale(1);
}

.wrapper .form-box {
	width: 100%;
	padding: 40px;
}

.wrapper .form-box.login {
	transition: transform .18s ease;
	transform: translateX(0);
}

.wrapper.active .form-box.login {
	transition: none;
	transform: translateX(-400px);
}

.wrapper .form-box.register {
	position: absolute;
	width: 100%;
	padding: 40px;
	transition: transform 0.18s ease;
	transform: translateX(400px);
}

.wrapper.active .form-box.register {
	transition: transform .18s ease;
	transform: translateX(0);
}

.wrapper .icon-close {
	position: absolute;
	top: 15px;
	right: 15px;
	width: 40px;
	height: 40px;
	background: #162938;
	font-size: 1.8em;
	color: #fff;
	display: flex;
	justify-content: center;
	align-items: center;
	border-radius: 8px;
	cursor: pointer;
	z-index: 1000;
	transition: transform 0.2s ease;
}

@media screen and (max-width: 500px) {
  .wrapper .icon-close {
	top: 10px;
	right: 10px;
	width: 35px;
	height: 35px;
	font-size: 1.5em;
  }
}

.wrapper .icon-close:hover {
	transform: scale(1.1);
	background: #203d55;
}

.form-box h2 {
	font-size: 2em;
	color: #162938;
	text-align: center;
}

.input-box {
	position: relative;
	width: 100%;
	height: 50px;
	border-bottom: 2px solid #162938;
	margin: 30px 0;
}

.input-box label {
	position: absolute;
	top: 50%;
	left: 5px;
	transform: translateY(-50%);
	font-size: 1em;
	color: #162938;
	font-weight: 500;
	pointer-events: none;
	transition: .5s;
}

.input-box input:focus~label,
.input-box input:valid~label {
	top: -5px;
}

.input-box input {
	width: 100%;
	height: 100%;
	background: transparent;
	border: none;
	outline: none;
	font-size: 1em;
	color: #162938;
	font-weight:600;
	padding: 0 35px 0 5px;
}

.input-box .icon {
	position: absolute;
	right: 8px;
	font-size: 1.2em;
	color: #162938;
	line-height: 57px;
}

.remember-forgot {
	font-size: .9em;
	color: #162938;
	font-weight: 500;
	margin: -15px 0 15px;
	display: flex;
	justify-content: space-between;
}

.remember-forgot label input {
	accent-color: #162938;
	margin-right: 3px;
}

.remember-forgot a {
	color: #162938;
	text-decoration: none;
}

.remember-forgot a:hover {
	text-decoration: underline;
}

.btn {
	width: 100%;
	height: 45px;
	background: #162938;
	border: none;
	outline: none;
	border-radius: 6px;
	cursor: pointer;
	font-size: 1em;
	color: #fff;
	font-weight: 500;
}

.login-register {
	font-size: .9em;
	color: #162938;
	text-align: center;
	font-weight: 500;
	margin: 25px 0 10px;
}

.login-register p a {
	color: #162938;
	text-decoration: none;
	font-weight: 600;
}

.login-register p a:hover {
	text-decoration: underline;
}

/* Style cho icon hiển thị/ẩn mật khẩu */
.input-box .toggle-password {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1.2em;
    color: #162938;
    line-height: 57px;
    z-index: 2; /* Đảm bảo icon luôn nằm trên input */
}

/* 👁 icon – nút ẩn/hiện mật khẩu */
.input-box .toggle-password {
  position: absolute;
  right: 35px; /* Đẩy ra trước icon ổ khóa */
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 1.2em;
  color: #162938;
  z-index: 2;
}

/* 🔒 icon – ổ khóa */
.input-box .icon {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2em;
  color: #162938;
}

/* Input chừa chỗ 2 icon bên phải */
.input-box input {
  padding-right: 65px; /* đủ chỗ cho 👁 + 🔒 */
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid #fff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.btn-text.success {
  color: #28a745;
  font-weight: bold;
}

#info-panel .icon-close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 35px;
	height: 35px;
	background: #162938;
	color: #fff;
	font-size: 1.5em;
	display: flex;
	justify-content: center;
	align-items: center;
	border-radius: 8px;
	cursor: pointer;
	z-index: 999;
	transition: transform 0.2s ease;
}

#info-panel .icon-close:hover {
	transform: scale(1.1);
	background: #203d55;
}


.register-popup {
  position: fixed;
  top: 100px;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 800px;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  padding: 40px;
  transition: transform 0.5s ease;
}

.register-popup.active {
  transform: translateX(-50%) scale(1);
}

.register-popup .form-box {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 20px;
}

.register-popup .form-grid {
  display: flex;
  gap: 30px;
  width: 100%;
}

.register-popup .column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.register-popup h2 {
  width: 100%;
  text-align: center;
  font-size: 2em;
  color: #162938;
  margin-bottom: 20px;
}

.register-popup .input-box {
  position: relative;
  width: 100%;
  height: 30px;
  border-bottom: 2px solid #162938;
  margin: 10px 0;
}

.register-popup .input-box label {
  position: absolute;
  top: 50%;
  left: 5px;
  transform: translateY(-50%);
  font-size: 1em;
  color: #162938;
  font-weight: 500;
  pointer-events: none;
  transition: .5s;
}

.register-popup .input-box input:focus ~ label,
.register-popup .input-box input:valid ~ label {
  top: -5px;
}

.register-popup .input-box input {
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-size: 1em;
  color: #162938;
  font-weight: 600;
  padding: 0 35px 0 5px;
}

.register-popup .input-box .icon {
  position: absolute;
  right: 8px;
  font-size: 1.2em;
  color: #162938;
  line-height: 57px;
}

.register-popup .remember-forgot {
  font-size: .9em;
  color: #162938;
  font-weight: 500;
  display: flex;
  justify-content: start;
  margin: 10px 0;
}

.register-popup .form-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.register-popup .form-actions .btn {
  width: 220px;
  max-width: 100%;
  text-align: center;
}

.register-popup .form-actions .login-register {
  margin: 0;
  text-align: center;
}

.register-popup .login-register {
  font-size: .9em;
  color: #162938;
  text-align: center;
  font-weight: 500;
  margin: 20px 0 10px;
}

.register-popup .login-register p a {
  color: #162938;
  text-decoration: none;
  font-weight: 600;
}

.register-popup .login-register p a:hover {
  text-decoration: underline;
}

.register-popup .icon-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background: #162938;
  font-size: 1.8em;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.register-popup .icon-close:hover {
  transform: scale(1.1);
  background: #203d55;
}

.news-date {
    font-size: 11px;
    color: #fff;
    font-weight: normal;
    margin-top: 2px;
}

.captcha-row {
  margin-bottom: 20px;
  padding: 0;
}

.captcha-container {
  display: flex;
  gap: 10px;
  width: 100%;
  align-items: center;
}

.captcha-img-wrapper {
  width: 50%;
  height: 45px;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
}

.captcha-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
}

.captcha-container input[type="text"] {
  width: 50%;
  height: 45px;
  padding: 0 12px;
  font-size: 1em;
  border: 1px solid #999;
  border-radius: 6px;
  outline: none;
  box-sizing: border-box;
  background-color: #fff;
  color: #000;
  font-weight: bold;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.15);
  text-align: center;
}


.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  background: transparent;
  box-shadow: 0 0 15px #ffffff;
  transition: all 0.4s ease;
  margin-left: -20px;
  margin-top: 5px;
  cursor: pointer;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: transparent;
}

.logo:hover {
  transform: scale(1.25);
  box-shadow: 0 0 40px 15px #ffffffee;
  filter: brightness(1.3) contrast(1.2);
}

.logo:active {
  transform: scale(0.95);
  box-shadow: 0 0 8px #ffffffaa;
}

.logo-box {
  display: flex;
  justify-content: center; /* canh ngang */
  align-items: center;     /* canh dọc */
  width: 120px;            /* bạn có thể chỉnh 100–140 tùy ý */
  height: 100px;           /* chiều cao ô logo */
  background: transparent;
}

.logo-box img {
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.footer-logo {
  width: 200px !important;  /* hoặc 200px tuỳ bạn */
  height: 100px  !important;
  object-fit: contain;
  display: block;
  margin: 10px auto;
}



/* style/download.css - PHIÊN BẢN CUỐI CÙNG, CÓ GHI CHÚ ĐẦY ĐỦ */

/* =================================================================== */
/* 1. KHUNG POPUP CHÍNH                                               */
/* =================================================================== */
#download-popup {
    /* --- Vị trí & Kích thước --- */
    position: fixed;
    top: 120px; 
    left: 50%;
    width: 600px;
    max-width: 90%; 

    /* --- Giao diện & Hiệu ứng --- */
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    padding: 30px 40px;

    /* --- Hiệu ứng & Biến đổi --- */
    transform: translateX(-50%) scale(0);
    transform-origin: top center; 
    transition: transform 0.4s ease;
}

#download-popup.active {
    transform: translateX(-50%) scale(1);
}

/* =================================================================== */
/* 2. CÁC THÀNH PHẦN NỘI DUNG BÊN TRONG                                */
/* =================================================================== */

.download-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}
.download-section:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.section-title {
    display: flex;
    align-items: center;
    font-size: 1.2em;
    color: #162938;
    margin-bottom: 5px;
}
.section-title ion-icon {
    font-size: 1.4em;
    margin-right: 8px;
    color: #162938;
}

.version-note {
    font-size: 0.9em;
    text-align: left;
    color: #333;
    margin-bottom: 15px;
    padding-left: 30px;
}

.link-group {
    display: flex;
    justify-content: center;
    gap: 10px;
}
/* Kiểu dáng của từng nút trong nhóm */
.link-group a {
    flex: 1;
    padding: 10px;
    color: #fff;
    background-color: #28a745;
    border-radius: 6px;
    text-decoration: none;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease; /* ✅ Đổi sang "all" để hiệu ứng transform mượt hơn */
}
.link-group a:hover {
    background-color: #218838;
    transform: translateY(-2px); /* ✅ Thêm hiệu ứng nhô lên */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* ✅ Thêm bóng đổ */
}

/* Kiểu dáng cho các nút download chính (Patch, Auto) */
.btn-download {
    display: block;
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 600;
    color: #fff;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
}
.btn-download.patch {
    background-color: #28a745;
}
.btn-download.patch:hover {
    background-color: #218838;
    transform: translateY(-2px); /* ✅ Thêm hiệu ứng nhô lên */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* ✅ Thêm bóng đổ */
}
.btn-download.auto {
    background-color: #007bff;
}
.btn-download.auto:hover {
    background-color: #0056b3;
    transform: translateY(-2px); /* ✅ Thêm hiệu ứng nhô lên */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* ✅ Thêm bóng đổ */
}

/* --- Hiệu ứng bấm nút --- */
.download-button-active {
    transform: scale(0.95) !important;
    transition: transform 0.1s ease-in-out;
}
.download-button-active:hover {
    transform: scale(0.95) !important;
}

/* style/info-panel.css */

#info-panel {
    position: fixed; /* Giữ cố định trên màn hình */
    right: 60px; /* Cách lề phai 20px */
    top: 50%; /* Căn giữa theo chiều dọc */
    transform: translateY(-50%);
    width: 290px; /* Độ rộng của bảng */
    z-index: 998; /* Nằm trên nền nhưng dưới các popup chính */
    
    /* Tái sử dụng phong cách "kính mờ" */
    background: rgba(26, 41, 56, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(15px);
    
    color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

#info-panel h2 {
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
    text-align: center;
}

#info-panel p {
    font-size: 0.95em;
    line-height: 1.6;
    margin-bottom: 10px;
}

/* style/news.css */

/* ========================
   POPUP CHUNG: Tin tức + Hướng dẫn
======================== */
#news-popup,
#guide-popup {
    top: 120px;
    left: 50%;
    width: 1100px; /* Tăng độ rộng để chứa 2 cột */
    max-width: 95%;
    padding: 30px;
    box-sizing: border-box;

    position: fixed;
    z-index: 1000;

    transform: translateX(-50%) scale(0);
    transform-origin: top center;
    transition: transform 0.4s ease, opacity 0.4s ease;
    opacity: 0;
    pointer-events: none;
}

#news-popup.active,
#guide-popup.active {
    transform: translateX(-50%) scale(1);
    opacity: 1;
    pointer-events: auto;
}

/* Tiêu đề popup chung */
#news-popup h2,
#guide-popup h2 {
    font-size: 2em;
    color: #162938;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 0 0 1px rgba(0,0,0,0.7); /* ✅ Thêm đổ bóng chữ */
}

/* ========================
   KHUNG DANH SÁCH & NỘI DUNG
======================== */

/* Container chung (bọc danh sách + nội dung) */
.news-content-wrapper {
    display: flex;
    gap: 20px;
    min-height: 200px;
    max-height: 600px;
    overflow: hidden;
    flex-grow: 1;
}

/* Bọc 2 cột */
.news-wrapper {
    display: flex;
    flex-grow: 1;
    gap: 20px;
}

/* DANH SÁCH BÀI VIẾT (Cột trái) */
.news-list {
    flex: 1 1 auto; /* Cho phép co giãn và chiếm không gian còn lại */
    overflow-y: auto; /* Chỉ vùng này có thanh cuộn dọc */
    min-height: 0; /* Cần thiết cho flexbox hoạt động đúng với overflow */
}

/* ITEM trong danh sách */
.news-item {
    padding: 12px 15px;
    cursor: pointer;
    color: #162938;
    font-weight: 500;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.news-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.news-item:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: #007bff;
}

.news-item.active {
    background-color: #e0e0e0;
    font-weight: 700;
    color: #162938;
    transform: translateY(0);
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
    border: 1px solid #c0c0c0;
}

.news-item.active:hover {
    background-color: #d0d0d0;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.3);
    transform: translateY(0);
}

/* NỘI DUNG BÀI VIẾT (Cột phải) */
.news-content {
    flex: 1;
    overflow-y: auto;
    padding-left: 15px;
    color: #333;
    line-height: 1.6;
}

/* ========================
   SCROLLBAR STYLE
======================== */
.news-list::-webkit-scrollbar,
.news-content::-webkit-scrollbar {
    width: 8px;
}

.news-list::-webkit-scrollbar-track,
.news-content::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
    border-radius: 10px;
}

.news-list::-webkit-scrollbar-thumb,
.news-content::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
}

.news-list::-webkit-scrollbar-thumb:hover,
.news-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.3);
}

/* ========================
   STYLE NỘI DUNG BÀI VIẾT
======================== */
.news-content h1, .news-content h2, .news-content h3, 
.news-content h4, .news-content h5, .news-content h6 {
    color: #162938;
    margin-top: 1em;
    margin-bottom: 0.5em;
}

.news-content h3 {
    font-size: 1.6em;
}

.news-content p {
    margin-bottom: 1em;
}

.news-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px auto;
}

/* Container cho cột trái (bao gồm danh sách và phân trang) */
.list-column {
    display: flex;
    flex-direction: column; /* Sắp xếp các mục con theo chiều dọc */
    flex: 0 0 300px; /* Giữ nguyên độ rộng 300px cho cả cột */
    min-width: 300px;
    max-width: 300px;
    overflow: hidden; /* Rất quan trọng: Ngăn thanh cuộn của chính cột này */
}

/* Vùng chứa các nút phân trang */
.pagination-container {
    flex-shrink: 0; /* Không cho phép vùng này bị co lại */
    padding-top: 10px; /* Tạo khoảng cách với danh sách bên trên */
    padding-right: 15px; /* Bù lại padding-right của .news-list cũ */
}

/* Định dạng cho các nút phân trang */
.pagination {
    text-align: center;
    padding-bottom: 5px;
}

.pagination a.page-link {
    display: inline-block;
    margin: 0 3px;
    padding: 6px 12px;
    background: #162938;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background 0.2s ease;
}

.pagination a.page-link.active {
    background: #006699;
    font-weight: bold;
}

.pagination a.page-link:hover {
    background: #005688;
}

.news-title {
    font-size: 1.0em;    /* Tăng kích thước chữ một chút */
    font-weight: bold;   /* In đậm */
    color: #c0392b;      /* Đổi sang màu đỏ đậm cho dễ nhìn */
    margin-bottom: 15px; /* Thêm khoảng cách với nội dung bên dưới */
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15); /* Thêm đường gạch chân trang trí */
}

/* Các quy tắc CSS cũ cho nội dung bài viết */
.news-article-container h1,
.news-article-container h2,
.news-article-container h3 {
    color: #162938;
    margin-top: 15px;
    margin-bottom: 10px;
}

.news-article-container p {
    margin-bottom: 10px;
}

.news-article-container img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px auto;
    border-radius: 8px; /* Thêm bo góc cho ảnh */
}


