/* Base styles for the page content */
.page-tin-tuc {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light body background */
  background-color: #f8f8f8; /* Light background for the page content sections */
}

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

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

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

.page-tin-tuc__section-description {
  font-size: 18px;
  color: #555555;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-tin-tuc__hero-section {
  padding-top: 10px; /* Small top padding, as body handles header offset */
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-tin-tuc__hero-image {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
}

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

.page-tin-tuc__hero-content {
  padding: 40px 15px;
  max-width: 900px;
  box-sizing: border-box;
  text-align: center;
}

.page-tin-tuc__main-title {
  font-size: clamp(28px, 4vw, 48px); /* Using clamp for responsive H1 */
  font-weight: 800;
  color: #26A9E0;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

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

.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: 16px;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-tin-tuc__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-tin-tuc__btn-primary:hover {
  background-color: #1e87c0;
  border-color: #1e87c0;
}

.page-tin-tuc__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

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

/* News List Section */
.page-tin-tuc__news-list-section {
  padding: 60px 0;
}

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

.page-tin-tuc__news-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-tin-tuc__news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.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-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-tin-tuc__news-title a {
  color: #26A9E0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-tin-tuc__news-title a:hover {
  color: #1e87c0;
}

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

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

.page-tin-tuc__read-more {
  display: inline-block;
  color: #26A9E0;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-tin-tuc__read-more:hover {
  color: #1e87c0;
}

.page-tin-tuc__view-all {
  text-align: center;
}

/* Featured Article Section */
.page-tin-tuc__featured-article-section {
  padding: 60px 0;
  background-color: #26A9E0; /* Brand color background */
  color: #ffffff;
}

.page-tin-tuc__featured-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-tin-tuc__featured-image-wrapper {
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-tin-tuc__featured-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.page-tin-tuc__featured-text {
  flex: 1;
}

.page-tin-tuc__featured-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-tin-tuc__featured-excerpt {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 25px;
}

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

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

.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 #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;
  color: #555555;
}
.page-tin-tuc__faq-answer p {
  margin: 0;
}
.page-tin-tuc__faq-answer a {
  color: #26A9E0;
  text-decoration: none;
}
.page-tin-tuc__faq-answer a:hover {
  text-decoration: underline;
}


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

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

  .page-tin-tuc__section-title {
    font-size: 26px;
    margin-bottom: 15px;
  }

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

  /* HERO 主图区域 */
  .page-tin-tuc__hero-section {
    padding-top: 10px; /* Small top padding */
  }

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

  .page-tin-tuc__hero-content {
    padding: 30px 15px;
  }

  .page-tin-tuc__main-title {
    font-size: 28px;
  }

  .page-tin-tuc__description {
    font-size: 16px;
  }

  /* 按钮与按钮容器 */
  .page-tin-tuc__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    flex-wrap: wrap !important;
  }

  .page-tin-tuc__btn-primary,
  .page-tin-tuc__btn-secondary {
    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: 15px;
  }

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

  .page-tin-tuc__news-list-section,
  .page-tin-tuc__featured-article-section,
  .page-tin-tuc__cta-section,
  .page-tin-tuc__faq-section {
    padding: 40px 0;
  }

  /* Sản phẩm trưng bày (News Grid in this case, similar layout to products) */
  .page-tin-tuc__news-grid {
    grid-template-columns: 1fr; /* Single column for news cards */
    gap: 20px;
    overflow-x: hidden;
  }

  .page-tin-tuc__news-card {
    margin: 0 10px; /* Add some margin for cards */
  }

  .page-tin-tuc__news-image-wrapper {
    height: 180px; /* Adjust height for mobile */
  }

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

  .page-tin-tuc__news-excerpt {
    font-size: 14px;
  }

  /* Tiêu đề chính trang trí + khu vực SEO dài (Featured Article Section) */
  .page-tin-tuc__featured-content {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .page-tin-tuc__featured-image-wrapper {
    width: 100%;
    margin: 0 auto; /* Center image */
  }

  .page-tin-tuc__featured-title {
    font-size: 24px;
  }

  .page-tin-tuc__featured-excerpt {
    font-size: 16px;
  }

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

/* Tablet (max-width: 1024px) - specifically for news grid */
@media (max-width: 1024px) {
  .page-tin-tuc__news-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns for tablets */
    gap: 25px;
  }
  .page-tin-tuc__hero-image img {
    object-fit: contain !important; /* For 849px and below, but applying here for broader tablet range */
    aspect-ratio: unset !important;
  }
}

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