.page-tin-tuc {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light background */
  background-color: #F5F7FA; /* Background color from custom scheme */
}

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

/* --- Hero Section --- */
.page-tin-tuc__hero-section {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  padding: 40px 0 60px;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
}

.page-tin-tuc__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #ffffff;
  /* No fixed font-size for H1, relying on shared or browser defaults for responsiveness */
}

.page-tin-tuc__hero-description {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-tin-tuc__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-tin-tuc__btn-primary,
.page-tin-tuc__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow long words to break */
  box-sizing: border-box;
}

.page-tin-tuc__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-tin-tuc__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

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

.page-tin-tuc__btn-secondary:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

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

.page-tin-tuc__section-title {
  font-size: 2.2em;
  font-weight: 700;
  color: #333333;
  text-align: center;
  margin-bottom: 20px;
}

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

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

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

.page-tin-tuc__article-card:hover {
  transform: translateY(-5px);
}

.page-tin-tuc__article-image-wrapper {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  overflow: hidden;
}

.page-tin-tuc__article-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

.page-tin-tuc__article-title {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
  flex-grow: 1;
}

.page-tin-tuc__article-title a {
  color: #333333;
  text-decoration: none;
}

.page-tin-tuc__article-title a:hover {
  color: #E53935;
}

.page-tin-tuc__article-meta {
  font-size: 0.9em;
  color: #777777;
  margin-bottom: 15px;
}

.page-tin-tuc__article-summary {
  font-size: 1em;
  color: #555555;
  line-height: 1.5;
  margin-bottom: 20px;
}

.page-tin-tuc__read-more-btn {
  display: inline-block;
  color: #E53935;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  margin-top: auto; /* Push to bottom */
}

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

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

/* --- News Categories Section --- */
.page-tin-tuc__news-categories-section {
  padding: 60px 0;
  background-color: #ffffff;
}

.page-tin-tuc__category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-tin-tuc__category-card {
  background-color: #F5F7FA;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease;
}

.page-tin-tuc__category-card:hover {
  transform: translateY(-5px);
}

.page-tin-tuc__category-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin: 0 auto 20px;
  display: block;
}

.page-tin-tuc__category-title {
  font-size: 1.25em;
  font-weight: 600;
  margin-bottom: 10px;
}

.page-tin-tuc__category-title a {
  color: #333333;
  text-decoration: none;
}

.page-tin-tuc__category-title a:hover {
  color: #E53935;
}

.page-tin-tuc__category-text {
  font-size: 0.95em;
  color: #555555;
  line-height: 1.5;
}

/* --- Why Follow News Section --- */
.page-tin-tuc__why-follow-news {
  padding: 60px 0;
  background-color: #F5F7FA;
}

.page-tin-tuc__feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-tin-tuc__feature-item {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-tin-tuc__feature-title {
  font-size: 1.3em;
  font-weight: 600;
  color: #E53935;
  margin-bottom: 15px;
}

.page-tin-tuc__feature-description {
  font-size: 1em;
  color: #555555;
  line-height: 1.6;
}

/* --- Call to Action Section (Dark Background) --- */
.page-tin-tuc__call-to-action-section {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  padding: 60px 0;
  text-align: center;
}

.page-tin-tuc__call-to-action-section .page-tin-tuc__section-title,
.page-tin-tuc__call-to-action-section .page-tin-tuc__section-description {
  color: #ffffff;
}

.page-tin-tuc__call-to-action-section .page-tin-tuc__btn-primary {
  background: #ffffff;
  color: #E53935;
  border: 2px solid transparent;
}

.page-tin-tuc__call-to-action-section .page-tin-tuc__btn-primary:hover {
  background: #f0f0f0;
  color: #E53935;
}

.page-tin-tuc__call-to-action-section .page-tin-tuc__btn-secondary {
  background: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-tin-tuc__call-to-action-section .page-tin-tuc__btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* --- About News Section (Long Text) --- */
.page-tin-tuc__about-news-section {
  padding: 60px 0;
  background-color: #ffffff;
}

.page-tin-tuc__text-block {
  font-size: 1em;
  line-height: 1.7;
  color: #333333;
  margin-bottom: 20px;
}

.page-tin-tuc__text-block:last-child {
  margin-bottom: 0;
}

/* --- General Image Styles --- */
.page-tin-tuc img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

  /* 1. Top section (H1, CTA buttons) */
  .page-tin-tuc__hero-section {
    padding: 30px 0 40px;
    padding-top: 10px !important; /* Small top padding, body handles header offset */
  }

  .page-tin-tuc__main-title {
    font-size: 2em; /* Adjusted for mobile */
    margin-bottom: 15px;
  }

  .page-tin-tuc__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
    padding: 0 15px;
  }

  .page-tin-tuc__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    padding: 0 15px;
  }

  /* 4. Buttons and button containers */
  .page-tin-tuc__btn-primary,
  .page-tin-tuc__btn-secondary,
  .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__cta-buttons,
  .page-tin-tuc__view-all-button-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px; /* Ensure gap for stacked buttons */
  }
  
  .page-tin-tuc__cta-buttons {
    display: flex;
    flex-direction: column; /* Force vertical stacking for CTA groups */
  }

  /* 2. Single column long text container */
  .page-tin-tuc__container {
    padding: 0 15px; /* Adjust container padding for mobile */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-tin-tuc__latest-news-section,
  .page-tin-tuc__news-categories-section,
  .page-tin-tuc__why-follow-news,
  .page-tin-tuc__call-to-action-section,
  .page-tin-tuc__about-news-section {
    padding: 30px 0; /* Reduced section padding */
  }

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

  .page-tin-tuc__section-description {
    font-size: 0.95em;
    margin-bottom: 25px;
  }

  .page-tin-tuc__news-grid,
  .page-tin-tuc__category-grid,
  .page-tin-tuc__feature-list {
    grid-template-columns: 1fr; /* Single column layout */
    gap: 20px;
  }

  .page-tin-tuc__article-image-wrapper {
    height: 180px; /* Adjusted image height for mobile cards */
  }

  .page-tin-tuc__article-title {
    font-size: 1.1em;
  }

  .page-tin-tuc__category-icon {
    width: 80px;
    height: 80px;
  }

  .page-tin-tuc__category-title {
    font-size: 1.1em;
  }

  .page-tin-tuc__feature-title {
    font-size: 1.15em;
  }

  /* 3. Universal images and figures */
  .page-tin-tuc img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Content area images */
  .page-tin-tuc__article-image,
  .page-tin-tuc__category-icon {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Ensure content area img elements are not smaller than 200px if directly targeted by class, otherwise max-width:100% is fine */
  .page-tin-tuc__article-image-wrapper {
    width: 100%;
    height: auto; /* Allow height to adjust for mobile */
    min-height: 200px; /* Ensure min height for image container */
  }

  .page-tin-tuc__article-image {
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
  }

  /* 5. Registration tutorial and FAQ blocks (general text blocks here) */
  .page-tin-tuc__text-block {
    font-size: 0.95em;
  }
}

/* --- Color Contrast Fixes (if needed) --- */
.page-tin-tuc__dark-section .page-tin-tuc__section-title,
.page-tin-tuc__dark-section .page-tin-tuc__section-description {
  color: #ffffff; /* Ensure white text on dark backgrounds */
}

.page-tin-tuc__card {
  background: #ffffff; /* Ensure white background for cards */
  color: #333333; /* Ensure dark text on white cards */
}