.page-tin-tuc {
  font-family: Arial, sans-serif;
  color: #333333; /* Dark text for light background */
  line-height: 1.6;
  background-color: #ffffff; /* Explicitly set page background */
}

.page-tin-tuc__container {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-tin-tuc__top-section {
  padding-top: 10px; /* Small top padding as per rules */
  padding-bottom: 40px;
  text-align: center;
  background-color: #f8f8f8; /* Light grey background for top section */
}

.page-tin-tuc__main-title {
  font-size: clamp(2em, 4vw, 2.5em); /* Use clamp for H1 font-size */
  font-weight: bold;
  color: #017439;
  margin-bottom: 15px;
  line-height: 1.2;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-tin-tuc__description {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-tin-tuc__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  margin-top: 20px;
}

.page-tin-tuc__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  max-width: 100%; /* For mobile responsiveness */
  box-sizing: border-box; /* For mobile responsiveness */
  white-space: normal; /* For mobile responsiveness */
  word-wrap: break-word; /* For mobile responsiveness */
  text-align: center;
}

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

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

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

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

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

.page-tin-tuc__btn--register:hover {
  background-color: #a30707;
  border-color: #a30707;
}

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

/* Featured News Grid */
.page-tin-tuc__featured-news {
  padding: 40px 0;
  background-color: #ffffff;
}

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

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

.page-tin-tuc__news-figure {
  margin: 0;
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  overflow: hidden;
}

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

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

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

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

.page-tin-tuc__news-title a:hover {
  color: #005f2e;
}

.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: 15px;
  flex-grow: 1; /* Pushes read more to bottom */
}

.page-tin-tuc__read-more {
  display: inline-block;
  color: #017439;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  margin-top: auto; /* Aligns to bottom */
}

.page-tin-tuc__read-more:hover {
  color: #005f2e;
  text-decoration: underline;
}

/* Latest Articles List */
.page-tin-tuc__latest-articles {
  padding: 40px 0;
  background-color: #f8f8f8;
}

.page-tin-tuc__articles-list {
  display: grid;
  grid-template-columns: 1fr; /* Single column layout for list */
  gap: 25px;
}

.page-tin-tuc__article-item {
  background-color: #fefefe;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: row; /* Desktop: row layout */
  overflow: hidden;
}

.page-tin-tuc__article-figure {
  margin: 0;
  flex-shrink: 0;
  width: 300px; /* Fixed width for article list images */
  height: 180px; /* Fixed height */
  overflow: hidden;
}

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

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

.page-tin-tuc__article-title {
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 8px;
  line-height: 1.3;
}

.page-tin-tuc__article-title a {
  color: #017439;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-tin-tuc__article-title a:hover {
  color: #005f2e;
}

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

.page-tin-tuc__article-excerpt {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 10px;
}

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

/* Promotion Callout */
.page-tin-tuc__promotion-callout {
  padding: 60px 0;
  text-align: center;
  background-color: #017439; /* Main brand color for dark section */
  color: #ffffff; /* White text for dark background */
}

.page-tin-tuc__promo-box {
  max-width: 800px;
  margin: 0 auto;
  padding: 30px;
  border-radius: 10px;
  background-color: rgba(0, 0, 0, 0.2); /* Slightly transparent dark overlay */
}

.page-tin-tuc__promo-title {
  font-size: 2.2em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #ffffff;
}

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

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

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

  /* 顶区标题 + 双 CTA */
  .page-tin-tuc__top-section {
    padding-top: 10px !important; /* Small top padding as per rules */
    padding-bottom: 30px;
  }

  .page-tin-tuc__main-title {
    font-size: clamp(1.8em, 7vw, 2.2em);
    margin-bottom: 10px;
    padding: 0 15px; /* Add horizontal padding */
  }

  .page-tin-tuc__description {
    font-size: 1em;
    margin-bottom: 20px;
    padding: 0 15px; /* Add horizontal padding */
  }

  .page-tin-tuc__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    padding: 0 15px; /* Add horizontal padding */
  }

  .page-tin-tuc__btn {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 单栏长文容器 (general container padding) */
  .page-tin-tuc__container {
    padding: 0 15px;
  }

  .page-tin-tuc__section-title {
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 20px;
  }

  /* Featured News Grid */
  .page-tin-tuc__featured-news {
    padding: 30px 0;
  }

  .page-tin-tuc__news-grid {
    grid-template-columns: 1fr; /* Single column */
    gap: 20px;
  }

  .page-tin-tuc__news-card {
    padding-bottom: 0;
  }
  
  .page-tin-tuc__news-figure {
    height: 180px; /* Adjust height for mobile */
  }

  .page-tin-tuc__news-content {
    padding: 15px;
  }

  .page-tin-tuc__news-title {
    font-size: 1.1em;
  }

  .page-tin-tuc__news-meta,
  .page-tin-tuc__news-excerpt {
    font-size: 0.85em;
  }

  /* Latest Articles List */
  .page-tin-tuc__latest-articles {
    padding: 30px 0;
  }

  .page-tin-tuc__articles-list {
    gap: 20px;
  }

  .page-tin-tuc__article-item {
    flex-direction: column; /* Stack image and content vertically */
  }

  .page-tin-tuc__article-figure {
    width: 100%; /* Full width image */
    height: 180px; /* Adjust height for mobile */
  }

  .page-tin-tuc__article-content {
    padding: 15px;
  }

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

  .page-tin-tuc__article-meta,
  .page-tin-tuc__article-excerpt {
    font-size: 0.85em;
  }

  .page-tin-tuc__view-all-button-container {
    margin-top: 30px;
    padding: 0 15px; /* Add horizontal padding */
  }

  /* Promotion Callout */
  .page-tin-tuc__promotion-callout {
    padding: 40px 0;
  }

  .page-tin-tuc__promo-box {
    padding: 20px;
    margin: 0 15px; /* Add horizontal margin */
  }

  .page-tin-tuc__promo-title {
    font-size: 1.5em;
    margin-bottom: 15px;
  }

  .page-tin-tuc__promo-description {
    font-size: 0.95em;
    margin-bottom: 25px;
  }

  /* 通用图片与 figure */
  .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__article-item,
  .page-tin-tuc__news-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  /* Remove padding from elements that already have it or should be full width */
  .page-tin-tuc__top-section,
  .page-tin-tuc__featured-news,
  .page-tin-tuc__latest-articles,
  .page-tin-tuc__promotion-callout {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .page-tin-tuc__promo-box {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

/* Desktop specific adjustments for elements with padding-left/right in mobile */
@media (min-width: 769px) {
  .page-tin-tuc__main-title,
  .page-tin-tuc__description {
    padding-left: 0;
    padding-right: 0;
  }
}