:root{
  --bg: #0b5d2a;
  --surface: #ffffff;
  --text: #101828;
  --muted: #667085;
  --ring: #e6f4ea;
  --brand: #0ea5e9;
  --brand-2:#0ea5e914;
  --radius: 22px;
  --shadow: 0 8px 24px rgba(16,24,40,0.08);
}
@media (prefers-color-scheme: dark){
  :root{
    --surface:#0f172a;
    --text:#e2e8f0;
    --muted:#94a3b8;
    --ring:#1e293b;
    --shadow: 0 8px 24px rgba(0,0,0,0.6);
  }
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; font-family:Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", sans-serif;
  color:var(--text); 
  background:linear-gradient(180deg,var(--bg) 0 180px, #f6faf7 180px);
  background-attachment: fixed;
}
.wrap{max-width:720px;margin:0 auto;padding:24px}
.card{
  background:var(--surface); border:1px solid var(--ring); box-shadow:var(--shadow);
  border-radius:28px; overflow:hidden; position:relative;
}

/* HEADER RESPONSIVE */
header.header{
  display:flex; align-items:center; gap:12px;
  padding:30px; 
  background:linear-gradient(180deg,#0b5d2a 0,#0f7a38 60%, transparent 100%);
  border-bottom:1px solid var(--ring);
  flex-wrap:wrap;
  justify-content:center;
  text-align:center;
}
.logo{
  flex:none;
  width:56px;height:56px; border-radius:50%; background:#fff; 
  display:grid; place-items:center;
  border:3px solid #e2f5e9; box-shadow:0 3px 8px rgba(0,0,0,.08)
}
.logo img{width:50px;height:50px;object-fit:contain; border-radius:50%}
.title-box{
  display:flex; flex-direction:column; 
  color:#fff; flex:1; min-width:160px;
}
.title-line1{
  font-size:12px;
  font-weight:400;
  line-height:1.3;
  /* Cho phép xuống dòng nếu dài */
  white-space:normal;
  overflow:visible;
  text-overflow:unset;
}
.title-line2{
  font-size:14px;
  font-weight:700;
  margin-top:2px;
  line-height:1.4;
  /* Cho phép xuống dòng nếu dài */
  white-space:normal;
  overflow:visible;
  text-overflow:unset;
}

/* Trên tablet/desktop */
@media (min-width:700px){
  header.header{
    justify-content:flex-start;
    text-align:left;
    gap:20px;
    padding:32px;
  }
  .logo{width:70px;height:70px}
  .logo img{width:62px;height:62px}
  .title-line1{font-size:14px; white-space:normal; overflow:visible}
  .title-line2{font-size:16px; white-space:normal; overflow:visible}
}

h4{margin:15px 0 0;font-size:15px;line-height:1.25;text-align:center;font-weight:600;color:var(--text-contrast)}

.list{padding:8px 14px 22px}
.link{
  display:flex; align-items:flex-start; gap:14px; width:100%; text-decoration:none; color:inherit;
  padding:14px 16px; margin:10px 0; border-radius:18px; border:1px solid var(--ring);
  background:linear-gradient(180deg,#fff, #fbfbfb); 
  transition:.18s transform, .18s box-shadow, .18s background;
}
.link:hover{transform:translateY(-1px); box-shadow:0 10px 20px rgba(16,24,40,0.08)}
.icon{
  width:44px;height:44px;border-radius:12px;flex:none;display:grid;place-items:center;
  background:var(--brand-2); border:1px solid var(--ring);
}
.icon img{width:28px;height:28px;object-fit:contain}
.txt{flex:1; display:flex; flex-direction:column}
.ttl{font-weight:600; color:#0b0f16; font-size:15px; line-height:1.4}
.cap{font-size:13px;color:#004466;margin-top:4px; line-height:1.4}
.chev{flex:none; opacity:.6; align-self:center}

.section-title{margin:28px 4px 6px; font-weight:700; font-size:14px; letter-spacing:.02em; color:var(--muted)}

footer{padding:18px; text-align:center; color:var(--muted); font-size:12px}
.footer-link{
  color:inherit;
  text-decoration:none;
  font-weight:600;
  transition:color .2s;
}
.footer-link:hover{
  color:#0b5d2a;
  text-decoration:underline;
}
@media (min-width:700px){
  .list{padding:14px 24px 30px}
}

.marquee-box{
  background:#f6faf7;
  padding:10px 14px;
  border-radius:12px;
  margin:10px 0 0;
  font-size:14px;
  color:#0b0f16;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.marquee-box marquee{
  flex:1;
  color:#004466;
  white-space:nowrap;
}
.more-link{
  background:#0b5d2a;
  color:#fff;
  text-decoration:none;
  border-radius:8px;
  padding:6px 12px;
  font-size:13px;
  flex:none;
  transition:background .2s;
}
.more-link:hover{
  background:#0f7a38;
}
.banner-box{
  width:100%;
  border-radius:16px;
  overflow:hidden;
  margin:10px 0 18px;
  box-shadow:0 4px 12px rgba(0,0,0,0.08);
}
.banner-img{
  width:100%;
  height:auto;
  display:block;
  border-radius:inherit;
}
.visitor-box{
  text-align:center;
  margin-top:2px;
  padding:8px 0 4px;
  font-size:8px;
  color:var(--muted);
  border-top:1px dashed var(--ring);
}

.visitor-count{
  font-weight:700;
  color:#667085;
  margin-left:4px;
}

.sub-link{
  display:block;
  font-size:14px;
  font-weight:bold;
  color:#0b0f16;
  text-decoration:none;
  margin-bottom:4px;
  transition:color .2s;
}
.sub-link:hover{
  color:#0f7a38;
  text-decoration:underline;
}

/* Hiệu ứng phóng to ảnh */
.image-zoom-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  animation: fadeIn .25s ease;
}
.image-zoom-overlay img{
  max-width: 94%;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(255,255,255,0.2);
  animation: zoomIn .3s ease;
  cursor: zoom-out;
}
@keyframes fadeIn{
  from{opacity:0} to{opacity:1}
}
@keyframes zoomIn{
  from{transform:scale(0.9);opacity:0} to{transform:scale(1);opacity:1}
}

/* Ẩn cuộn khi phóng to */
body.no-scroll{
  overflow: hidden;
}


#cele-banner{
  position: fixed; top: 16px; left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: linear-gradient(135deg,#0b5d2a,#0f7a38);
  color:#fff; padding: 10px 16px; border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  font-size: 14px; font-weight: 700; letter-spacing:.2px;
  z-index: 9998;
  opacity: 0; transition: transform .5s ease, opacity .5s ease;
}
#cele-banner.is-show{
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

#cele-canvas{
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9997;
}

#cele-stop{
  position: fixed; right: 16px; bottom: 16px;
  background: rgba(11,93,42,.85);
  color:#fff; border:0; border-radius:10px;
  padding: 8px 12px; font-size: 13px;
  cursor: pointer; backdrop-filter: blur(4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  transition: transform .15s ease, background .2s ease;
  z-index: 9998;
}
#cele-stop:hover{
  transform: translateY(-1px);
  background: rgba(15,122,56,.92);
}

@media (prefers-reduced-motion: reduce){
  #cele-canvas{ display:none; }
  #cele-banner{ transition:none; }
}
/* ===== TOGGLE KỶ YẾU ===== */
    .toggle-section {
      margin-top: 28px;
    }
.toggle-content .link{
  margin-top: 5px;
}

    .toggle-header {
      background: linear-gradient(135deg, #a40505, #0b5d2a);
      color: #fff;
      padding: 14px 16px;
      border-radius: 14px;
      font-weight: 700;
      cursor: pointer;
      display: flex;
      justify-content: space-between;
      align-items: center;
      user-select: none;
    }

    .toggle-header:hover {
      opacity: .9;
    }

    .toggle-content {
      display: none;
      margin-top: 14px;
    }

    #kyyeu-icon {
      font-size: 20px;
      transition: transform .25s ease;
    }
	
	/* ===== MENU TAB ===== */
.menu-tabs{
  display:flex;
  gap:10px;
  margin:20px 0;
}
.menu-tab{
  flex:1;
  text-align:center;
  padding:12px;
  border-radius:12px;
  background:#0b5d2a;
  font-weight:700;
  cursor:pointer;
  transition:.25s;
  color:#fff;
}
.menu-tab.active{
  background:#a40505;
  color:#fff;
}
.menu-tab:hover{opacity:.9}

.tab-content{display:none}
.tab-content.active{display:block}

.menu-tab i{
  margin-right:6px;
  font-size:14px;
}

/* ===== SLIDER ===== */
.slider {
  position: relative;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 16px;
}

.slides {
  display: flex;
  transition: transform 0.6s ease;
}

.slides img {
  width: 100%;
  flex-shrink: 0;
  object-fit: cover;
}

/* dots */
.dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  cursor: pointer;
}

.dot.active {
  background: #fff;
}


/* Hiệu ứng khi di chuột vào */
.btn-combined:hover {
  animation-play-state: paused; /* Tạm dừng để người dùng dễ click */
  background-color: #ff6b81;
}

/* Popup Overlay */


/* ===== 1. CẤU TRÚC CHÍNH CỦA POPUP (MODAL) ===== */
.modal-overlay {
  display: none; /* Ẩn mặc định */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7); /* Nền tối mờ phía sau */
  z-index: 99999; /* Luôn nằm trên cùng */
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px); /* Làm mờ nền sau (tùy chọn) */
}

/* Nội dung Form Popup */
.modal-content {
	max-height: 90vh !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    
  background-color: #ffffff; /* Nền form luôn là màu trắng */


  width: 90%;
  max-width: 450px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: modalFadeIn 0.3s ease-out;
  max-height: 90vh; /* Giới hạn chiều cao tối đa là 90% màn hình */
    
    
    
    padding: 0; /* Xóa padding mặc định để chia lại khu vực */
    border-radius: 15px;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Tiêu đề Form */
/* 4. Cố định Tiêu đề và Nút bấm không bị cuộn mất */
.modal-content h3 {
    margin: 0;
    padding: 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
	color: #0a3d62 !important;
}
/* PHẦN QUAN TRỌNG: Vùng chứa Form có nút cuộn */
#courseForm, #registrationForm {
    overflow-y: auto; /* Hiện nút cuộn dọc khi nội dung dài */
    padding: 20px;
    flex: 1;
}
/* Tùy chỉnh thanh cuộn cho đẹp (Webkit) */
#courseForm::-webkit-scrollbar, 
#registrationForm::-webkit-scrollbar {
    width: 6px;
}

#courseForm::-webkit-scrollbar-thumb, 
#registrationForm::-webkit-scrollbar-thumb {
    background-color: #0a3d62;
    border-radius: 10px;
}
/* Nút đóng (X) */
.btn-close {
  position: absolute;
  top: 15px;
  right: 15px;
  cursor: pointer;
  font-size: 24px;
  color: #aaa;
  transition: color 0.2s;
}

.btn-close:hover {
  color: #ff4757;
}

/* ===== 2. ĐỊNH DẠNG CÁC Ô NHẬP LIỆU (INPUT, SELECT, TEXTAREA) ===== */
/* Đây là phần quan trọng nhất để sửa lỗi không nhìn thấy chữ */

.modal-content input,
.modal-content select,
.modal-content textarea {
  width: 100%;
  margin-bottom: 15px;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-sizing: border-box; /* Đảm bảo padding không làm tăng chiều rộng */
  font-family: 'Inter', sans-serif;
  font-size: 15px;

  /* --- SỬA LỖI MÀU CHỮ TẠI ĐÂY --- */
  color: #333333 !important; /* Màu chữ đen xám, nhìn rõ trên nền trắng */
  background-color: #ffffff !important; /* Nền ô nhập liệu luôn là trắng */
  /* ----------------------------- */

  transition: border-color 0.2s, box-shadow 0.2s;
}

/* Định dạng riêng cho ô chọn ngành (Select) */
.modal-content select {
  appearance: none; /* Ẩn mũi tên mặc định của trình duyệt */
  background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%230a3d62%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.3c0%204.9%201.8%209.2%205.4%2012.8l128.1%20128.1c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095.1c3.6-3.6%205.4-7.8%205.4-12.8%200-5-1.8-9.3-5.4-12.9z%22%2F%3E%3C%2Fsvg%3E');
  background-repeat: no-repeat;
  background-position: right 15px top 50%;
  background-size: 12px auto;
  padding-right: 40px; /* Chừa chỗ cho mũi tên mới */
}

/* Định dạng placeholder (chữ mờ khi chưa nhập) */
.modal-content input::placeholder,
.modal-content textarea::placeholder {
  color: #999; /* Màu xám nhạt */
  opacity: 1;
}

/* Hiệu ứng khi focus (nhấp chuột vào ô) */
.modal-content input:focus,
.modal-content select:focus,
.modal-content textarea:focus {
  outline: none;
  border-color: #0a3d62; /* Đổi màu viền thành màu trường */
  box-shadow: 0 0 0 3px rgba(10, 61, 98, 0.1); /* Hiệu ứng đổ bóng nhẹ */
}

/* ===== 3. ĐỊNH DẠNG CÁC NÚT BẤM (GỬI, LÀM LẠI) ===== */
.btn-group {
    padding: 15px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
    flex-shrink: 0;
    display: flex;
    gap: 10px;
}
/* 5. Làm thanh cuộn đẹp hơn (tùy chọn) */
.notice-content::-webkit-scrollbar, 
#courseForm::-webkit-scrollbar {
    width: 8px;
}
.notice-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}
.notice-content::-webkit-scrollbar-thumb, 
#courseForm::-webkit-scrollbar-thumb {
    background: #0a3d62;
    border-radius: 10px;
}
/* Thanh cuộn cho vùng thông báo */
#noticeScroll::-webkit-scrollbar {
    width: 8px;
}
#noticeScroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
#noticeScroll::-webkit-scrollbar-thumb {
    background: #0a3d62;
    border-radius: 10px;
}
#noticeScroll::-webkit-scrollbar-thumb:hover {
    background: #000;
}

.btn-group button {
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
  font-family: 'Inter', sans-serif;
}

.btn-group button:active {
  transform: scale(0.98); /* Hiệu ứng nhấn nút */
}

/* Nút Gửi */
.btn-submit {
  background-color: #2ed573; /* Màu xanh lá */
  color: white;
  flex: 2; /* Rộng hơn nút làm lại */
}

.btn-submit:hover {
  background-color: #26af61;
}

/* Nút Gửi khi đang ở trạng thái loading */
.btn-submit:disabled {
  background-color: #a4b0be;
  cursor: not-allowed;
}

/* Nút Làm lại */
.btn-reset {
  background-color: #f1f2f6; /* Màu xám nhạt */
  color: #333;
  flex: 1;
}

.btn-reset:hover {
  background-color: #dfe4ea;
}

/* Container chứa lưới */
.grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Chia 2 cột bằng nhau */
  gap: 15px; /* Khoảng cách giữa các ô */
  padding: 15px;
}

/* Style cho từng ô link */
.link-card {
  background: #fff;
  border-radius: 15px; /* Bo góc tròn */
  padding: 20px 10px;
  text-align: center;
  text-decoration: none;
  color: #333;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05); /* Đổ bóng nhẹ */
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s;
}

.link-card:hover {
  transform: translateY(-3px);
}

/* Icon trong ô */
.card-icon img {
  width: 50px;
  height: 50px;
  margin-bottom: 10px;
  object-fit: contain;
}

/* Tiêu đề chính trong ô */
.card-ttl {
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 4px;
  color: #1a4a7c; /* Màu xanh đậm cho giống ảnh */
}

/* Chú thích nhỏ bên dưới */
.btn-cap {
  font-size: 12px;
  color: #19241b !important;
}

/* Container lưới */
.grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 cột */
  gap: 10px; /* Khoảng cách hẹp hơn */
  padding: 10px;
}

/* Style dạng nút bấm nằm ngang */
.link-button {
  background: #ffffff;
  border: 1px solid #e0e0e0; /* Viền mảnh cho rõ khối */
  border-radius: 10px;
  padding: 8px 12px; /* Padding hẹp để giảm chiều cao */
  text-decoration: none;
  display: flex; /* Nằm ngang */
  align-items: center; /* Căn giữa theo chiều dọc */
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.link-button:active {
  background: #f0f8ff;
  transform: scale(0.98);
}

/* Icon ở đầu nút */
.btn-icon img {
  width: 24px; /* Icon nhỏ gọn */
  height: 24px;
  margin-right: 10px; /* Khoảng cách với chữ */
  object-fit: contain;
  display: block;
}

/* Chữ trong nút */
.btn-ttl {
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  color: #1a4a7c;
  white-space: nowrap; /* Tránh xuống dòng chữ */
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Tùy chỉnh tiêu đề mục */
.section-title {
  font-size: 14px;
  font-weight: bold;
  padding: 10px 15px 5px;
  color: #555;
  text-transform: uppercase;
}
/* Container chứa 2 nút */
.registration-buttons {
  display: flex;
  gap: 10px;
  padding: 10px 15px;
}

/* Base style cho cả 2 nút (Kế thừa hiệu ứng từ .btn-combined cũ) */
.btn-half {
  flex: 1;
  color: white;
  padding: 12px 5px;
  border: none;
  border-radius: 10px; /* Bo góc nhẹ hơn để cân đối */
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
  
  /* Hiệu ứng dải sóng trắng lướt qua */
  background-repeat: no-repeat;
  background-size: 200% 100%;
  
  /* Chạy đồng thời 2 hiệu ứng */
  animation: 
    wave-effect 2.5s infinite linear, 
    pulse-generic 1.5s infinite ease-in-out;
}

/* Màu riêng cho nút Tư vấn */
.btn-consult {
  background-color: #0a3d62;
  background-image: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
  box-shadow: 0 4px 10px rgba(10, 61, 98, 0.3);
}

/* Màu riêng cho nút Cập nhật KTCM */
.btn-course {
  background-color: #ff4757; /* Dùng màu đỏ cũ của bạn cho nổi bật */
  background-image: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
  box-shadow: 0 4px 10px rgba(255, 71, 87, 0.3);
}

/* KEYFRAMES */

/* Hiệu ứng sóng lướt */
@keyframes wave-effect {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Hiệu ứng nháy chung */
@keyframes pulse-generic {
  0% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.03); filter: brightness(1.2); }
  100% { transform: scale(1); filter: brightness(1); }
}

/* Modal rộng hơn cho form nhiều thông tin */
.modal-large { width: 95% !important; max-width: 600px !important; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
@media (max-width: 480px) {
  .form-grid { grid-template-columns: 1fr; }
}
input, select, textarea {
  width: 100%;
  padding: 10px;
  margin: 4px 0;
  border: 1px solid #ddd;
  border-radius: 5px;
}
.input-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.input-group label {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 2px;
  color: #555;
}
.form-grid input, .form-grid select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
/* Hiện icon lịch cho input date trên Chrome/Safari/Edge */
input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    filter: invert(0.5); /* Chuyển màu icon sang xám để dễ nhìn trên nền trắng */
    opacity: 1;
    display: block;
    background-repeat: no-repeat;
    width: 20px;
    height: 20px;
}

/* Đảm bảo ô input date có padding bên phải để không đè lên icon */
input[type="date"] {
    position: relative;
    padding-right: 30px;
    -webkit-appearance: listbox; /* Giúp hiện datepicker tốt hơn trên mobile */
}

/* Label cho ngày sinh và ngày cấp */
.input-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #0a3d62; /* Màu xanh đồng bộ với trường */
    text-align: left;
}
#qr-container {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

#qr-image {
    transition: transform 0.3s;
    cursor: zoom-in;
}

#qr-image:hover {
    transform: scale(1.1); /* Phóng to nhẹ khi di chuột vào */
}
/* 2. Cấu hình cho từng bước (Thông báo & Form) */
.modal-step {
    display: none; /* Ẩn mặc định, JS sẽ hiện */
    flex-direction: column;
    height: 100%;
    overflow: hidden; 
}
/* 1. Đảm bảo khung ngoài cùng không bị tràn màn hình */
.modal-content.modal-large {
    max-height: 90vh; /* Cao tối đa 90% màn hình */
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Cố định khung ngoài */
    padding: 0 !important; /* Xóa padding để chia vùng cuộn */
}

.notice-content {
    overflow-y: auto;
    padding: 20px;
    line-height: 1.6;
    text-align: justify;
    background: #fff;
    flex: 1;
}

/* Tùy chỉnh thanh cuộn cho thông báo */


/* Hiệu ứng mờ dần khi chuyển bước */
.modal-step {
    animation: slideIn 0.4s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}
/* Khung chứa bước thông báo - Định danh mới hoàn toàn */
.notice-wrapper-new {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important; /* Thay đổi từ 80vh sang auto */
    max-height: 600px !important;
    background: #ffffff !important;
    border-radius: 15px !important;
    overflow: hidden !important; /* Cắt phần dư thừa để hiện cuộn bên trong */
    border: 1px solid #ddd;
}

/* Header cố định */
.notice-header-fixed {
    flex-shrink: 0 !important;
    background: #f8f9fa !important;
    color: #0a3d62 !important;
    padding: 15px !important;
    margin: 0 !important;
    font-weight: bold !important;
    text-align: center !important;
    border-bottom: 2px solid #0a3d62 !important;
}

/* VÙNG CUỘN NỘI DUNG - Đây là phần quan trọng nhất */
.notice-body-scrollable {
    flex: 1 1 auto !important; /* Chiếm toàn bộ không gian còn lại */
	flex-grow: 1;
    overflow-y: auto !important; /* Ép hiện thanh cuộn dọc */
    padding: 20px !important;
    background: #ffffff !important;
}

/* ÉP CHỮ MÀU ĐEN TUYỆT ĐỐI */
.notice-body-scrollable p, 
.notice-body-scrollable span, 
.notice-body-scrollable div, 
.notice-body-scrollable strong {
    color: #000000 !important;
    line-height: 1.6 !important;
}

/* Footer chứa nút bấm cố định */
.notice-footer-fixed {
    flex-shrink: 0 !important;
	margin-top: 0; /* Xóa bỏ margin thừa nếu có */
    padding: 10px 15px !important;
    background: #f1f1f1 !important;
    border-top: 1px solid #ddd !important;
}
/* Xóa bỏ các margin thừa ở đoạn văn cuối cùng */
.notice-body-scrollable p:last-child {
    margin-bottom: 0 !important;
}
/* Tùy chỉnh thanh cuộn riêng biệt */
.notice-body-scrollable::-webkit-scrollbar {
    width: 10px !important;
    display: block !important;
}
.notice-body-scrollable::-webkit-scrollbar-track {
    background: #f1f1f1 !important;
}
.notice-body-scrollable::-webkit-scrollbar-thumb {
    background: #0a3d62 !important;
    border-radius: 5px !important;
}
/* Áp dụng cho cả 2 bước để giữ khung Modal cố định */
.notice-wrapper-new, .modal-step {
    height: 80vh !important;
    max-height: 600px !important;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Quan trọng để không bị đè */
}

/* Vùng chứa form cũng phải có thuộc tính cuộn giống vùng thông báo */
#courseForm {
    flex: 1;
    overflow-y: auto !important;
    padding: 20px;
}
/* Đảm bảo khung Modal content chỉ chứa đủ 1 bước tại 1 thời điểm */
.modal-content.modal-large {
    display: flex !important;
    flex-direction: column !important;
    height: 90vh !important;
    max-height: 700px !important;
	padding-bottom: 0 !important;
    overflow: hidden !important; /* Ngăn chặn việc cả 2 khối cùng hiện làm vỡ khung */
}

/* Các bước phải chiếm trọn 100% chiều cao của Modal content */
#step-notice, #step-register {
    width: 100%;
    
    flex: 1;
	height: auto !important; 
    min-height: unset !important;
    max-height: 85vh !important;
}