.page-tin-tuc {
  color: #333333; /* Default text color for light background areas */
}

/* Hero Section */
.page-tin-tuc__hero-section {
  padding-top: 10px; /* Small top padding as per rule */
  position: relative;
  overflow: hidden;
  background: #B71C1C; /* Dark background from custom palette */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 40px;
}

.page-tin-tuc__hero-image {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-tin-tuc__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin-top: 20px;
  padding: 0 20px;
  color: #FFF5E1; /* Light text for dark background */
}

.page-tin-tuc__main-title {
  font-size: clamp(2.2em, 4vw, 3.2em); /* H1 font size rule */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-tin-tuc__description {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 30px;
}

.page-tin-tuc__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap; /* Allow wrap for mobile */
}

.page-tin-tuc__btn-primary,
.page-tin-tuc__btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05em;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: normal; /* Button text wrap */
  word-wrap: break-word; /* Button text wrap */
  box-sizing: border-box;
}

.page-tin-tuc__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Custom button color */
  color: #7A0E0E; /* Deep Red text for contrast on gold button */
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-tin-tuc__btn-secondary {
  background: #C91F17; /* Main color */
  color: #FFF5E1; /* Light text for dark button */
  border: 2px solid #F4D34D; /* Gold border */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

/* Latest News Section */
.page-tin-tuc__latest-news-section {
  padding: 60px 0;
  background: #B71C1C; /* Dark background from custom palette */
  color: #FFF5E1; /* Light text for dark background */
}

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

.page-tin-tuc__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #FFF5E1;
}

.page-tin-tuc__section-subtitle {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: #FFF5E1;
}

.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.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.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: 225px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-tin-tuc__card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  color: #FFF5E1; /* Light text for dark card */
}

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

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

.page-tin-tuc__card-excerpt {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-tin-tuc__read-more {
  display: inline-block;
  color: #FFD86A; /* Gold color for read more */
  font-weight: 600;
  text-decoration: underline;
}

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

/* SEO Content Area */
.page-tin-tuc__seo-content-area {
  padding: 60px 0;
  background: #ffffff; /* Light background for SEO content */
  color: #333333; /* Dark text for light background */
}

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

.page-tin-tuc__article-body h3 {
  font-size: clamp(1.4em, 2.5vw, 2em);
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #C91F17; /* Main brand color for subtitles */
}

.page-tin-tuc__article-body p {
  margin-bottom: 1em;
}

.page-tin-tuc__article-body ul {
  list-style: disc inside;
  margin-bottom: 1em;
  padding-left: 20px;
}

.page-tin-tuc__article-body li {
  margin-bottom: 0.5em;
}

.page-tin-tuc__article-figure {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-tin-tuc__article-body a {
  color: #C91F17; /* Main brand color for links */
  text-decoration: underline;
}

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

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

details.page-tin-tuc__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}
details.page-tin-tuc__faq-item[open] {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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;
  color: #333333;
}
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: #f9f9f9;
}
.page-tin-tuc__faq-qtext {
  flex: 1;
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #C91F17; /* Main brand color for FAQ question */
}
.page-tin-tuc__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #C91F17;
  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: #fdfdfd;
  border-radius: 0 0 8px 8px;
  color: #333333;
}
.page-tin-tuc__faq-answer p {
  margin-bottom: 0;
  line-height: 1.6;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-tin-tuc__hero-content {
    max-width: 768px;
  }
  .page-tin-tuc__news-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-tin-tuc__main-title {
    font-size: clamp(2em, 4.5vw, 2.8em);
  }
  .page-tin-tuc__description {
    font-size: 1em;
  }
  .page-tin-tuc__article-body {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  /* 1. HERO Chủ đề chính */
  .page-tin-tuc__hero-section {
    padding-top: 10px;
    padding-bottom: 30px;
  }
  .page-tin-tuc__hero-image {
    max-height: 300px;
  }
  .page-tin-tuc__hero-image img {
    object-fit: contain !important;
    aspect-ratio: unset !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-tin-tuc__hero-content {
    padding: 0 15px;
    margin-top: 15px;
  }
  .page-tin-tuc__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
    margin-bottom: 10px;
  }
  .page-tin-tuc__description {
    font-size: 0.95em;
    margin-bottom: 20px;
  }
  .page-tin-tuc__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
    width: 100%;
  }
  .page-tin-tuc__btn-primary,
  .page-tin-tuc__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 10px 20px;
    font-size: 1em;
  }

  /* 2. Khu vực hiển thị tin tức (News Grid) */
  .page-tin-tuc__latest-news-section {
    padding: 40px 0;
  }
  .page-tin-tuc__container {
    padding: 0 15px;
    overflow-x: hidden;
  }
  .page-tin-tuc__section-title {
    font-size: clamp(1.6em, 5vw, 2.2em);
    margin-bottom: 15px;
  }
  .page-tin-tuc__section-subtitle {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-tin-tuc__news-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .page-tin-tuc__news-card {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  }
  .page-tin-tuc__card-image {
    height: 180px;
  }
  .page-tin-tuc__card-title {
    font-size: 1.1em;
    margin-bottom: 5px;
  }
  .page-tin-tuc__card-meta {
    font-size: 0.8em;
    margin-bottom: 10px;
  }
  .page-tin-tuc__card-excerpt {
    font-size: 0.9em;
  }
  .page-tin-tuc__view-all-button {
    padding: 0 15px;
  }

  /* 3. Tiêu đề chính trang trí + khu vực SEO nội dung dài */
  .page-tin-tuc__seo-content-area {
    padding: 40px 0;
  }
  .page-tin-tuc__article-body {
    font-size: 0.95em;
    padding: 0 15px;
    max-width: 100% !important;
    box-sizing: border-box;
  }
  .page-tin-tuc__article-body h3 {
    font-size: clamp(1.2em, 4vw, 1.8em);
    margin-top: 25px;
    margin-bottom: 10px;
  }
  .page-tin-tuc__article-figure {
    margin: 20px auto;
    max-width: 100% !important;
    height: auto !important;
  }

  /* 4. Hình ảnh và container chung */
  .page-tin-tuc img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box;
  }
  .page-tin-tuc__section,
  .page-tin-tuc__container,
  .page-tin-tuc__box {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Khu vực FAQ */
  .page-tin-tuc__faq-section {
    padding: 40px 0;
  }
  details.page-tin-tuc__faq-item summary.page-tin-tuc__faq-question {
    padding: 15px 20px;
  }
  .page-tin-tuc__faq-qtext {
    font-size: 1em;
  }
  .page-tin-tuc__faq-toggle {
    font-size: 24px;
    width: 24px;
    margin-left: 10px;
  }
  details.page-tin-tuc__faq-item .page-tin-tuc__faq-answer {
    padding: 0 20px 15px;
  }
}