@import url('https://fonts.googleapis.com/css2?family=SN+Pro:ital,wght@0,200..900;1,200..900&display=swap');

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: "SN Pro", sans-serif;
  color: #222;
  background: linear-gradient(180deg,#f4f6fb 0%,#eef2f8 100%);
  margin: 0;
  padding: 0 4%;
  font-size: 150%;
  line-height: 1.5;
  text-align: justify;
}

/* Main blocks — layout giống code mẫu */
main, .content, div {
  background: #fff;
  margin: 26px auto;
  padding: 22px 28px;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(30,60,30,0.08);
}

/* Header — giữ màu cũ */
header {
  font-size: 32px;
  background: linear-gradient(90deg,#703b3b 0%, #9b6718 100%);
  color: #fff;
  text-align: center;
  padding: 14px 18px;
  border-radius: 10px;
}

/* Navigation — layout giống code mẫu */
nav {
  display: flex;
  justify-content: center;
  margin: 14px 0;
}

nav ul {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0;
}

nav ul li {
  list-style: none;
}

nav ul li a {
  display: inline-block;
  padding: 9px 16px;
  font-size: 1rem;
  color: #fff;
  background: rgba(0,0,0,0.08);
  border-radius: 8px;
  text-decoration: none;
  transition: 0.2s ease;
}

nav ul li a:hover {
  transform: translateY(-3px);
  background: rgba(0,0,0,0.14);
}

/* Text spacing giống code mẫu */
p {
  margin: 0 0 12px 0;
}

h3 {
  color: #9b6718;
  margin-top: 18px;
}

/* Lists */
li {
  font-size: 1.05rem;
}

/* Tables — layout giống code mẫu */
table {
  border-collapse: collapse;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}

td, th {
  border: 1px solid #e2e2e2;
  padding: 10px;
  font-size: 1.3rem;
  text-align: left;
}

table tr:nth-child(even) td {
  background: #fafafa;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  padding: 6px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(20,30,50,0.06);
}

img[align="left"] {
  float: left;
  width: 40%;
  margin: 0 18px 12px 0;
}

img[align="right"] {
  float: right;
  width: 40%;
  margin: 0 0 12px 18px;
}

/* Links */
a {
  color: #8d2222;
}

/* Quotes */
#quotes {
  background: #f1e9e9;
  padding: 14px;
  border-radius: 10px;
  margin-top: 18px;
}

/* Footer — giữ màu cũ */
footer {
  background: #111114;
  color: #ddd;
  text-align: center;
  padding: 16px;
  border-radius: 10px;
  margin-top: 20px;
}

/* Buttons */
button {
  background: #0a682a;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-family: "SN Pro", sans-serif;
  font-size: 1rem;
  transition: 0.2s;
}

button:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

/* Highlight */
span {
  color: #d80a0a;
  font-size: larger;
}

/* Responsive — giống code mẫu */
@media (max-width: 800px) {

  img[align="left"],
  img[align="right"] {
    width: 100%;
    float: none;
    margin: 10px 0;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  body {
    font-size: 15px;
  }
}
