/* ============================================================
   🧹 RESET CSS CHUẨN
   Dựa trên Normalize + Modern Reset (2025)
   ------------------------------------------------------------
   Mục tiêu: Xóa các style mặc định của trình duyệt, 
   thiết lập nền tảng đồng nhất, thân thiện với responsive.
   ============================================================ */

/* 1️⃣ Reset cơ bản */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* 2️⃣ Thiết lập HTML & Body */
html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  background-color: #fff;
  color: #212529;
}

/* 3️⃣ Liên kết (Links) */
a {
  color: inherit;
  text-decoration: none;
}
a:hover, a:focus {
  text-decoration: none;
  color: inherit;
}

/* 4️⃣ Danh sách */
ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* 5️⃣ Ảnh, video, canvas */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* 6️⃣ Tiêu đề & đoạn văn */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
}
p {
  margin: 0 0 1rem;
}

/* 7️⃣ Form */
button, input, select, textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;

}
input:focus,
textarea:focus,
select:focus {
  outline: none;          /* bỏ outline mặc định */
  box-shadow: none;       /* bỏ hiệu ứng bóng nếu có (Bootstrap thường thêm) */
  border-color: inherit;  /* giữ nguyên màu viền cũ, tránh đổi sang xanh */
}
button {
  cursor: pointer;
  background: transparent;
  border: none;
}
textarea {
  resize: vertical;
}
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

/* 8️⃣ Table */
table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
}

/* 9️⃣ Quote & code */
blockquote, q {
  quotes: none;
}
blockquote::before, blockquote::after, q::before, q::after {
  content: '';
}
pre, code {
  font-family: monospace, monospace;
  font-size: 1em;
}

/* 🔟 Accessibility */
:focus {
  outline: 2px solid #7b2ff7;
  outline-offset: 2px;
}

/* 1️⃣1️⃣ Scrollbar (tùy chọn – cho Chrome/Safari) */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

/* 1️⃣2️⃣ Container (cho layout chuẩn) */
.container {
  width: min(100%, 1200px);
  margin-inline: auto;
  padding-inline: 15px;
}

/* 1️⃣3️⃣ Responsive hình ảnh */
img {
  object-fit: cover;
  border-style: none;
}

/* 1️⃣4️⃣ Prevent iOS Zoom on Input Focus */
@supports (-webkit-touch-callout: none) {
  input, select, textarea {
    font-size: 16px !important;
  }
}