/* ====================== RESET CƠ BẢN ====================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ====================== BODY & FONT ====================== */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background-color: #ffffff;
  color: #2c2c2c;
  line-height: 1.6;
}

/* ====================== LINK ====================== */
a {
  text-decoration: none;
  color: inherit;
}

/* ====================== HEADER (CHUNG VỚI TRANG CHÍNH) ====================== */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 999;
}

.header-left {
  display: flex;
  align-items: center;
}

.header-left .logo img {
  width: 48px;
  height: auto;
}

.header-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.header-nav ul li a {
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.header-nav ul li a:hover {
  background-color: #eaeaea;
}

.header-nav ul li a.active {
  color: #0072ff;
  font-weight: 600;
}

.header-right {
  display: flex;
  align-items: center;
}

.btn-primary {
  background-color: #0072ff;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 500;
  transition: background-color 0.3s;
}

.btn-primary:hover {
  background-color: #005adb;
}

.btn-secondary {
  background-color: #fff;
  color: #0072ff;
  padding: 0.5rem 1rem;
  border: 2px solid #0072ff;
  border-radius: 6px;
  font-weight: 500;
  transition: background-color 0.3s, color 0.3s;
}

.btn-secondary:hover {
  background-color: #0072ff;
  color: #fff;
}

/* ====================== HERO CHO TRANG TIN ====================== */
.news-hero {
  position: relative;
  background: linear-gradient(
      to bottom,
      rgba(0, 61, 115, 0.7),
      rgba(0, 61, 115, 0.4)
    ),
    url('../img/hero-news.jpg') center/cover no-repeat; /* Thay ảnh theo nhu cầu */
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 3rem 1rem;
  margin-bottom: 2rem;
}

.news-hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  background: radial-gradient(rgba(255, 255, 255, 0.15), transparent 70%);
  transform: translate(-50%, -50%);
  z-index: 1;
}

.news-hero h1 {
  position: relative;
  z-index: 2;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-family: 'Orbitron', sans-serif;
  color: #80deea;
}

.news-hero p {
  position: relative;
  z-index: 2;
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
}

/* ====================== CONTAINER CHUNG CHO BÀI VIẾT ====================== */
.news-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ====================== TIÊU ĐỀ BÀI VIẾT & METADATA ====================== */
.news-article-title {
  font-size: 2.2rem;
  color: #0072ff;
  margin-bottom: 0.5rem;
  font-weight: 700;
  text-align: center;
}

.news-article-meta {
  font-size: 0.9rem;
  color: #777;
  text-align: center;
  margin-bottom: 2rem;
}

/* ====================== NỘI DUNG BÀI VIẾT (PHONG CÁCH THE VERGE) ====================== */
.news-article-content {
  background-color: #fff;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  padding: 2rem 2.5rem;
  box-shadow: 0 4px 12px rgba(0, 114, 255, 0.1);
  margin-bottom: 3rem;
}

.news-article-content h2,
.news-article-content h3,
.news-article-content h4 {
  color: #0072ff;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
  line-height: 1.2;
}

.news-article-content p {
  font-size: 1.125rem;
  color: #333;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  text-align: justify;
}

.news-article-content img {
  max-width: 100%;
  border-radius: 6px;
  margin: 1.5rem 0;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Blockquote để nhấn mạnh nội dung */
.news-article-content blockquote {
  border-left: 4px solid #0072ff;
  padding-left: 1rem;
  font-style: italic;
  color: #555;
  margin: 1.5rem 0;
}

/* Code block (nếu có) */
.news-article-content pre {
  background: #f0f0f0;
  padding: 1rem;
  overflow-x: auto;
  border-radius: 6px;
  font-size: 0.9rem;
  margin: 1.5rem 0;
}

/* ====================== NÚT QUAY LẠI ====================== */
.news-back-btn {
  display: inline-block;
  margin-bottom: 3rem;
  padding: 0.75rem 1.5rem;
  background-color: #0072ff;
  color: #fff;
  border-radius: 6px;
  transition: background-color 0.3s;
  text-align: center;
}

.news-back-btn:hover {
  background-color: #005adb;
}

/* ====================== FOOTER (CHUNG VỚI TRANG CHÍNH) ====================== */
.footer {
  background-color: #f9f9f9;
  border-top: 1px solid #eaeaea;
  padding: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.footer-left,
.footer-right {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-logo img {
  width: 48px;
}

.footer-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.footer-links li a {
  color: #0072ff;
  font-weight: 500;
  transition: color 0.3s;
}

.footer-links li a:hover {
  color: #005adb;
}

/* ====================== RESPONSIVE (CHO TÍNH DI ĐỘNG) ====================== */
@media (max-width: 768px) {
  .news-hero {
    padding: 2rem 1rem;
  }
  .news-hero h1 {
    font-size: 2rem;
  }
  .news-hero p {
    font-size: 1rem;
  }
  .news-container {
    padding: 0 1rem;
  }
  .news-article-title {
    font-size: 1.8rem;
  }
  .news-article-content {
    padding: 1.5rem 1.5rem;
  }
  .news-article-content p {
    font-size: 1rem;
  }
}
