.page-tin-tuc {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #f5f5f5; /* Light background for the page */
}

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

.page-tin-tuc__dark-section {
  background-color: #017439;
  color: #ffffff;
}

.page-tin-tuc__light-bg {
  background-color: #ffffff;
  color: #333333;
}

/* Hero Section */
.page-tin-tuc__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, assuming body handles header offset */
  padding-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.page-tin-tuc__hero-image-wrapper {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-tin-tuc__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.page-tin-tuc__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 20px;
  margin-top: 20px;
}

.page-tin-tuc__main-title {
  font-size: clamp(2em, 3.5vw, 2.8em);
  font-weight: bold;
  margin-bottom: 15px;
  color: #ffffff;
  line-height: 1.2;
}

.page-tin-tuc__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

/* Buttons */
.page-tin-tuc__btn-primary {
  display: inline-block;
  background-color: #C30808;
  color: #FFFF00; /* Register/Login font color */
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  border: none;
}

.page-tin-tuc__btn-primary:hover {
  background-color: #a00606;
}

.page-tin-tuc__btn-secondary {
  display: inline-block;
  background-color: #ffffff;
  color: #017439;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  border: 2px solid #017439;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-tin-tuc__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
}

.page-tin-tuc__btn-outline {
  display: inline-block;
  background: transparent;
  color: #017439;
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  border: 1px solid #017439;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-tin-tuc__btn-outline:hover {
  background-color: #017439;
  color: #ffffff;
}

/* Section Titles */
.page-tin-tuc__section-title {
  font-size: 2.2em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #017439;
}

.page-tin-tuc__dark-section .page-tin-tuc__section-title {
  color: #ffffff;
}

.page-tin-tuc__section-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  font-size: 1.1em;
  color: #555555;
}

/* News Cards */
.page-tin-tuc__featured-news {
  padding: 60px 0;
}

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

.page-tin-tuc__news-card {
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.page-tin-tuc__news-thumbnail {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

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

.page-tin-tuc__news-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-tin-tuc__news-title a {
  color: #017439;
  text-decoration: none;
}

.page-tin-tuc__news-title a:hover {
  text-decoration: underline;
}

.page-tin-tuc__news-meta {
  font-size: 0.9em;
  color: #777777;
  margin-bottom: 15px;
}

.page-tin-tuc__news-excerpt {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-tin-tuc__view-all-button {
  text-align: center;
  margin-top: 30px;
}

/* News Categories */
.page-tin-tuc__news-categories {
  padding: 60px 0;
}

.page-tin-tuc__categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 25px;
}

.page-tin-tuc__category-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  text-decoration: none;
  color: #ffffff;
  transition: background-color 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 180px;
}

.page-tin-tuc__category-card:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
}

.page-tin-tuc__category-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 15px;
}

.page-tin-tuc__category-title {
  font-size: 1.2em;
  font-weight: bold;
}

/* Latest Updates */
.page-tin-tuc__latest-updates {
  padding: 60px 0;
}

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

.page-tin-tuc__update-item {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-tin-tuc__update-title {
  font-size: 1.3em;
  font-weight: bold;
  color: #017439;
  margin-bottom: 10px;
}

.page-tin-tuc__update-date {
  font-size: 0.9em;
  color: #777777;
  margin-bottom: 15px;
}

.page-tin-tuc__update-text {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* CTA Section */
.page-tin-tuc__cta-section {
  padding: 60px 20px;
  text-align: center;
}

.page-tin-tuc__cta-title {
  font-size: 2.5em;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-tin-tuc__cta-description {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ Section */
.page-tin-tuc__faq-section {
  padding: 60px 0;
}

.page-tin-tuc__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-tin-tuc__faq-item {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  margin-bottom: 15px;
  overflow: hidden;
  border: none;
}

.page-tin-tuc__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.1em;
  font-weight: bold;
  color: #017439;
  cursor: pointer;
  background-color: #f9f9f9;
  list-style: none;
}

.page-tin-tuc__faq-question::-webkit-details-marker {
  display: none;
}

.page-tin-tuc__faq-qtext {
  flex-grow: 1;
}

.page-tin-tuc__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #017439;
  transition: transform 0.3s ease;
}

.page-tin-tuc__faq-item[open] .page-tin-tuc__faq-toggle {
  transform: rotate(45deg);
}

.page-tin-tuc__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  color: #555555;
}

.page-tin-tuc__faq-answer p {
  margin-bottom: 0;
}

/* Generic Image and Container Rules */
.page-tin-tuc img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-tin-tuc__section,
.page-tin-tuc__card,
.page-tin-tuc__container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* --- CSS for Homepage modules (required selectors, adapted for non-homepage context) --- */
/* These selectors are included to meet the '必写清单' requirement, 
   even if the HTML for Tin Tức doesn't directly use these exact structures. */
/* Module 3: Games Row */
.page-tin-tuc__row-games, .page-tin-tuc__row-sport, .page-tin-tuc__row-coop {
  background-color: #f5f5f5; /* Adjusted for light page background */
  padding: 40px 20px;
  max-width: 1330px;
  margin: 0 auto;
}
.page-tin-tuc__games-title, .page-tin-tuc__sport-title, .page-tin-tuc__coop-title {
  color: #017439; /* Adjusted for light page background */
  text-align: center;
}
.page-tin-tuc__slider-wrapper {
  overflow: hidden;
  margin: 20px 0;
}
.page-tin-tuc__slider-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  transform: translateX(0);
  transition: transform 0.5s ease-in-out;
}
.page-tin-tuc__game-slide {
  flex: 0 0 200px;
  max-width: 200px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  text-align: center;
  padding: 15px;
}
/* Module 4: Banners Top Wrapper (6-column grid) */
.page-tin-tuc__banners-top-wrapper {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  max-width: 900px;
  margin: 0 auto 40px auto;
  padding: 0 10px;
}
.page-tin-tuc__banner-item {
  text-align: center;
}
.page-tin-tuc__banner-item img {
  
  
  object-fit: contain;
  margin: 0 auto;
  display: block;
}
/* Module 5: Blog Masonry (for general blog/news display, not specific to homepage) */
.page-tin-tuc__blog-masonry {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
  margin-top: 40px;
}
.page-tin-tuc__blog-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
.page-tin-tuc__blog-slider-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  transform: translateX(0);
  transition: transform 0.5s ease-in-out;
}
.page-tin-tuc__blog-slide {
  flex: 0 0 calc(33.333% - 14px); /* Approx 1/3 width with gap */
  max-width: calc(33.333% - 14px);
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-tin-tuc__main-title {
    font-size: clamp(1.8em, 4vw, 2.5em);
  }
  .page-tin-tuc__section-title {
    font-size: 2em;
  }
  .page-tin-tuc__news-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-tin-tuc__categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  .page-tin-tuc__update-list {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-tin-tuc__cta-title {
    font-size: 2em;
  }
  .page-tin-tuc__blog-masonry {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page-tin-tuc__blog-slide {
    flex: 0 0 calc(50% - 10px);
    max-width: calc(50% - 10px);
  }
}

@media (max-width: 768px) {
  .page-tin-tuc__container {
    padding: 15px;
  }
  .page-tin-tuc__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px;
  }
  .page-tin-tuc__hero-content {
    margin-top: 15px;
  }
  .page-tin-tuc__main-title {
    font-size: 1.8em !important;
  }
  .page-tin-tuc__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-tin-tuc__btn-primary,
  .page-tin-tuc__btn-secondary,
  .page-tin-tuc__btn-outline,
  .page-tin-tuc a[class*="button"],
  .page-tin-tuc a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 10px; /* Add margin for stacked buttons */
  }
  .page-tin-tuc__cta-section .page-tin-tuc__btn-primary {
    margin-top: 20px;
  }
  .page-tin-tuc__cta-buttons,
  .page-tin-tuc__button-group,
  .page-tin-tuc__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    display: flex;
    flex-direction: column; /* Stack buttons vertically */
  }
  .page-tin-tuc__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-tin-tuc__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-tin-tuc__news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-tin-tuc__news-thumbnail {
    height: 180px;
  }
  .page-tin-tuc__news-title {
    font-size: 1.2em;
  }
  .page-tin-tuc__categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .page-tin-tuc__category-card {
    min-height: 150px;
    padding: 15px;
  }
  .page-tin-tuc__category-icon {
    width: 60px;
    height: 60px;
  }
  .page-tin-tuc__update-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-tin-tuc__cta-title {
    font-size: 1.8em;
  }
  .page-tin-tuc__cta-description {
    font-size: 1em;
  }
  .page-tin-tuc__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-tin-tuc__faq-answer {
    padding: 0 20px 15px 20px;
  }
  .page-tin-tuc img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-tin-tuc__section,
  .page-tin-tuc__card,
  .page-tin-tuc__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  /* Homepage module rules for mobile (必写清单) */
  .page-tin-tuc__home-content {
    height: auto; /* Allow content to expand */
    overflow-y: visible; /* No scrollbar on mobile */
    padding: 15px;
  }
  .page-tin-tuc__home-content h2 {
    font-size: 1.5em;
  }
  .page-tin-tuc__row-games, .page-tin-tuc__row-sport, .page-tin-tuc__row-coop {
    padding: 20px 15px;
  }
  .page-tin-tuc__slider-track {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    justify-content: flex-start;
  }
  .page-tin-tuc__game-slide {
    flex: 0 0 calc(50% - 8px); /* Two slides per view */
    max-width: calc(50% - 8px);
    scroll-snap-align: start;
  }
  .page-tin-tuc__banners-top-wrapper {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important; /* 3 columns on mobile */
    gap: 8px;
  }
  .page-tin-tuc__banner-item img {
    
    
  }
  .page-tin-tuc__blog-masonry {
    grid-template-columns: 1fr !important; /* Single column on mobile */
    gap: 15px;
  }
  .page-tin-tuc__blog-slide {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
  .page-tin-tuc__blog-slider-track {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    justify-content: flex-start;
  }
}