:root {
  --page-tin-tuc-primary-color: #017439;
  --page-tin-tuc-secondary-color: #FFFFFF;
  --page-tin-tuc-text-dark: #333333;
  --page-tin-tuc-text-light: #f0f0f0;
  --page-tin-tuc-bg-light: #ffffff;
  --page-tin-tuc-bg-dark: #017439; /* Using brand primary for dark sections */
  --page-tin-tuc-button-register: #C30808;
  --page-tin-tuc-button-login: #C30808;
  --page-tin-tuc-button-text-highlight: #FFFF00;
  --page-tin-tuc-border-color: #e0e0e0;
}

.page-tin-tuc {
  font-family: Arial, sans-serif;
  color: var(--page-tin-tuc-text-dark); /* Default text color for light body bg */
  background: var(--page-tin-tuc-bg-light); /* Default body background is white */
}

/* Hero Section */
.page-tin-tuc__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Ensure image is above content */
  align-items: center;
  padding-top: 10px; /* Small top padding for fixed header */
  background: var(--page-tin-tuc-bg-dark); /* Use primary color for dark section */
  color: var(--page-tin-tuc-secondary-color);
  overflow: hidden; /* Ensure no overflow */
}

.page-tin-tuc__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

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

.page-tin-tuc__hero-content {
  background: var(--page-tin-tuc-bg-light); /* Content block has light background */
  color: var(--page-tin-tuc-text-dark);
  width: 100%;
  max-width: 1200px;
  padding: 40px 20px;
  text-align: center;
  box-sizing: border-box;
  border-radius: 8px;
  margin-top: -80px; /* Overlap with image for visual effect */
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.page-tin-tuc__main-title {
  font-size: clamp(2.2rem, 4vw, 3rem); /* H1 size constraint */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--page-tin-tuc-primary-color);
}

.page-tin-tuc__hero-description {
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 30px;
}

/* General Sections */
.page-tin-tuc__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--page-tin-tuc-primary-color);
  text-align: center;
  margin-bottom: 30px;
}

.page-tin-tuc__section-title--white {
  color: var(--page-tin-tuc-secondary-color);
}

.page-tin-tuc__section-description {
  font-size: 1.05rem;
  line-height: 1.6;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
  color: var(--page-tin-tuc-text-dark);
}

.page-tin-tuc__light-text {
  color: var(--page-tin-tuc-secondary-color); /* For text on dark backgrounds */
}

.page-tin-tuc__dark-bg {
  background: var(--page-tin-tuc-bg-dark);
  color: var(--page-tin-tuc-secondary-color);
  padding: 60px 20px;
}

.page-tin-tuc__light-bg {
  background: var(--page-tin-tuc-bg-light);
  color: var(--page-tin-tuc-text-dark);
  padding: 60px 20px;
}

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

/* Call to Action Buttons */
.page-tin-tuc__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden; /* For mobile button responsiveness */
}

.page-tin-tuc__btn-primary,
.page-tin-tuc__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
}

.page-tin-tuc__btn-primary {
  background: var(--page-tin-tuc-button-register); /* Custom color for register */
  color: var(--page-tin-tuc-button-text-highlight); /* Custom color for register text */
  border: 2px solid var(--page-tin-tuc-button-register);
}

.page-tin-tuc__btn-primary:hover {
  background: #a30606; /* Darker red */
  border-color: #a30606;
}

.page-tin-tuc__btn-secondary {
  background: transparent;
  color: var(--page-tin-tuc-button-login); /* Custom color for login text */
  border: 2px solid var(--page-tin-tuc-button-login);
}

.page-tin-tuc__btn-secondary:hover {
  background: var(--page-tin-tuc-button-login);
  color: var(--page-tin-tuc-button-text-highlight); /* Custom color for login text */
}

/* News List Section */
.page-tin-tuc__news-list-section {
  padding-bottom: 30px; /* Adjust padding if hero overlaps */
}

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

.page-tin-tuc__news-card {
  background: var(--page-tin-tuc-bg-light);
  border: 1px solid var(--page-tin-tuc-border-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  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.1);
}

.page-tin-tuc__card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.page-tin-tuc__news-thumbnail {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

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

.page-tin-tuc__card-title {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 10px;
  color: var(--page-tin-tuc-primary-color);
}

.page-tin-tuc__card-meta {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 15px;
}

.page-tin-tuc__card-excerpt {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--page-tin-tuc-text-dark);
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Limit excerpt to 3 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-tin-tuc__read-more {
  display: inline-block;
  color: var(--page-tin-tuc-primary-color);
  font-weight: 600;
}

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

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

/* Content Section */
.page-tin-tuc__content-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

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

.page-tin-tuc__article-body h3 {
  font-size: 1.6rem;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 20px;
  color: var(--page-tin-tuc-secondary-color); /* For dark background */
}

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

.page-tin-tuc__article-figure {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  max-width: 800px; /* Ensure images don't stretch too wide in content */
  min-width: 200px; /* Min size requirement */
}

.page-tin-tuc__keyword {
  font-weight: bold;
  color: var(--page-tin-tuc-button-text-highlight); /* Highlight keywords */
}


/* FAQ Section */
.page-tin-tuc__faq-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

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

details.page-tin-tuc__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--page-tin-tuc-border-color);
  overflow: hidden;
  background: var(--page-tin-tuc-bg-light);
}
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;
  color: var(--page-tin-tuc-text-dark);
}
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;
}
.page-tin-tuc__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}