/* Base styles for the news page */
.page-tin-tuc {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #F4F7FB; /* Page background color */
}

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

.page-tin-tuc__dark-section {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
}

.page-tin-tuc__light-bg {
  background-color: #F4F7FB;
  color: #1F2D3D;
}

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

.page-tin-tuc__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for aesthetic */
  overflow: hidden;
}

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

.page-tin-tuc__hero-content {
  position: relative; /* Ensure content is above any potential background elements */
  z-index: 10;
  padding: 20px;
  max-width: 800px;
  margin-top: 20px; /* Space between image and content */
}

.page-tin-tuc__hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #ffffff;
}

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

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

.page-tin-tuc__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-tin-tuc__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.4);
}

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

.page-tin-tuc__btn-secondary:hover {
  background: #e0e0e0;
  color: #2F6BFF;
}

.page-tin-tuc__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

/* Section Titles */
.page-tin-tuc__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 40px;
  text-align: center;
  color: #1F2D3D; /* Text Main color */
}

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

/* Latest News Section */
.page-tin-tuc__latest-news {
  padding: 60px 0;
}

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

.page-tin-tuc__news-card {
  background-color: #FFFFFF; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards are same height */
  display: flex;
  flex-direction: column;
}

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

.page-tin-tuc__card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

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

.page-tin-tuc__card-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #1F2D3D; /* Text Main */
  line-height: 1.3;
}

.page-tin-tuc__card-meta {
  font-size: 0.9rem;
  color: #666666;
  margin-bottom: 15px;
}

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

.page-tin-tuc__read-more {
  color: #2F6BFF;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-tin-tuc__read-more i {
  transition: transform 0.3s ease;
}

.page-tin-tuc__card-link:hover .page-tin-tuc__read-more i {
  transform: translateX(5px);
}

/* Featured Articles Section */
.page-tin-tuc__featured-articles {
  padding: 60px 0;
}

.page-tin-tuc__article-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.page-tin-tuc__article-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-tin-tuc__article-link {
  display: flex;
  align-items: center;
  padding: 20px;
  text-decoration: none;
  color: inherit;
}

.page-tin-tuc__article-image {
  width: 200px; /* Adjusted for smaller list item */
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  margin-right: 20px;
  flex-shrink: 0;
}

.page-tin-tuc__article-content {
  flex-grow: 1;
}

.page-tin-tuc__article-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #ffffff;
}

.page-tin-tuc__article-meta {
  font-size: 0.85rem;
  color: #cccccc;
  margin-bottom: 10px;
}

.page-tin-tuc__article-summary {
  font-size: 0.95rem;
  color: #f0f0f0;
}

/* About News Section */
.page-tin-tuc__about-news {
  padding: 60px 0;
}

.page-tin-tuc__content-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-tin-tuc__text-block {
  flex: 1;
  font-size: 1rem;
  line-height: 1.7;
  color: #1F2D3D; /* Text Main */
}

.page-tin-tuc__text-block p {
  margin-bottom: 15px;
}

.page-tin-tuc__image-block {
  flex: 0 0 450px;
  max-width: 450px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.page-tin-tuc__responsive-image {
  width: 100%;
  height: auto;
  display: block;
}

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

.page-tin-tuc__cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
}

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

/* General image and container responsiveness */
.page-tin-tuc img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* Media Queries for Mobile (max-width: 768px) */
@media (max-width: 768px) {
  .page-tin-tuc {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-tin-tuc__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* HERO 主图区域 */
  .page-tin-tuc__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px;
  }

  .page-tin-tuc__hero-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

  .page-tin-tuc__hero-description {
    font-size: 1rem;
  }

  /* Section Titles */
  .page-tin-tuc__section-title {
    font-size: clamp(1.8rem, 7vw, 2.2rem);
    margin-bottom: 30px;
  }

  /* Latest News Section */
  .page-tin-tuc__news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-tin-tuc__card-image {
    height: 180px; /* Adjust height for mobile */
  }

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

  /* Featured Articles Section */
  .page-tin-tuc__article-link {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
  }

  .page-tin-tuc__article-image {
    width: 100% !important;
    height: 180px !important;
    margin-right: 0;
    margin-bottom: 15px;
  }

  .page-tin-tuc__article-title {
    font-size: 1.1rem;
  }

  .page-tin-tuc__article-summary {
    font-size: 0.9rem;
  }

  /* About News Section */
  .page-tin-tuc__content-wrapper {
    flex-direction: column;
    gap: 30px;
  }

  .page-tin-tuc__image-block {
    flex: 1;
    max-width: 100%;
  }

  /* CTA Section */
  .page-tin-tuc__cta-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .page-tin-tuc__cta-description {
    font-size: 1rem;
  }

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

  /* 通用图片与容器 */
  .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,
  .page-tin-tuc__content-wrapper,
  .page-tin-tuc__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 按钮与按钮容器 */
  .page-tin-tuc__btn-primary,
  .page-tin-tuc__btn-secondary,
  .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;
  }

  .page-tin-tuc__button-group {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column; /* Ensure vertical stacking for multiple buttons */
  }

  .page-tin-tuc__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column; /* Ensure vertical stacking for multiple buttons */
    gap: 15px;
  }
}

/* No specific styles for __home-content, __row-games, __slider-track, __game-slide, __banners-top-wrapper, __banner-item img, __blog-masonry, __blog-card-link, __btn-outline, __blog-slider-track, __blog-slide as this is a News page, not an index page. */
/* The required selectors for homepage modules are not applicable to tin-tuc.css. */