:root {
  --primary-color: #003366;
  --secondary-color: #FFCC00;
  --accent-color: #CC0000;
  --text-color-light: #ffffff;
  --text-color-dark: #333333;
  --background-dark: #121212;
  --card-background-dark: rgba(255, 255, 255, 0.08);
  --border-color-dark: rgba(255, 255, 255, 0.15);
}

/* Base styles for the news page */
.page-news {
  background-color: var(--background-dark); /* Inherit from body, but define for clarity */
  color: var(--text-color-light);
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

.page-news__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-news__section-title {
  font-size: 32px;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  position: relative;
}

.page-news__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--accent-color);
  margin: 15px auto 0;
  border-radius: 2px;
}

/* Hero Section */
.page-news__hero-section {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('[GALLERY:hero:788bet,ca_cuoc_truc_tuyen,viet_nam,tin_tuc_banner]') center/cover no-repeat;
  padding: 120px 0 80px; /* Adjust padding-top for fixed header */
  text-align: center;
  color: var(--text-color-light);
  box-shadow: inset 0 -10px 20px rgba(0, 0, 0, 0.3);
}

.page-news__hero-title {
  font-size: 48px;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
  color: var(--secondary-color);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.page-news__hero-description {
  font-size: 20px;
  max-width: 800px;
  margin: 0 auto 30px;
  color: rgba(255, 255, 255, 0.9);
}

/* Latest Articles Section */
.page-news__latest-articles-section {
  padding: 60px 0;
  background-color: var(--background-dark);
}

.page-news__article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-news__article-card {
  background-color: var(--card-background-dark);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color-dark);
}

.page-news__article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-news__article-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.page-news__article-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-news__article-content {
  padding: 20px;
}

.page-news__article-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--secondary-color);
  line-height: 1.3;
}

.page-news__article-excerpt {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-news__article-date {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

/* Categories Section */
.page-news__categories-section {
  padding: 60px 0;
  background-color: var(--primary-color);
}

.page-news__category-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.page-news__category-item {
  background-color: var(--card-background-dark);
  border-radius: 25px;
  padding: 8px 20px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 1px solid var(--border-color-dark);
}

.page-news__category-item:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
}

.page-news__category-item:hover .page-news__category-link {
  color: var(--text-color-dark);
}

.page-news__category-link {
  text-decoration: none;
  color: var(--text-color-light);
  font-weight: bold;
  font-size: 16px;
  display: block;
}

/* More Articles Section */
.page-news__more-articles-section {
  padding: 60px 0;
  background-color: var(--background-dark);
}

.page-news__article-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
}

.page-news__list-item {
  background-color: var(--card-background-dark);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color-dark);
}

.page-news__list-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.page-news__list-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  width: 100%;
}

.page-news__list-image {
  width: 200px;
  height: 150px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 10px 0 0 10px;
}

.page-news__list-content {
  padding: 20px;
  flex-grow: 1;
}

.page-news__list-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 8px;
  color: var(--secondary-color);
}

.page-news__list-excerpt {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-news__list-date {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

.page-news__pagination {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.page-news__pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--card-background-dark);
  color: var(--text-color-light);
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 1px solid var(--border-color-dark);
}

.page-news__pagination-link--active,
.page-news__pagination-link:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

.page-news__pagination-link--next {
  width: auto;
  border-radius: 20px;
  padding: 0 15px;
}

/* CTA Section */
.page-news__cta-section {
  padding: 80px 0;
  background-color: var(--primary-color);
  text-align: center;
  color: var(--text-color-light);
}

.page-news__cta-title {
  font-size: 36px;
  margin-bottom: 20px;
  color: var(--secondary-color);
  font-weight: bold;
}

.page-news__cta-description {
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto 30px;
  color: rgba(255, 255, 255, 0.9);
}

.page-news__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--accent-color);
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.page-news__cta-button:hover {
  background: #ff3333; /* Slightly brighter red */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__hero-title {
    font-size: 40px;
  }

  .page-news__hero-description {
    font-size: 18px;
  }

  .page-news__section-title {
    font-size: 28px;
  }

  .page-news__article-title {
    font-size: 20px;
  }

  .page-news__list-title {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    padding: 100px 0 60px; /* Adjusted padding-top for mobile fixed header */
  }

  .page-news__hero-title {
    font-size: 32px;
  }

  .page-news__hero-description {
    font-size: 16px;
  }

  .page-news__section-title {
    font-size: 24px;
    margin-bottom: 30px;
  }

  .page-news__article-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-news__article-content {
    padding: 15px;
  }

  .page-news__article-title {
    font-size: 18px;
  }

  .page-news__article-excerpt {
    font-size: 14px;
  }

  .page-news__list-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-news__list-link {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-news__list-image {
    width: 100%;
    height: 180px;
    border-radius: 10px 10px 0 0;
  }

  .page-news__list-content {
    padding: 15px;
    width: 100%;
  }

  .page-news__list-title {
    font-size: 18px;
  }

  .page-news__list-excerpt {
    font-size: 14px;
  }

  .page-news__category-list {
    gap: 10px;
  }

  .page-news__category-item {
    padding: 6px 15px;
  }

  .page-news__category-link {
    font-size: 14px;
  }

  .page-news__cta-title {
    font-size: 28px;
  }

  .page-news__cta-description {
    font-size: 16px;
  }

  /* Responsive images */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-news__hero-section,
  .page-news__latest-articles-section,
  .page-news__categories-section,
  .page-news__more-articles-section,
  .page-news__cta-section,
  .page-news__container,
  .page-news__article-card,
  .page-news__list-item,
  .page-news__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Responsive buttons */
  .page-news__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
  }
}

/* Color Contrast Fixes (if needed, though designed to be compliant) */
.page-news__dark-section {
  background: var(--primary-color);
  color: var(--text-color-light);
}

.page-news__light-bg {
  color: var(--text-color-dark);
  background: var(--text-color-light);
}