/* style/news.css */
:root {
  --primary-color: #1A202C;
  --secondary-color: #FFD700;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #000000;
  --bg-light: #f5f5f5;
  --card-bg-dark-mode: rgba(255, 255, 255, 0.1);
  --border-color: #e0e0e0;
  --button-hover-dark: #0e1218;
  --button-hover-light: #e6c200;
}

.page-news {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Body background is dark, so text is light */
  background-color: var(--bg-dark); /* Inherited from shared.css body, but explicit here for clarity */
}

/* 🚨 Fixed Header Padding */
.page-news__hero-section {
  padding-top: 120px; /* Desktop: Adjust based on fixed header height */
}

.page-news__dark-section {
  background-color: var(--primary-color);
  color: var(--text-light);
}

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

/* Hero Section */
.page-news__hero-section {
  position: relative;
  text-align: center;
  padding: 80px 20px;
  background: url('[GALLERY:news:hero_background,loto188_live,vietnam_gambling,dynamic_action]') no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.page-news__hero-container {
  max-width: 900px;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.6);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-news__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: var(--secondary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  line-height: 1.2;
}

.page-news__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--text-light);
}

.page-news__cta-button {
  display: inline-block;
  padding: 15px 35px;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.page-news__cta-button:hover {
  background-color: var(--button-hover-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-news__cta-button--primary {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

.page-news__cta-button--secondary {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.page-news__cta-button--secondary:hover {
  background-color: var(--button-hover-dark);
  color: var(--secondary-color);
  border-color: var(--button-hover-light);
}

/* Section Titles */
.page-news__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 50px;
  color: inherit;
  font-weight: bold;
}

/* Categories Section */
.page-news__categories-section {
  padding: 60px 20px;
}

.page-news__categories-container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-news__category-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.page-news__category-item {
  display: inline-block;
  padding: 12px 25px;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 25px;
  font-weight: bold;
  font-size: 1em;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  border: 2px solid var(--secondary-color);
}

.page-news__category-item:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Featured News Section */
.page-news__featured-news {
  padding: 80px 20px;
}

.page-news__featured-container {
  max-width: 1200px;
  margin: 0 auto;
}

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

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

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

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

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

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

.page-news__featured-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.page-news__featured-excerpt {
  font-size: 0.95em;
  color: var(--text-light);
  margin-bottom: 15px;
}

.page-news__featured-date {
  font-size: 0.85em;
  color: #aaa;
  display: block;
}

/* Latest News Section */
.page-news__latest-news-section {
  padding: 80px 20px;
}

.page-news__latest-news-container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-news__news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.page-news__news-card {
  background-color: var(--card-bg-dark-mode);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-news__news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

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

.page-news__news-card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.page-news__news-card-content {
  padding: 18px;
}

.page-news__news-card-title {
  font-size: 1.2em;
  margin-bottom: 8px;
  color: var(--secondary-color);
}

.page-news__news-card-excerpt {
  font-size: 0.9em;
  color: var(--text-light);
  margin-bottom: 12px;
}

.page-news__news-card-date {
  font-size: 0.8em;
  color: #aaa;
  display: block;
}

/* Pagination */
.page-news__pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

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

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

.page-news__pagination-link--active {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  pointer-events: none;
}

/* CTA Section */
.page-news__cta-section {
  padding: 80px 20px;
  text-align: center;
}

.page-news__cta-container {
  max-width: 1200px;
  margin: 0 auto;
  background-color: var(--card-bg-dark-mode);
  border-radius: 10px;
  padding: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, var(--primary-color) 0%, rgba(26, 32, 44, 0.8) 100%), url('[GALLERY:news:cta_banner_bg,loto188_live,online_gambling_vietnam,join_now_background]') no-repeat center center/cover;
  background-blend-mode: overlay;
}

.page-news__cta-image {
  max-width: 250px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-news__cta-content {
  max-width: 700px;
}

.page-news__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: var(--secondary-color);
  line-height: 1.2;
}

.page-news__cta-description {
  font-size: 1.1em;
  color: var(--text-light);
  margin-bottom: 30px;
}

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

  .page-news__section-title {
    font-size: 2em;
  }

  .page-news__featured-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .page-news__news-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .page-news__cta-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    padding-top: 100px !important; /* Mobile: Adjust based on fixed header height */
    padding: 60px 15px;
    min-height: 350px;
  }

  .page-news__hero-container {
    padding: 30px;
  }

  .page-news__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

  .page-news__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }

  .page-news__cta-button {
    padding: 12px 25px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-news__section-title {
    font-size: 1.8em;
    margin-bottom: 40px;
  }

  .page-news__categories-section,
  .page-news__featured-news,
  .page-news__latest-news-section,
  .page-news__cta-section {
    padding: 40px 15px;
  }

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

  .page-news__category-item {
    width: 100%;
    text-align: center;
    padding: 10px 15px;
    font-size: 0.95em;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-news__featured-grid,
  .page-news__news-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-news__featured-image,
  .page-news__news-card-image {
    height: 200px;
  }

  .page-news__featured-title {
    font-size: 1.2em;
  }

  .page-news__news-card-title {
    font-size: 1.1em;
  }

  .page-news__cta-container {
    padding: 30px;
    flex-direction: column;
    gap: 20px;
  }

  .page-news__cta-image {
    max-width: 200px;
  }

  .page-news__cta-title {
    font-size: 1.8em;
  }

  .page-news__cta-description {
    font-size: 1em;
  }

  .page-news img,
  .page-news video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  .page-news__hero-section,
  .page-news__categories-section,
  .page-news__featured-news,
  .page-news__latest-news-section,
  .page-news__cta-section,
  .page-news__hero-container,
  .page-news__categories-container,
  .page-news__featured-container,
  .page-news__latest-news-container,
  .page-news__cta-container,
  .page-news__category-list,
  .page-news__featured-grid,
  .page-news__news-grid,
  .page-news__pagination {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow-x: hidden !important;
  }

  .page-news__pagination {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .page-news__featured-card,
  .page-news__news-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 480px) {
  .page-news__main-title {
    font-size: 1.8em;
  }

  .page-news__section-title {
    font-size: 1.5em;
  }

  .page-news__cta-title {
    font-size: 1.5em;
  }
  .page-news__hero-container {
    padding: 20px;
  }
  .page-news__cta-container {
    padding: 20px;
  }
  .page-news__cta-button {
    font-size: 0.9em;
    padding: 10px 20px;
  }
}