/* style/tin-tuc.css */

/* General styles for the Tin tức page */
.page-tin-tuc {
  font-family: Arial, sans-serif;
  color: #333333; /* Default text color for light background */
  background-color: #ffffff; /* Default body background is white */
  line-height: 1.6;
}

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

/* Hero Section (Page Title Banner) */
.page-tin-tuc__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  background-color: #ffffff; /* Explicitly light background */
  text-align: center;
}

.page-tin-tuc__hero-section .page-tin-tuc__container {
  display: flex;
  flex-direction: column; /* Default column for upper section */
  align-items: center;
  gap: 30px;
}

.page-tin-tuc__hero-content {
  max-width: 800px;
}

.page-tin-tuc__main-title {
  font-size: clamp(2.2em, 4vw, 3.2em); /* Use clamp for H1 */
  font-weight: 700;
  color: #017439;
  margin-bottom: 15px;
  line-height: 1.2;
}

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

.page-tin-tuc__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%; /* Ensure container takes full width */
  max-width: 600px; /* Limit max width for button group */
  margin: 0 auto;
}

.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: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
}

.page-tin-tuc__btn-primary {
  background-color: #017439; /* Brand primary color */
  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;
  border-color: #005f2e;
}

.page-tin-tuc__hero-image {
  flex-shrink: 0;
}

.page-tin-tuc__hero-img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* News List Section */
.page-tin-tuc__news-list-section {
  padding: 60px 0;
  background-color: #f9f9f9; /* Light grey background for contrast */
}

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

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

.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: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

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

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

.page-tin-tuc__card-excerpt {
  font-size: 1em;
  color: #555555;
  line-height: 1.5;
}

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

/* Newsletter Section (Contact Form) */
.page-tin-tuc__newsletter-section {
  padding: 80px 0;
  background-color: #017439; /* Brand primary color as dark background */
  color: #ffffff;
  text-align: center;
}

.page-tin-tuc__newsletter-description {
  font-size: 1.1em;
  max-width: 700px;
  margin: 0 auto 40px;
  color: #e0e0e0;
}

.page-tin-tuc__newsletter-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

.page-tin-tuc__form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-tin-tuc__form-input,
.page-tin-tuc__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 1em;
  box-sizing: border-box;
}

.page-tin-tuc__form-input::placeholder,
.page-tin-tuc__form-textarea::placeholder {
  color: #cccccc;
}

.page-tin-tuc__form-input:focus,
.page-tin-tuc__form-textarea:focus {
  border-color: #ffffff;
  outline: none;
  background-color: rgba(255, 255, 255, 0.3);
}

.page-tin-tuc__form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  /* General mobile adjustments */
  .page-tin-tuc__container {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* HERO 双栏 (Page Title Banner) */
  .page-tin-tuc__hero-section {
    padding-top: 10px !important; /* Small top padding, body handles header offset */
    padding-bottom: 40px;
  }

  .page-tin-tuc__hero-section .page-tin-tuc__container {
    flex-direction: column;
  }

  .page-tin-tuc__main-title {
    font-size: clamp(1.8em, 8vw, 2.5em); /* Adjust H1 size for mobile */
  }

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

  .page-tin-tuc__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 15px;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 15px; /* Add padding to the button container */
  }

  /* 按钮与按钮容器 */
  .page-tin-tuc__btn-primary,
  .page-tin-tuc__btn-secondary,
  .page-tin-tuc a[class*="button"],
  .page-tin-tuc a[class*="btn"] {
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box !important;
  }

  .page-tin-tuc__hero-image {
    flex-shrink: 0;
  }

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

  /* 教程长文 / 促销 / 信任 / FAQ / 博客 / intro 排版 (News List Section) */
  .page-tin-tuc__news-list-section {
    padding: 40px 0;
  }

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

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

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

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

  .page-tin-tuc__card-excerpt {
    font-size: 0.95em;
  }

  /* Newsletter Section */
  .page-tin-tuc__newsletter-section {
    padding: 50px 0;
  }

  .page-tin-tuc__newsletter-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-tin-tuc__newsletter-form {
    padding: 15px;
  }

  .page-tin-tuc__form-input,
  .page-tin-tuc__form-textarea {
    font-size: 0.95em;
    padding: 10px 12px;
  }

  /* 模块1 三栏正圆图 - Not applicable to this page */
  /* 七 Tab 游戏区 - Not applicable to this page */
}