/* General Styling for Tin Tức Page */
.page-tin-tuc {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF5E1; /* Main text color for dark background */
  background: var(--bg-color, #1a1a1a); /* Assuming a dark body background from shared.css */
}

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

/* Hero Section */
.page-tin-tuc__hero-section {
  position: relative;
  overflow: hidden;
  padding-bottom: 40px;
  text-align: center;
  padding-top: 10px; /* Small top padding */
  background: #B71C1C; /* Background color from custom palette */
}

.page-tin-tuc__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

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

.page-tin-tuc__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-tin-tuc__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Using clamp for H1 */
  font-weight: 700;
  margin-bottom: 20px;
  color: #FFD86A; /* Gold color from custom palette */
  line-height: 1.2;
}

.page-tin-tuc__description {
  font-size: 1.15rem;
  margin-bottom: 30px;
  color: #FFF5E1; /* Text Main color */
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-tin-tuc__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow wrapping for multiple buttons */
}

/* 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: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-tin-tuc__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button color */
  color: #7A0E0E; /* Deep Red for contrast */
  border: none;
  box-shadow: 0 4px 15px rgba(255, 216, 106, 0.4);
}

.page-tin-tuc__btn-primary:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 216, 106, 0.6);
}

.page-tin-tuc__btn-secondary {
  background: #C91F17; /* Main brand color */
  color: #FFF5E1; /* Text Main color */
  border: 2px solid #FFCC66; /* Glow color for border */
  box-shadow: 0 4px 10px rgba(201, 31, 23, 0.3);
}

.page-tin-tuc__btn-secondary:hover {
  background: #E53935; /* Auxiliary color */
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(229, 57, 53, 0.4);
}

/* Latest News Section */
.page-tin-tuc__latest-news-section {
  padding: 60px 0;
  background: #B71C1C; /* Background color */
  color: #FFF5E1; /* Text Main color */
}

.page-tin-tuc__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 15px;
  color: #FFD86A; /* Gold color */
}

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

.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: #D32F2F; /* Card BG color */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards have equal height */
  display: flex;
  flex-direction: column;
}

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

.page-tin-tuc__card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.page-tin-tuc__card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-tin-tuc__card-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #FFD86A; /* Gold color for titles */
  line-height: 1.3;
}

.page-tin-tuc__card-meta {
  font-size: 0.9rem;
  color: #F4D34D; /* Gold color for meta */
  margin-bottom: 15px;
}

.page-tin-tuc__card-excerpt {
  font-size: 1rem;
  color: #FFF5E1; /* Text Main color */
  margin-bottom: 15px;
  flex-grow: 1;
}

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

/* CTA Section */
.page-tin-tuc__cta-section {
  padding: 80px 0;
  text-align: center;
  background: #C91F17; /* Main brand color */
  color: #FFF5E1; /* Text Main color */
}

.page-tin-tuc__cta-title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #FFD86A; /* Gold color */
}

.page-tin-tuc__cta-description {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #FFF5E1; /* Text Main color */
}

/* FAQ Section */
.page-tin-tuc__faq-section {
  padding: 60px 0;
  background: #B71C1C; /* Background color */
  color: #FFF5E1; /* Text Main color */
}

.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 #7A0E0E; /* Deep Red for border */
  overflow: hidden;
  background: #D32F2F; /* Card BG color */
}
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: #E53935; /* Auxiliary color on hover */
}
.page-tin-tuc__faq-qtext {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFD86A; /* Gold color for question text */
}
.page-tin-tuc__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFCC66; /* Glow 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: #7A0E0E; /* Deep Red for answer background */
  border-radius: 0 0 5px 5px;
  color: #FFF5E1; /* Text Main color */
}
.page-tin-tuc__faq-answer p {
  margin-bottom: 0;
}


/* --- Responsive Styles --- */

/* For screens smaller than 1024px (tablet) */
@media (max-width: 1024px) {
  .page-tin-tuc__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-tin-tuc__description {
    font-size: 1.1rem;
  }
  .page-tin-tuc__cta-buttons {
    gap: 15px;
  }
  .page-tin-tuc__btn-primary,
  .page-tin-tuc__btn-secondary {
    padding: 12px 25px;
    font-size: 1rem;
  }
  .page-tin-tuc__section-title {
    font-size: 2.2rem;
  }
  .page-tin-tuc__section-subtitle {
    font-size: 1rem;
    margin-bottom: 30px;
  }
  .page-tin-tuc__news-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
  }
  .page-tin-tuc__card-title {
    font-size: 1.2rem;
  }
  .page-tin-tuc__card-image {
    height: 180px;
  }
  .page-tin-tuc__cta-title {
    font-size: 2.4rem;
  }
  .page-tin-tuc__cta-description {
    font-size: 1.1rem;
  }
  .page-tin-tuc__faq-qtext {
    font-size: 1rem;
  }
}


/* For screens smaller than 768px (mobile) */
@media (max-width: 768px) {
  /* General mobile adaptations */
  .page-tin-tuc {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-tin-tuc__container {
    padding: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* HERO 主图区域 */
  .page-tin-tuc__hero-section {
    padding-top: 10px;
    padding-bottom: 20px;
  }
  .page-tin-tuc__hero-image-wrapper {
    max-height: 400px;
    margin-bottom: 20px;
  }
  .page-tin-tuc__hero-image {
    object-fit: contain !important;
    aspect-ratio: unset !important;
    height: auto !important;
    width: 100% !important;
  }
  .page-tin-tuc__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    margin-bottom: 15px;
  }
  .page-tin-tuc__description {
    font-size: 0.95rem;
    margin-bottom: 20px;
    padding: 0 10px;
  }

  /* 按钮与按钮容器 */
  .page-tin-tuc__cta-buttons {
    flex-direction: column;
    gap: 15px;
    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 {
    padding: 12px 20px;
    font-size: 1rem;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  /* 产品展示图区域 (News Grid) */
  .page-tin-tuc__latest-news-section {
    padding: 40px 0;
    overflow-x: hidden;
  }
  .page-tin-tuc__section-title {
    font-size: 2rem;
    padding: 0 10px;
  }
  .page-tin-tuc__section-subtitle {
    font-size: 0.9rem;
    margin-bottom: 25px;
    padding: 0 10px;
  }
  .page-tin-tuc__news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-tin-tuc__news-card {
    margin: 0 auto;
    max-width: 400px;
  }
  .page-tin-tuc__card-image {
    height: 160px;
  }
  .page-tin-tuc__card-title {
    font-size: 1.1rem;
  }
  .page-tin-tuc__card-excerpt {
    font-size: 0.9rem;
  }

  /* CTA Section */
  .page-tin-tuc__cta-section {
    padding: 50px 0;
  }
  .page-tin-tuc__cta-title {
    font-size: 2rem;
  }
  .page-tin-tuc__cta-description {
    font-size: 1rem;
    margin-bottom: 30px;
    padding: 0 15px;
  }

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

/* Specific rule for smaller screens to ensure object-fit: contain */
@media (max-width: 849px) {
  .page-tin-tuc__hero-image {
    object-fit: contain !important;
    aspect-ratio: unset !important;
  }
}