/* Base styles for page-tin-tuc */
.page-tin-tuc {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Main text color for dark body background */
  background-color: #0A0A0A; /* Body background from shared.css */
  padding-top: 10px; /* Small top padding for first section, body handles --header-offset */
}

/* Section general styles */
.page-tin-tuc__section {
  padding: 40px 0;
}

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

.page-tin-tuc__section-title {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #F2C14E; /* Brand primary color for titles */
}

.page-tin-tuc__section-title--light {
  color: #FFF6D6; /* Light text for titles on dark backgrounds */
}

.page-tin-tuc__text-block {
  font-size: 16px;
  margin-bottom: 20px;
  text-align: justify;
}

/* HERO Section */
.page-tin-tuc__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-bottom: 40px;
}

.page-tin-tuc__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height */
  overflow: hidden;
  margin-bottom: 20px; /* Space between image and content */
}

.page-tin-tuc__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Cover for desktop */
  border-radius: 8px;
}

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

.page-tin-tuc__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size for H1 */
  font-weight: 800;
  color: #FFD36B; /* Auxiliary color for main title */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-tin-tuc__description {
  font-size: 18px;
  margin-bottom: 30px;
  color: #FFF6D6;
}

.page-tin-tuc__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
  color: #111111; /* Dark text on bright button */
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 18px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
  max-width: 100%; /* For button responsive */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-tin-tuc__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

.page-tin-tuc__cta-button--secondary {
  background: #111111; /* Card BG for secondary button */
  color: #F2C14E; /* Primary color for text */
  border: 1px solid #F2C14E;
  box-shadow: none;
}

.page-tin-tuc__cta-button--secondary:hover {
  background: #F2C14E;
  color: #111111;
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-tin-tuc__cta-button--light {
  background: #FFF6D6;
  color: #111111;
  border: 1px solid #FFF6D6;
  box-shadow: none;
}

.page-tin-tuc__cta-button--light:hover {
  background: #F2C14E;
  color: #111111;
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

/* Articles Grid */
.page-tin-tuc__articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-tin-tuc__article-card {
  background: #111111; /* Card BG color */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #FFF6D6; /* Light text on dark card */
}

.page-tin-tuc__article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

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

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

.page-tin-tuc__article-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
  color: #F2C14E; /* Primary color for article titles */
}

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

.page-tin-tuc__article-title a:hover {
  color: #FFD36B; /* Auxiliary color on hover */
}

.page-tin-tuc__article-meta {
  font-size: 14px;
  color: #AAAAAA;
  margin-bottom: 15px;
}

.page-tin-tuc__article-excerpt {
  font-size: 15px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-tin-tuc__read-more-button {
  display: inline-block;
  padding: 10px 20px;
  background: #F2C14E;
  color: #111111;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  font-size: 15px;
  align-self: flex-start;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-tin-tuc__read-more-button:hover {
  background: #FFD36B;
  color: #111111;
}

.page-tin-tuc__read-more-button--light {
  background: #FFF6D6;
  color: #111111;
}

.page-tin-tuc__read-more-button--light:hover {
  background: #F2C14E;
  color: #111111;
}

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

/* Dark section specific styles */
.page-tin-tuc__dark-section {
  background-color: #111111; /* Card BG as background for this section */
  color: #FFF6D6;
}

.page-tin-tuc__article-card--dark {
  background: rgba(255, 255, 255, 0.05); /* Slightly lighter dark for contrast */
  border: 1px solid #3A2A12;
}

/* Why Choose Us Section */
.page-tin-tuc__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-tin-tuc__feature-item {
  background: #111111;
  border: 1px solid #3A2A12;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  color: #FFF6D6;
}

.page-tin-tuc__feature-title {
  font-size: 22px;
  font-weight: 700;
  color: #FFD36B;
  margin-bottom: 15px;
}

.page-tin-tuc__feature-description {
  font-size: 16px;
  color: #FFF6D6;
}

/* FAQ Section */
details.page-tin-tuc__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #3A2A12; /* Border color */
  overflow: hidden;
  background: #111111; /* Card BG for FAQ item */
  color: #FFF6D6; /* Light text */
}
details.page-tin-tuc__faq-item summary.page-tin-tuc__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-tin-tuc__faq-item summary.page-tin-tuc__faq-question::-webkit-details-marker {
  display: none;
}
details.page-tin-tuc__faq-item summary.page-tin-tuc__faq-question:hover {
  background: rgba(255, 255, 255, 0.05); /* Slight hover effect */
}
.page-tin-tuc__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #F2C14E; /* Primary color for FAQ questions */
}
.page-tin-tuc__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFD36B; /* Auxiliary color for toggle icon */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-tin-tuc__faq-item .page-tin-tuc__faq-answer {
  padding: 0 20px 20px;
  background: rgba(255, 255, 255, 0.03); /* Slightly different dark for answer background */
  border-radius: 0 0 5px 5px;
  color: #FFF6D6; /* Light text */
}
.page-tin-tuc__faq-answer p {
  margin: 0;
  padding: 0;
}

/* CTA Bottom Section */
.page-tin-tuc__cta-bottom {
  text-align: center;
  background-color: #111111;
  padding: 60px 0;
}
.page-tin-tuc__cta-bottom .page-tin-tuc__section-title {
  margin-bottom: 20px;
}
.page-tin-tuc__cta-bottom .page-tin-tuc__text-block {
  max-width: 800px;
  margin: 0 auto 30px auto;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-tin-tuc__hero-image-wrapper {
    max-height: 500px;
  }
  .page-tin-tuc__main-title {
    font-size: clamp(2em, 4.5vw, 3em);
  }
  .page-tin-tuc__description {
    font-size: 17px;
  }
  .page-tin-tuc__section-title {
    font-size: 28px;
  }
  .page-tin-tuc__article-card {
    min-width: 280px;
  }
}

@media (max-width: 768px) {
  .page-tin-tuc {
    padding-top: 10px; /* Ensure small top padding, body handles --header-offset */
    font-size: 16px; /* Mobile font size increase */
    line-height: 1.6; /* Mobile line height increase */
  }

  /* HERO 主图区域 */
  .page-tin-tuc__hero-section {
    padding-bottom: 20px;
  }
  .page-tin-tuc__hero-image-wrapper {
    max-height: 400px; /* Smaller max height for mobile */
    margin-bottom: 15px;
  }
  .page-tin-tuc__hero-image {
    object-fit: contain !important; /* Mobile: contain to prevent cropping */
    aspect-ratio: unset !important; /* Remove aspect ratio if set */
    width: 100% !important;
    height: auto !important;
  }
  .page-tin-tuc__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em); /* Adjust H1 for mobile */
    margin-bottom: 15px;
  }
  .page-tin-tuc__description {
    font-size: 15px;
    margin-bottom: 20px;
  }
  .page-tin-tuc__cta-button {
    padding: 12px 25px;
    font-size: 16px;
    max-width: 100% !important; /* Buttons max-width 100% */
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin: 0 auto; /* Center single button */
  }

  /* 通用图片与容器 */
  .page-tin-tuc__section,
  .page-tin-tuc__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-tin-tuc img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* 产品展示图区域 (Articles Grid) */
  .page-tin-tuc__articles-grid {
    grid-template-columns: 1fr; /* Single column for articles */
    gap: 20px;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }
  .page-tin-tuc__article-card {
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  }
  .page-tin-tuc__article-image {
    height: 180px; /* Adjust image height for mobile cards */
  }
  .page-tin-tuc__article-title {
    font-size: 18px;
  }
  .page-tin-tuc__read-more-button {
    padding: 8px 15px;
    font-size: 14px;
  }
  .page-tin-tuc__view-all-button-container {
    margin-top: 30px;
  }

  /* 装饰主标题 + 长文 SEO 区 */
  .page-tin-tuc__section-title {
    font-size: 24px;
    margin-bottom: 25px;
  }
  .page-tin-tuc__text-block {
    font-size: 15px;
    text-align: left; /* Adjust text alignment for mobile */
  }
  .page-tin-tuc__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-tin-tuc__feature-item {
    padding: 20px;
  }
  .page-tin-tuc__feature-title {
    font-size: 20px;
  }

  /* FAQ Section */
  details.page-tin-tuc__faq-item summary.page-tin-tuc__faq-question { padding: 15px; }
  .page-tin-tuc__faq-qtext { font-size: 15px; }
  .page-tin-tuc__faq-toggle { font-size: 20px; width: 24px; height: 24px; }
  details.page-tin-tuc__faq-item .page-tin-tuc__faq-answer { padding: 0 15px 15px; }

  /* Buttons & Button Containers */
  .page-tin-tuc__cta-buttons,
  .page-tin-tuc__button-group,
  .page-tin-tuc__btn-container,
  .page-tin-tuc__view-all-button-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    display: flex; /* Ensure flex for wrapping if multiple buttons */
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px; /* Space between stacked buttons */
  }
  .page-tin-tuc__cta-bottom .page-tin-tuc__cta-button {
    margin: 0 auto; /* Center single button in container */
  }
}

/* Color Contrast Fixes */
.page-tin-tuc__dark-bg {
  color: #ffffff; /* Deep dark background, light text */
  background: #0A0A0A;
}

.page-tin-tuc__light-bg {
  color: #333333; /* Light background, dark text (not applicable to this page's body) */
  background: #ffffff;
}