/* CSS for the News page (Tin Tức) */
.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main, #F2FFF6); /* Default text color for dark background */
  background-color: var(--background, #08160F); /* Dark background */
}

.page-news__container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

.page-news__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding as shared.css handles body padding */
  padding-bottom: 60px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-news__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.3;
}

.page-news__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 40px 20px;
  background: rgba(8, 22, 15, 0.7); /* Slightly transparent dark background */
  border-radius: 10px;
  margin-bottom: 30px;
}

.page-news__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
  font-weight: 700;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-news__intro-description {
  font-size: 1.1em;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 30px;
}

.page-news__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em); /* Responsive font size */
  color: var(--text-main, #F2FFF6);
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-news__section-description {
  font-size: 1em;
  color: var(--text-secondary, #A7D9B8);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

.page-news__latest-articles, .page-news__featured-news, .page-news__faq-section, .page-news__cta-section {
  padding: 60px 0;
}

.page-news__latest-articles {
  background-color: var(--background, #08160F);
}

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

.page-news__article-card {
  background-color: var(--card-bg, #11271B); /* Card background */
  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;
  display: flex;
  flex-direction: column;
}

.page-news__article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-news__article-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-news__article-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-news__article-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-news__article-title a {
  color: var(--text-main, #F2FFF6);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__article-title a:hover {
  color: var(--glow, #57E38D);
}

.page-news__article-meta {
  font-size: 0.9em;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 15px;
}

.page-news__article-excerpt {
  font-size: 1em;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__read-more {
  display: inline-block;
  color: var(--gold, #F2C14E);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  margin-top: auto; /* Push to bottom */
}

.page-news__read-more:hover {
  color: var(--glow, #57E38D);
}

.page-news__view-all-button-container {
  text-align: center;
  margin-top: 50px;
}

.page-news__cta-button {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  font-size: 1.1em;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: none;
}

.page-news__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-news__btn-secondary {
  background: var(--card-bg, #11271B);
  color: var(--gold, #F2C14E);
  border: 2px solid var(--border, #2E7A4E);
  margin-left: 20px;
}

.page-news__btn-secondary:hover {
  background: var(--deep-green, #0A4B2C);
  border-color: var(--gold, #F2C14E);
  color: var(--glow, #57E38D);
}

.page-news__featured-news {
  background-color: var(--deep-green, #0A4B2C);
}

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

.page-news__featured-card {
  background-color: var(--card-bg, #11271B);
  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;
  display: flex;
  flex-direction: column;
}

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

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

.page-news__featured-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-news__featured-title {
  font-size: 1.6em;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-news__featured-title a {
  color: var(--gold, #F2C14E);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__featured-title a:hover {
  color: var(--glow, #57E38D);
}

.page-news__featured-meta {
  font-size: 0.95em;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 20px;
}

.page-news__featured-excerpt {
  font-size: 1em;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-news__faq-section {
  background-color: var(--background, #08160F);
}

details.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border, #2E7A4E);
  overflow: hidden;
  background: var(--card-bg, #11271B);
}
details.page-news__faq-item summary.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-news__faq-item summary.page-news__faq-question::-webkit-details-marker {
  display: none;
}
details.page-news__faq-item summary.page-news__faq-question:hover {
  background: var(--deep-green, #0A4B2C);
}
.page-news__faq-qtext {
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main, #F2FFF6);
}
.page-news__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--gold, #F2C14E);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-news__faq-item .page-news__faq-answer {
  padding: 0 20px 20px;
  background: var(--deep-green, #0A4B2C);
  border-radius: 0 0 5px 5px;
  color: var(--text-secondary, #A7D9B8);
}

.page-news__cta-section {
  background-color: var(--deep-green, #0A4B2C);
  text-align: center;
}

.page-news__cta-content {
  padding: 50px 20px;
  max-width: 900px;
}

.page-news__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

/* --- Responsive Styles --- */

/* Desktop specific styles (min-width: 1024px) - No specific override needed as base is desktop-first */
@media (min-width: 1024px) {
  .page-news__hero-content {
    padding: 60px 40px;
  }
  .page-news__cta-button.page-news__btn-secondary {
    margin-left: 20px; /* Ensure spacing only on desktop */
  }
}

/* Tablet and smaller desktops (max-width: 1023px) */
@media (max-width: 1023px) {
  /* News page does not have game trial, so no specific reset for that part */
  .page-news__articles-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-news__featured-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
  .page-news__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }
  .page-news__section-title {
    font-size: clamp(1.8em, 4.5vw, 2.5em);
  }
}

/* Mobile specific styles (max-width: 768px) */
@media (max-width: 768px) {
  .page-news {
    font-size: 15px;
  }
  .page-news__hero-section {
    padding-bottom: 40px;
  }
  .page-news__hero-content {
    padding: 30px 15px;
    margin-bottom: 20px;
  }
  .page-news__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
    margin-bottom: 15px;
  }
  .page-news__intro-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-news__section-title {
    font-size: clamp(1.6em, 6vw, 2.2em);
    margin-bottom: 15px;
  }
  .page-news__section-description {
    font-size: 0.9em;
    margin-bottom: 30px;
  }
  .page-news__latest-articles, .page-news__featured-news, .page-news__faq-section, .page-news__cta-section {
    padding: 40px 0;
  }
  .page-news__articles-grid, .page-news__featured-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-news__article-image {
    height: 180px;
  }
  .page-news__article-title {
    font-size: 1.2em;
  }
  .page-news__featured-image {
    height: 200px;
  }
  .page-news__featured-title {
    font-size: 1.4em;
  }
  .page-news__cta-button {
    width: 100% !important;
    margin: 0 !important;
    font-size: 1em;
    padding: 10px 20px;
  }
  .page-news__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding: 0 15px; /* Add padding to button container */
  }
  .page-news__container {
    padding: 0 15px;
  }
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-news__section, .page-news__card, .page-news__container, .page-news__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  details.page-news__faq-item summary.page-news__faq-question { padding: 15px; }
  .page-news__faq-qtext { font-size: 1em; }
  details.page-news__faq-item .page-news__faq-answer { padding: 0 15px 15px; }
}

/* Body background color is dark, so content text should be light */
.page-news {
  color: var(--text-main, #F2FFF6); /* Light text for dark background */
}

.page-news__card {
  background: var(--card-bg, #11271B); /* Darker card background */
  color: var(--text-main, #F2FFF6);
}

.page-news__dark-section {
  background: var(--deep-green, #0A4B2C);
  color: var(--text-main, #F2FFF6);
}

.page-news__light-bg {
  background: var(--background, #08160F);
  color: var(--text-main, #F2FFF6);
}

/* Button colors already defined with sufficient contrast */
.page-news__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff; /* White text on green gradient */
}

.page-news__btn-secondary {
  background: var(--card-bg, #11271B);
  color: var(--gold, #F2C14E); /* Gold text on dark background */
  border: 2px solid var(--border, #2E7A4E);
}

/* Ensure all images maintain original color */
.page-news img {
  filter: none; /* Prohibit any filter effects */
}

/* The following media queries are included as per the prompt's explicit instruction for the css field, even if their specific game trial content is not directly used on this 'news.html' page. */
@media (max-width: 1023px) {
  .page-news__home-hero {
    display: block !important;
    grid-template-columns: none !important;
    height: auto !important;
    max-height: none !important;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .page-news__hero-brand,
  .page-news__hero-jackpot {
    display: none !important;
  }
  .page-news__game-trial {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    overflow: hidden !important;
    margin: 0 auto;
    padding: 0 0 12px !important;
    box-sizing: border-box;
  }
  .page-news__game-trial-shell {
    height: auto !important;
    max-height: none !important;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-news__game-trial-topbar,
  .page-news__game-trial-bottombar {
    display: none !important;
  }
  .page-news__game-trial-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 1024 / 768;
    flex: none !important;
    min-height: 240px;
    max-height: none !important;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-news__game-trial-frame {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    max-width: 100%;
    border: none;
    z-index: 1;
    overflow: hidden;
  }
  .page-news__game-trial-overlay {
    z-index: 5 !important;
    pointer-events: auto !important;
  }
  .page-news__game-trial-start {
    z-index: 6 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
  }
}

@media (min-width: 1024px) {
  .page-news__home-hero {
    display: grid;
    grid-template-columns: 26% 48% 26%;
    gap: 16px;
    align-items: stretch;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px 16px 24px;
    box-sizing: border-box;
  }
  .page-news__hero-brand,
  .page-news__hero-jackpot,
  .page-news__game-trial {
    height: 300px;
    max-height: 300px;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-news__game-trial {
    max-width: none !important;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .page-news__game-trial-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 300px;
    box-sizing: border-box;
  }
  .page-news__game-trial-viewport {
    flex: 1;
    min-height: 0;
    position: relative;
    width: 100%;
  }
  .page-news__game-trial-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: none;
  }
  .page-news__hero-jackpot-claim {
    background: #c62828 !important;
    color: #fff !important;
  }
}

@media (max-width: 768px) {
  /* These styles are integrated into the main mobile media query above for conciseness as per the news page content. */
  /* No specific promo-strip-track or hot-games-grid for news page as they are typically homepage elements */
}

.page-news__game-trial-overlay{
  z-index:5;
  pointer-events:auto;
}
.page-news__game-trial-overlay.is-hidden{
  display:none!important;
  pointer-events:none!important;
}
.page-news__game-trial-start{
  z-index:6;
  pointer-events:auto;
  touch-action:manipulation;
}
.page-news__game-trial-shell{
  border:1px solid rgba(212,175,55,.45);
  border-radius:10px;
  overflow:hidden;
}
.page-news__reward-modal{
  position:fixed;
  inset:0;
  z-index:10000;
}
.page-news__reward-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 2em;
  color: #fff;
  cursor: pointer;
  z-index: 10001;
  line-height: 1;
  padding: 5px;
}