/* Reset cơ bản */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Cấu hình chung cho body */
body {
  font-family: 'Roboto', sans-serif;
  background: #f5f5f5;
  color: #333;
}

/* Link không gạch chân */
a {
  text-decoration: none;
  color: inherit;
}

/* Container chung */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header & Navigation */
header {
  background: #fff;
  border-bottom: 1px solid #ddd;
}

nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1em 0;
}

.logo a {
  font-size: 1.5em;
  font-weight: 700;
  color: #333;
}

.nav-links {
  list-style: none;
  display: flex;
}

.nav-links li {
  margin-left: 1.5em;
}

.nav-links a {
  color: #666;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #333;
}

/* Hero Section */
.hero {
  background: #eaeaea;
  text-align: center;
  padding: 100px 0;
}

.hero h2 {
  font-size: 2.5em;
  margin-bottom: 0.5em;
}

.hero p {
  font-size: 1.2em;
  margin-bottom: 1em;
  color: #555;
}

.btn {
  display: inline-block;
  padding: 0.75em 1.5em;
  background: #333;
  color: #f5f5f5;
  border-radius: 3px;
  transition: background 0.3s;
}

.btn:hover {
  background: #555;
}

/* Các Section chung (About, Blog, Contact) */
section {
  padding: 60px 0;
}

section h2 {
  text-align: center;
  font-size: 2em;
  margin-bottom: 1em;
}

section p {
  text-align: center;
  font-size: 1em;
  max-width: 800px;
  margin: 0 auto;
}

/* Blog posts - sử dụng grid hiển thị bài viết */
.posts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.post {
  background: #fff;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 3px;
}

.post h3 {
  margin-bottom: 0.5em;
}

.post p {
  font-size: 0.95em;
  line-height: 1.5;
  margin-bottom: 1em;
}

.read-more {
  color: #333;
  font-weight: 500;
  border-bottom: 1px solid #333;
  transition: color 0.3s, border-color 0.3s;
}

.read-more:hover {
  color: #555;
  border-color: #555;
}

/* Footer */
footer {
  background: #fff;
  padding: 20px 0;
  border-top: 1px solid #ddd;
  text-align: center;
}

/* Responsive cho điện thoại */
@media (max-width: 768px) {
  nav .container {
    flex-direction: column;
  }
  
  .nav-links {
    flex-direction: column;
    margin-top: 1em;
  }
  
  .nav-links li {
    margin: 0.5em 0;
  }
}
/* Định dạng cho logo */
.logo img {
  width: 100px;
  height: auto;
  display: block;
  margin: 0 auto;
}
/* Cập nhật chung cho body */
body {
  font-family: 'Roboto', sans-serif;
  background: #f7fafc;
  color: #333;
  margin: 0;
  padding: 0;
}

/* Container chung */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
header {
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Navigation */
nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  width: 120px; /* Điều chỉnh kích thước logo phù hợp */
  height: auto;
}

.nav-links {
  list-style: none;
  display: flex;
}

.nav-links li {
  margin: 0 15px;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #007bff;
}
section {
  padding: 80px 0;
}

section h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.5em;
}

section p {
  text-align: center;
  max-width: 800px;
  margin: auto;
  line-height: 1.6;
}
footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 20px 0;
  font-size: 0.9em;
}
@media (max-width: 768px) {
  nav .container {
    flex-direction: column;
    padding: 10px 0;
  }
  
  .nav-links {
    flex-direction: column;
    margin-top: 1em;
  }
  
  .nav-links li {
    margin: 10px 0;
  }
  
  .hero {
    padding: 80px 0;
  }
}


