/* Base styles for page-tin-tuc */
.page-tin-tuc {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light body background */
  background-color: #F4F7FB; /* Body background from shared.css */
}

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

.page-tin-tuc h1,
.page-tin-tuc h2,
.page-tin-tuc h3 {
  color: #1F2D3D;
  margin-top: 0;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-tin-tuc h1 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  text-align: center;
}

.page-tin-tuc h2 {
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
}

.page-tin-tuc h3 {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 600;
}

.page-tin-tuc p {
  margin-bottom: 15px;
}

.page-tin-tuc a {
  color: #2F6BFF;
  text-decoration: none;
}

.page-tin-tuc a:hover {
  text-decoration: underline;
}

/* Buttons */
.page-tin-tuc__btn-primary,
.page-tin-tuc__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-tin-tuc__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.3);
}

.page-tin-tuc__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  box-shadow: 0 6px 20px rgba(47, 107, 255, 0.4);
}

.page-tin-tuc__btn-secondary {
  background: #ffffff;
  color: #2F6BFF;
  border: 2px solid #2F6BFF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-tin-tuc__btn-secondary:hover {
  background: #f0f5ff;
  color: #1a4a99;
  border-color: #1a4a99;
}

/* Images */
.page-tin-tuc img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

/* Hero Section */
.page-tin-tuc__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  text-align: center;
  background-color: #F4F7FB;
}

.page-tin-tuc__hero-content {
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-tin-tuc__hero-description {
  font-size: 18px;
  margin-bottom: 30px;
  color: #1F2D3D;
}

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

.page-tin-tuc__hero-image {
  margin-top: 40px;
}

.page-tin-tuc__hero-image img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  aspect-ratio: 16/9;
}

/* Latest News Section */
.page-tin-tuc__latest-news-section {
  padding: 60px 0;
  background-color: #F4F7FB;
}

.page-tin-tuc__section-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  font-size: 17px;
  color: #1F2D3D;
}

.page-tin-tuc__news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.page-tin-tuc__news-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-tin-tuc__news-thumbnail {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

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

.page-tin-tuc__news-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.page-tin-tuc__news-title a {
  color: #1F2D3D;
  text-decoration: none;
}

.page-tin-tuc__news-title a:hover {
  color: #2F6BFF;
}

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

.page-tin-tuc__news-excerpt {
  font-size: 15px;
  color: #444444;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-tin-tuc__read-more {
  color: #2F6BFF;
  font-weight: 600;
  text-decoration: none;
  align-self: flex-start;
}

.page-tin-tuc__read-more:hover {
  text-decoration: underline;
}

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

/* Featured Article Section */
.page-tin-tuc__featured-article-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #2F6BFF, #6FA3FF);
  color: #ffffff;
}

.page-tin-tuc__featured-article-section .page-tin-tuc__section-title {
  color: #ffffff;
}

.page-tin-tuc__article-body {
  max-width: 900px;
  margin: 40px auto 0 auto;
  font-size: 17px;
  line-height: 1.7;
}

.page-tin-tuc__article-body p {
  margin-bottom: 20px;
}

.page-tin-tuc__article-subtitle {
  color: #ffffff;
  margin-top: 35px;
  margin-bottom: 15px;
  font-size: 24px;
}

.page-tin-tuc__article-figure {
  width: 100%;
  height: auto;
  margin: 30px 0;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

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

details.page-tin-tuc__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #D6E2FF;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

details.page-tin-tuc__faq-item summary.page-tin-tuc__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  font-weight: 600;
  font-size: 18px;
  color: #1F2D3D;
}

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: #f0f5ff;
}

.page-tin-tuc__faq-qtext {
  flex: 1;
  font-size: 17px;
  line-height: 1.5;
  text-align: left;
}

.page-tin-tuc__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #2F6BFF;
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}

details.page-tin-tuc__faq-item .page-tin-tuc__faq-answer {
  padding: 0 25px 20px;
  background: #f9f9f9;
  border-radius: 0 0 10px 10px;
  color: #444444;
  font-size: 16px;
}

/* CTA Banner Section */
.page-tin-tuc__cta-banner-section {
  padding: 60px 0;
  background-color: #F4F7FB;
}

.page-tin-tuc__cta-banner {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.page-tin-tuc__cta-image {
  width: 100%;
  height: 350px;
  object-fit: cover;
  filter: brightness(0.7); /* Darken image slightly for text readability */
}

.page-tin-tuc__cta-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  max-width: 700px;
  width: 90%;
  z-index: 1;
}

.page-tin-tuc__cta-title {
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 700;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-tin-tuc__cta-description {
  font-size: 18px;
  margin-bottom: 30px;
  color: #f0f0f0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-tin-tuc__news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-tin-tuc__hero-image img {
    height: 500px;
  }
}

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

@media (max-width: 768px) {
  .page-tin-tuc {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-tin-tuc__container {
    padding: 0 15px;
  }

  .page-tin-tuc h1 {
    font-size: clamp(24px, 7vw, 36px);
  }

  .page-tin-tuc h2 {
    font-size: clamp(22px, 6vw, 30px);
  }

  .page-tin-tuc h3 {
    font-size: clamp(18px, 5vw, 24px);
  }

  /* HERO 主图区域 */
  .page-tin-tuc__hero-section {
    padding-top: 10px !important; /* Small top padding for mobile */
    padding-bottom: 40px;
  }

  .page-tin-tuc__hero-content {
    margin-bottom: 20px;
  }

  .page-tin-tuc__hero-description {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .page-tin-tuc__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-tin-tuc__hero-image {
    margin-top: 30px;
  }

  .page-tin-tuc__hero-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important; /* Mobile: prevent cropping, show full image */
    aspect-ratio: unset !important;
  }

  /* 产品展示图区域 (News Grid) */
  .page-tin-tuc__news-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-tin-tuc__news-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-tin-tuc__news-thumbnail {
    height: 180px;
  }

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

  .page-tin-tuc__news-title {
    font-size: 18px;
  }

  .page-tin-tuc__latest-news-section {
    padding: 40px 0;
  }

  .page-tin-tuc__section-description {
    font-size: 15px;
    margin-bottom: 30px;
  }

  /* 装饰主标题 + 长文 SEO 区 */
  .page-tin-tuc__featured-article-section {
    padding: 50px 0;
  }

  .page-tin-tuc__article-body {
    font-size: 16px;
    padding: 0 10px;
  }

  .page-tin-tuc__article-subtitle {
    font-size: 20px;
  }

  .page-tin-tuc__article-figure {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin: 20px 0;
  }

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

  .page-tin-tuc__section,
  .page-tin-tuc__card,
  .page-tin-tuc__container,
  .page-tin-tuc__cta-banner {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 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__hero-buttons,
  .page-tin-tuc__cta-buttons,
  .page-tin-tuc__button-group,
  .page-tin-tuc__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    flex-wrap: wrap !important;
    gap: 15px;
    flex-direction: column; /* Ensure vertical stacking for multiple buttons */
  }

  /* FAQ */
  details.page-tin-tuc__faq-item summary.page-tin-tuc__faq-question {
    padding: 15px 20px;
    font-size: 16px;
  }

  .page-tin-tuc__faq-qtext {
    font-size: 15px;
  }

  .page-tin-tuc__faq-toggle {
    font-size: 24px;
    width: 25px;
  }

  details.page-tin-tuc__faq-item .page-tin-tuc__faq-answer {
    padding: 0 20px 15px;
    font-size: 15px;
  }

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

  /* CTA Banner */
  .page-tin-tuc__cta-banner-section {
    padding: 40px 0;
  }

  .page-tin-tuc__cta-image {
    height: 250px;
  }

  .page-tin-tuc__cta-content {
    width: 95%;
  }

  .page-tin-tuc__cta-title {
    font-size: clamp(22px, 6vw, 32px);
    margin-bottom: 10px;
  }

  .page-tin-tuc__cta-description {
    font-size: 15px;
    margin-bottom: 20px;
  }
}