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

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

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

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

.page-tin-tuc__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

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

.page-tin-tuc__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Using clamp for H1 */
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.page-tin-tuc__intro-text {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 30px;
}

/* Buttons */
.page-tin-tuc__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping for multiple buttons */
}

.page-tin-tuc__btn-primary,
.page-tin-tuc__btn-secondary,
.page-tin-tuc__read-more-btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  max-width: 100%; /* For responsiveness */
  box-sizing: border-box; /* For responsiveness */
  white-space: normal; /* For responsiveness */
  word-wrap: break-word; /* For responsiveness */
}

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

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

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

.page-tin-tuc__btn-secondary:hover {
  background-color: #e0f2f7;
  color: #26A9E0;
}

.page-tin-tuc__read-more-btn {
  background-color: #f0f0f0;
  color: #26A9E0;
  border: 1px solid #e0e0e0;
  padding: 8px 15px;
  font-size: 0.9em;
}

.page-tin-tuc__read-more-btn:hover {
  background-color: #e0e0e0;
}

/* News List Section */
.page-tin-tuc__news-list-section {
  padding: 40px 0;
  background-color: #f9f9f9; /* Light background for contrast */
}

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

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

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

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

.page-tin-tuc__news-card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistent card images */
  overflow: hidden;
}

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

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

.page-tin-tuc__news-card-title {
  font-size: 1.3em;
  margin-bottom: 10px;
  line-height: 1.4;
}

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

.page-tin-tuc__news-card-title a:hover {
  color: #26A9E0;
}

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

.page-tin-tuc__news-card-description {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
}

/* Pagination */
.page-tin-tuc__pagination {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  gap: 10px;
}

.page-tin-tuc__pagination-link {
  display: inline-block;
  padding: 10px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  text-decoration: none;
  color: #26A9E0;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-tin-tuc__pagination-link:hover,
.page-tin-tuc__pagination-link--active {
  background-color: #26A9E0;
  color: #ffffff;
  border-color: #26A9E0;
}

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

.page-tin-tuc__cta-content {
  max-width: 800px;
  margin: 0 auto;
  color: #ffffff;
}

.page-tin-tuc__cta-title {
  font-size: 2.5em;
  margin-bottom: 15px;
  color: #ffffff;
}

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

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

  .page-tin-tuc__hero-section {
    padding-top: 10px; /* Small top padding for mobile */
    margin-bottom: 20px;
  }

  .page-tin-tuc__hero-image {
    margin-bottom: 15px;
  }

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

  .page-tin-tuc__intro-text {
    font-size: 1em;
    margin-bottom: 20px;
  }

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

  .page-tin-tuc__btn-primary,
  .page-tin-tuc__btn-secondary,
  .page-tin-tuc__read-more-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__news-list-section {
    padding: 20px 0;
  }

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

  .page-tin-tuc__news-grid {
    grid-template-columns: 1fr; /* Single column for news cards on mobile */
    gap: 20px;
  }

  .page-tin-tuc__news-card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Lighter shadow for mobile */
  }

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

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

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

  .page-tin-tuc__news-card-description {
    font-size: 0.95em;
  }

  .page-tin-tuc__pagination {
    margin-top: 20px;
  }

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

  .page-tin-tuc__cta-title {
    font-size: 1.8em;
  }

  .page-tin-tuc__cta-description {
    font-size: 1em;
  }

  /* Universal image and container responsiveness for mobile */
  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}