/* style/tin-tuc.css */

/* Base styles for the page */
.page-tin-tuc {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF3E6; /* Text Main */
  background-color: #0D0E12; /* Background */
}

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

.page-tin-tuc__section {
  padding: 60px 0;
  margin-bottom: 20px;
}

.page-tin-tuc__section-title {
  font-size: 38px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #FFF3E6; /* Text Main */
}

.page-tin-tuc__section-title--light {
  color: #FFF3E6; /* Ensure light text on dark backgrounds */
}

.page-tin-tuc__section-intro {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #FFF3E6; /* Text Main */
}

.page-tin-tuc__section-intro--light {
  color: #FFF3E6; /* Ensure light text on dark backgrounds */
}

/* Hero Section */
.page-tin-tuc__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  background-color: #0D0E12; /* Background */
  display: flex;
  flex-direction: column; /* Image then text */
  align-items: center;
}

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

.page-tin-tuc__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Desktop: cover to fill space */
}

.page-tin-tuc__hero-content {
  text-align: center;
  padding: 20px;
  max-width: 800px;
  margin-top: 20px;
}

.page-tin-tuc__main-title {
  font-size: clamp(30px, 4vw, 48px); /* H1 font size clamp */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #FFF3E6; /* Text Main */
}

.page-tin-tuc__description {
  font-size: 18px;
  margin-bottom: 30px;
  color: #FFF3E6; /* Text Main */
}

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

.page-tin-tuc__btn-primary,
.page-tin-tuc__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  min-width: 180px;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

.page-tin-tuc__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button gradient */
  color: #FFF3E6; /* Text Main */
  border: none;
}

.page-tin-tuc__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(255, 140, 26, 0.4);
}

.page-tin-tuc__btn-secondary {
  background: transparent;
  color: #FFA53A; /* Auxiliary color */
  border: 2px solid #FFA53A; /* Auxiliary color */
}

.page-tin-tuc__btn-secondary:hover {
  background: #FFA53A; /* Auxiliary color */
  color: #0D0E12; /* Background color for contrast */
}

/* Latest News Section */
.page-tin-tuc__latest-news-section {
  background-color: #0D0E12; /* Background */
}

.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: #17191F; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid #A84F0C; /* Border */
}

.page-tin-tuc__news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(255, 140, 26, 0.3);
}

.page-tin-tuc__news-image-wrapper {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  overflow: hidden;
}

.page-tin-tuc__news-image-wrapper img {
  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-date {
  font-size: 14px;
  color: #FFB04D; /* Glow */
  margin-bottom: 10px;
  display: block;
}

.page-tin-tuc__news-card-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-tin-tuc__news-card-title a {
  color: #FFF3E6; /* Text Main */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-tin-tuc__news-card-title a:hover {
  color: #FFA53A; /* Auxiliary color */
}

.page-tin-tuc__news-excerpt {
  font-size: 16px;
  color: #FFF3E6; /* Text Main */
  margin-bottom: 20px;
  flex-grow: 1;
}

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

.page-tin-tuc__read-more:hover {
  color: #FFB04D; /* Glow */
  text-decoration: underline;
}

.page-tin-tuc__read-more--light {
  color: #FFF3E6; /* Text Main on dark bg */
}

.page-tin-tuc__read-more--light:hover {
  color: #FFA53A; /* Auxiliary color */
}

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

/* Featured Articles Section (Dark Background) */
.page-tin-tuc__featured-articles-section {
  background-color: #17191F; /* Card BG, used as a darker section */
  padding: 80px 0;
}

.page-tin-tuc__dark-bg {
  background-color: #17191F; /* Card BG */
  color: #FFF3E6; /* Text Main */
}

.page-tin-tuc__article-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
}

.page-tin-tuc__article-item {
  display: flex;
  flex-direction: column;
  background-color: #0D0E12; /* Background */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #A84F0C; /* Border */
}

.page-tin-tuc__article-image-wrapper {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

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

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

.page-tin-tuc__article-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-tin-tuc__article-title a {
  color: #FFF3E6; /* Text Main */
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.page-tin-tuc__article-meta {
  font-size: 15px;
  color: #FFB04D; /* Glow */
  margin-bottom: 15px;
  display: block;
}

.page-tin-tuc__article-excerpt {
  font-size: 16px;
  color: #FFF3E6; /* Text Main */
  margin-bottom: 20px;
}

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

.page-tin-tuc__cta-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.page-tin-tuc__cta-title {
  font-size: 36px;
  font-weight: bold;
  color: #FFF3E6; /* Text Main */
  margin-bottom: 15px;
}

.page-tin-tuc__cta-description {
  font-size: 18px;
  max-width: 700px;
  color: #FFF3E6; /* Text Main */
}

.page-tin-tuc__cta-buttons-bottom {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 600px;
}

/* FAQ Section */
.page-tin-tuc__faq-section {
  background-color: #17191F; /* Card BG */
  padding: 80px 0;
}

.page-tin-tuc__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

details.page-tin-tuc__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #A84F0C; /* Border */
  overflow: hidden;
  background: #0D0E12; /* Background */
}
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;
  color: #FFF3E6; /* Text Main */
}
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, 165, 58, 0.1); /* Lighter hover for dark background */
}
.page-tin-tuc__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFF3E6; /* Text Main */
}
.page-tin-tuc__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFA53A; /* Auxiliary color */
  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, 165, 58, 0.05); /* Slightly lighter background for answer */
  border-radius: 0 0 5px 5px;
  color: #FFF3E6; /* Text Main */
}
details.page-tin-tuc__faq-item .page-tin-tuc__faq-answer p {
  margin-top: 10px;
  font-size: 16px;
}

/* Global image responsive for content area */
.page-tin-tuc img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-tin-tuc__section-title {
    font-size: 32px;
  }
  .page-tin-tuc__main-title {
    font-size: clamp(28px, 4.5vw, 42px);
  }
  .page-tin-tuc__news-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-tin-tuc__article-list {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
  .page-tin-tuc__cta-title {
    font-size: 30px;
  }
  .page-tin-tuc__hero-image img {
    object-fit: cover; /* Still cover for wider tablets */
  }
}

@media (max-width: 849px) { /* Specific for object-fit: contain */
  .page-tin-tuc__hero-image img {
    object-fit: contain !important;
    aspect-ratio: unset !important;
    max-height: 400px;
  }
}

@media (max-width: 768px) {
  /* General padding for content sections */
  .page-tin-tuc__container {
    padding: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-tin-tuc__section {
    padding: 40px 0;
  }

  /* HERO 主图区域 */
  .page-tin-tuc__hero-section {
    padding-bottom: 40px;
  }
  .page-tin-tuc__hero-image {
    max-height: 300px;
  }
  .page-tin-tuc__hero-image img {
    object-fit: contain !important;
    aspect-ratio: unset !important;
    max-height: 300px !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-tin-tuc__hero-content {
    padding: 15px;
  }
  .page-tin-tuc__main-title {
    font-size: clamp(24px, 7vw, 36px);
  }
  .page-tin-tuc__description {
    font-size: 16px;
  }

  /* 按钮与按钮容器 */
  .page-tin-tuc__cta-buttons,
  .page-tin-tuc__cta-buttons-bottom {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    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: 12px 20px;
    font-size: 16px;
  }

  /* 通用图片与容器 */
  .page-tin-tuc img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  .page-tin-tuc__news-image-wrapper,
  .page-tin-tuc__article-image-wrapper {
    height: 180px; /* Adjust height for mobile */
  }

  /* 产品展示图区域 (News Grid) - 768px 2 列×3 行 */
  .page-tin-tuc__news-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns for mobile */
    gap: 15px;
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }
  .page-tin-tuc__news-card {
    margin-bottom: 0;
  }
  .page-tin-tuc__news-card-title {
    font-size: 18px;
  }
  .page-tin-tuc__news-excerpt {
    font-size: 14px;
  }
  .page-tin-tuc__read-more {
    font-size: 14px;
  }

  /* 装饰主标题 + 长文 SEO 区 */
  .page-tin-tuc__section-title {
    font-size: 28px;
    margin-bottom: 15px;
  }
  .page-tin-tuc__section-intro {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-tin-tuc__article-list {
    grid-template-columns: 1fr; /* Single column for mobile */
    gap: 20px;
  }
  .page-tin-tuc__article-item {
    padding: 0;
  }
  .page-tin-tuc__article-title {
    font-size: 20px;
  }
  .page-tin-tuc__article-meta {
    font-size: 14px;
  }
  .page-tin-tuc__article-excerpt {
    font-size: 14px;
  }
  
  /* FAQ */
  details.page-tin-tuc__faq-item summary.page-tin-tuc__faq-question { padding: 15px; }
  .page-tin-tuc__faq-qtext { font-size: 15px; }
  details.page-tin-tuc__faq-item .page-tin-tuc__faq-answer {
    padding: 0 15px 15px;
  }
}