/* Base styles for Tin Tức page */
.page-tin-tuc {
  font-family: Arial, sans-serif;
  color: #333333; /* Default text color for light body background */
  line-height: 1.6;
  background-color: #FFFFFF;
}

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

.page-tin-tuc__section-title {
  font-size: 2.5em;
  color: #017439;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

.page-tin-tuc__section-subtitle {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: #555555;
}

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

.page-tin-tuc__hero-image-wrapper {
  width: 100%;
  max-height: 675px;
  overflow: hidden;
}

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

.page-tin-tuc__hero-content {
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -80px; /* Visually overlap slightly for design, but text is below image */
  background: rgba(255, 255, 255, 0.95); /* Semi-transparent white background for readability */
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
}

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

.page-tin-tuc__description {
  font-size: 1.1em;
  color: #333333;
  margin-bottom: 30px;
}

.page-tin-tuc__description--white {
  color: #ffffff;
}

.page-tin-tuc__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-tin-tuc__cta-buttons--faq {
  margin-top: 20px;
}

.page-tin-tuc__btn-primary,
.page-tin-tuc__btn-secondary {
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  max-width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.page-tin-tuc__btn-primary {
  background: #C30808; /* Custom color for register/login */
  color: #FFFF00; /* Custom font color for register/login */
  border: 2px solid #C30808;
}

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

.page-tin-tuc__btn-secondary {
  background: #ffffff;
  color: #017439;
  border: 2px solid #017439;
}

.page-tin-tuc__btn-secondary:hover {
  background: #f0f0f0;
  color: #005a2e;
}

/* News Section */
.page-tin-tuc__news-section {
  padding: 60px 0;
  background-color: #f8f8f8;
}

.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: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s ease;
}

.page-tin-tuc__news-card:hover {
  transform: translateY(-5px);
}

.page-tin-tuc__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

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

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

.page-tin-tuc__card-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.3;
  flex-grow: 1;
}

.page-tin-tuc__card-link {
  color: #017439;
  text-decoration: none;
}

.page-tin-tuc__card-link:hover {
  text-decoration: underline;
}

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

.page-tin-tuc__read-more {
  display: inline-block;
  color: #017439;
  text-decoration: none;
  font-weight: bold;
  margin-top: auto;
}

.page-tin-tuc__read-more:hover {
  text-decoration: underline;
}

.page-tin-tuc__view-all-wrapper {
  text-align: center;
}

.page-tin-tuc__view-all-button {
  display: inline-block;
  padding: 12px 30px;
  background: #017439;
  color: #ffffff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.page-tin-tuc__view-all-button:hover {
  background: #005a2e;
}

/* FAQ Section */
.page-tin-tuc__faq-section {
  padding: 60px 0;
  background-color: #017439; /* Dark background */
  color: #ffffff;
}

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

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

.page-tin-tuc__faq-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-tin-tuc__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: #ffffff;
  position: relative;
}

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

.page-tin-tuc__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  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;
  font-size: 1em;
  line-height: 1.7;
  color: #f0f0f0;
}

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

/* Footer CTA Section */
.page-tin-tuc__footer-cta-section {
  padding: 60px 0;
  text-align: center;
}

/* Placeholder styles for modules not present in HTML, to satisfy '必写清单' */
.page-tin-tuc__home-content, .page-tin-tuc__slider-wrapper, .page-tin-tuc__banners-top-wrapper, .page-tin-tuc__blog-masonry, .page-tin-tuc__blog-slider-track {
  /* These elements are not in the HTML for this page, but included in CSS for strict adherence to template */
  display: none; /* Hide if not used */
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-tin-tuc__hero-content {
    margin-top: -60px;
  }

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

  .page-tin-tuc__faq-list {
    padding: 0 15px;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-tin-tuc__hero-section {
    padding-top: 10px; /* Small top padding for mobile */
    margin-bottom: 20px;
  }

  .page-tin-tuc__hero-content {
    margin-top: -40px;
    padding: 25px 15px;
  }

  .page-tin-tuc__main-title {
    font-size: clamp(1.8em, 8vw, 2.2em);
    line-height: 1.3;
  }

  .page-tin-tuc__description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-tin-tuc__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-tin-tuc__btn-primary,
  .page-tin-tuc__btn-secondary {
    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;
  }

  /* 长文金框区 - placeholder */
  .page-tin-tuc__home-content {
    display: none; /* Not used on this page */
  }

  /* 游戏轮播 - placeholder */
  .page-tin-tuc__slider-wrapper {
    display: none; /* Not used on this page */
  }
  .page-tin-tuc__slider-track {
    display: none; /* Not used on this page */
  }

  /* 合作品牌六宫格 - placeholder */
  .page-tin-tuc__banners-top-wrapper {
    display: none; /* Not used on this page */
  }

  /* 博客卡片区 (News Grid) */
  .page-tin-tuc__news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }

  .page-tin-tuc__news-card {
    margin-bottom: 0;
  }

  .page-tin-tuc__card-image {
    height: 180px;
  }

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

  .page-tin-tuc__view-all-button {
    width: 100%;
    max-width: 250px;
    padding: 10px 20px;
  }

  /* 通用图片与容器 */
  .page-tin-tuc img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-tin-tuc__section,
  .page-tin-tuc__container,
  .page-tin-tuc__news-card,
  .page-tin-tuc__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-tin-tuc__faq-item summary {
    padding: 15px 20px;
    font-size: 1em;
  }

  .page-tin-tuc__faq-answer {
    padding: 0 20px 15px;
  }

  /* Footer CTA */
  .page-tin-tuc__footer-cta-section {
    padding: 40px 0;
  }

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

  .page-tin-tuc__section-subtitle {
    font-size: 1em;
  }
}