/* Base Styles for Tin Tức page */
.page-tin-tuc {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background: var(--bg-color, #0D0E12); /* Use custom background color from shared or default */
}

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

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

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

.page-tin-tuc__text-block {
  font-size: 17px;
  margin-bottom: 20px;
  line-height: 1.7;
  text-align: justify;
}

.page-tin-tuc__text-block--white {
  color: #FFF3E6;
}

/* Hero Section */
.page-tin-tuc__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 50px;
  overflow: hidden;
  background-color: #0D0E12;
}

.page-tin-tuc__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.page-tin-tuc__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Subtle overlay for text readability */
}

.page-tin-tuc__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #FFF3E6;
  max-width: 900px;
  padding: 20px;
}

.page-tin-tuc__hero-title {
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFF3E6;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
}

.page-tin-tuc__hero-description {
  font-size: 18px;
  margin-bottom: 30px;
  line-height: 1.6;
}

.page-tin-tuc__hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* Buttons */
.page-tin-tuc__btn-primary,
.page-tin-tuc__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-tin-tuc__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #ffffff;
  border: none;
}

.page-tin-tuc__btn-primary:hover {
  opacity: 0.9;
  box-shadow: 0 5px 15px rgba(255, 140, 26, 0.4);
}

.page-tin-tuc__btn-secondary {
  background: #17191F;
  color: #FF8C1A;
  border: 2px solid #A84F0C;
}

.page-tin-tuc__btn-secondary:hover {
  background: #FF8C1A;
  color: #ffffff;
  border-color: #FF8C1A;
}

/* Intro Section */
.page-tin-tuc__intro-section {
  padding: 60px 0;
  background: #f9f9f9; /* Light background for intro */
  color: #333333;
}

/* Highlights Section */
.page-tin-tuc__highlights-section {
  padding: 60px 0;
  background: #0D0E12; /* Dark background for highlights */
  color: #FFF3E6;
}

.page-tin-tuc__article-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-tin-tuc__article-card {
  background: #17191F; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.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;
  color: #FFF3E6;
}

.page-tin-tuc__card-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
}

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

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

.page-tin-tuc__card-date {
  font-size: 14px;
  color: #A84F0C;
  margin-bottom: 15px;
}

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

.page-tin-tuc__card-link {
  display: inline-block;
  color: #FF8C1A;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  align-self: flex-start;
}

.page-tin-tuc__card-link:hover {
  text-decoration: underline;
  color: #FFA53A;
}

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

/* Analysis Section */
.page-tin-tuc__analysis-section {
  padding: 60px 0;
  background: #f9f9f9;
  color: #333333;
}

.page-tin-tuc__analysis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-tin-tuc__analysis-item {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding-bottom: 20px;
}

.page-tin-tuc__analysis-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-tin-tuc__analysis-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-tin-tuc__analysis-title {
  font-size: 24px;
  font-weight: 600;
  color: #FF8C1A;
  margin: 0 20px 15px;
}

.page-tin-tuc__analysis-description {
  font-size: 16px;
  margin: 0 20px 20px;
  color: #555;
}

.page-tin-tuc__analysis-item .page-tin-tuc__btn-secondary {
  margin: 0 20px;
}

/* Guidebook Section */
.page-tin-tuc__guidebook-section {
  padding: 60px 0;
  background: #0D0E12;
  color: #FFF3E6;
}

.page-tin-tuc__guide-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-tin-tuc__guide-item {
  background: #17191F;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-tin-tuc__guide-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-tin-tuc__guide-title {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #FFB04D;
}

.page-tin-tuc__guide-description {
  font-size: 16px;
  margin-bottom: 25px;
}

/* Community Section */
.page-tin-tuc__community-section {
  padding: 60px 0;
  background: #f9f9f9;
  color: #333333;
}

.page-tin-tuc__community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-tin-tuc__community-item {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding-bottom: 20px;
}

.page-tin-tuc__community-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

.page-tin-tuc__community-title {
  font-size: 22px;
  font-weight: 600;
  color: #FF8C1A;
  margin: 0 20px 15px;
}

.page-tin-tuc__community-description {
  font-size: 16px;
  margin: 0 20px 20px;
  color: #555;
}

.page-tin-tuc__community-item .page-tin-tuc__btn-secondary {
  margin: 0 20px;
}

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

.page-tin-tuc__cta-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
}

/* FAQ Section */
.page-tin-tuc__faq-section {
  padding: 60px 0;
  background: #f9f9f9;
  color: #333333;
}

.page-tin-tuc__faq-list {
  margin-top: 40px;
}

details.page-tin-tuc__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
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: #f5f5f5;
}
.page-tin-tuc__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-tin-tuc__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  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: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-tin-tuc__hero-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-tin-tuc__section-title {
    font-size: 30px;
  }
  .page-tin-tuc__hero-description {
    font-size: 17px;
  }
  .page-tin-tuc__btn-primary, .page-tin-tuc__btn-secondary {
    padding: 12px 25px;
    font-size: 16px;
  }
  .page-tin-tuc__card-title {
    font-size: 20px;
  }
  .page-tin-tuc__analysis-title, .page-tin-tuc__guide-title, .page-tin-tuc__community-title {
    font-size: 22px;
  }
}

@media (max-width: 768px) {
  .page-tin-tuc__container {
    padding: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* HERO 主图区域 */
  .page-tin-tuc__hero-section {
    min-height: 400px;
    padding-top: 10px; /* Small top padding, explicitly not --header-offset */
    padding-bottom: 30px;
  }
  .page-tin-tuc__hero-image {
    object-fit: contain !important;
    aspect-ratio: unset !important;
    opacity: 0.2;
  }
  .page-tin-tuc__hero-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    margin-bottom: 15px;
  }
  .page-tin-tuc__hero-description {
    font-size: 15px;
    margin-bottom: 25px;
  }
  .page-tin-tuc__hero-actions {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }

  /* General Buttons */
  .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-left: 15px;
    padding-right: 15px;
  }
  .page-tin-tuc__cta-actions,
  .page-tin-tuc__button-group,
  .page-tin-tuc__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column;
  }

  /* 产品展示图区域 (Article Cards) */
  .page-tin-tuc__article-card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-tin-tuc__article-card {
    margin-left: 0;
    margin-right: 0;
  }
  .page-tin-tuc__card-image {
    height: 180px;
  }
  .page-tin-tuc__card-title {
    font-size: 18px;
  }
  .page-tin-tuc__card-excerpt {
    font-size: 15px;
  }

  /* 装饰主标题 + 长文 SEO 区 */
  .page-tin-tuc__section-title {
    font-size: 24px;
    margin-bottom: 30px;
  }
  .page-tin-tuc__text-block {
    font-size: 15px;
    text-align: left;
  }
  /* .page-tin-tuc__article-body (if present) would also get max-width: 100%; */

  /* 通用图片与容器 */
  .page-tin-tuc img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-tin-tuc__analysis-grid, .page-tin-tuc__guide-items, .page-tin-tuc__community-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-tin-tuc__analysis-image, .page-tin-tuc__community-image {
    height: 180px;
  }
  .page-tin-tuc__analysis-title, .page-tin-tuc__guide-title, .page-tin-tuc__community-title {
    font-size: 20px;
  }

  /* 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;
  }
}