/* General styles */
.page-tin-tuc {
  font-family: Arial, sans-serif;
  color: #333333; /* Default dark text for light background */
  background-color: #FFFFFF; /* Assuming body default is white */
  line-height: 1.6;
}

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

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

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

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

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

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

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

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

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

.page-tin-tuc__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* For mobile responsiveness */
}

/* Hero Section */
.page-tin-tuc__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding as per rule */
  background-color: #f5f5f5;
  padding-bottom: 60px;
}

.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;
}

.page-tin-tuc__hero-content {
  text-align: center;
  max-width: 900px;
  margin: 40px auto 0 auto;
  padding: 0 20px;
}

.page-tin-tuc__main-title {
  font-size: clamp(2em, 4vw, 2.8em); /* Use clamp for H1 as per rule */
  color: #017439;
  margin-bottom: 20px;
  font-weight: bold;
}

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

/* Featured News Section */
.page-tin-tuc__featured-news {
  padding: 80px 0;
  background-color: #f9f9f9;
}

.page-tin-tuc__news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
  align-items: stretch; /* Ensure cards have equal height */
}

.page-tin-tuc__news-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%; /* Ensure cards stretch for align-items: stretch */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

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

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

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

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

.page-tin-tuc__card-excerpt {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1; /* Push button to bottom */
}

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

/* Categories Section */
.page-tin-tuc__categories-section {
  padding: 80px 0;
  background-color: #FFFFFF;
}

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

.page-tin-tuc__category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px;
  background-color: #f0fdf4; /* Light green background */
  border-radius: 12px;
  text-decoration: none;
  color: #017439;
  font-weight: bold;
  transition: transform 0.3s ease, background-color 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-tin-tuc__category-card:hover {
  transform: translateY(-5px);
  background-color: #e6faed;
}

.page-tin-tuc__category-image {
  width: 100px;
  height: 75px;
  object-fit: contain;
  margin-bottom: 15px;
  display: block;
}

.page-tin-tuc__category-name {
  font-size: 1.1em;
}

/* About News Section */
.page-tin-tuc__about-news-section {
  padding: 80px 0;
  background-color: #017439; /* Dark background */
  color: #FFFFFF; /* Light text */
}

.page-tin-tuc__about-news-section .page-tin-tuc__section-title {
  color: #FFFFFF; /* Override for dark background */
}

.page-tin-tuc__about-news-section p {
  color: #f0f0f0;
  margin-bottom: 15px;
}

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

.page-tin-tuc__text-block {
  flex: 2;
}

.page-tin-tuc__image-block {
  flex: 1;
  text-align: center;
}

.page-tin-tuc__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

/* CTA Bottom Section */
.page-tin-tuc__cta-bottom-section {
  padding: 80px 0;
  background-color: #f9f9f9;
  text-align: center;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-tin-tuc__container {
    padding: 0 15px;
  }

  .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));
  }
}

@media (max-width: 768px) {
  /* General Image & Container Rules */
  .page-tin-tuc img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-tin-tuc__container,
  .page-tin-tuc__featured-news .page-tin-tuc__container,
  .page-tin-tuc__categories-section .page-tin-tuc__container,
  .page-tin-tuc__about-news-section .page-tin-tuc__container,
  .page-tin-tuc__cta-bottom-section .page-tin-tuc__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-tin-tuc__main-title {
    font-size: 1.8em;
  }

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

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

  .page-tin-tuc__btn-primary,
  .page-tin-tuc__btn-secondary,
  .page-tin-tuc__btn-outline {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 15px;
  }

  /* 博客卡片区 (Featured News Grid) */
  .page-tin-tuc__featured-news {
    padding: 40px 0;
  }

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

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

  .page-tin-tuc__card-content {
    padding: 20px;
  }

  /* Categories Grid */
  .page-tin-tuc__categories-section {
    padding: 40px 0;
  }

  .page-tin-tuc__categories-grid {
    grid-template-columns: repeat(2, 1fr); /* Two columns for categories */
    gap: 15px;
  }

  .page-tin-tuc__category-image {
    width: 80px;
    height: 60px;
  }

  .page-tin-tuc__category-name {
    font-size: 1em;
  }

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

  .page-tin-tuc__content-wrapper {
    flex-direction: column; /* Stack text and image vertically */
    gap: 30px;
  }

  .page-tin-tuc__text-block,
  .page-tin-tuc__image-block {
    flex: none;
    width: 100%;
  }

  /* CTA Bottom Section */
  .page-tin-tuc__cta-bottom-section {
    padding: 40px 0;
  }
}