/* General styles for the page-tin-tuc scope */
.page-tin-tuc {
  font-family: Arial, sans-serif;
  color: var(--text-main, #333333); /* Default text color from palette */
  background: var(--page-bg, #F5F7FA); /* Default background from palette */
  line-height: 1.6;
}

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

.page-tin-tuc__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: var(--text-main, #333333);
  text-align: center;
  margin-bottom: 40px;
  padding-top: 20px;
}

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

/* Hero Section */
.page-tin-tuc__hero-section {
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background: #F5F7FA; /* Light background for hero section */
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  text-align: center;
}

.page-tin-tuc__hero-image {
  width: 100%;
  max-width: 1920px; /* Max width for hero image container */
  overflow: hidden;
}

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

.page-tin-tuc__hero-content {
  max-width: 900px;
  margin: 0 auto 40px auto;
  padding: 20px 15px;
}

.page-tin-tuc__main-title {
  font-size: clamp(2em, 3.5vw, 2.8em); /* Clamp for responsive H1 */
  font-weight: 800;
  color: var(--primary-color, #E53935);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-tin-tuc__description {
  font-size: 1.1em;
  color: var(--text-main, #333333);
  margin-bottom: 30px;
}

.page-tin-tuc__description--light {
  color: #ffffff;
}

/* CTA Buttons */
.page-tin-tuc__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-tin-tuc__btn-primary,
.page-tin-tuc__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow text to break words */
  box-sizing: border-box;
  max-width: 100%; /* Ensure button doesn't exceed container */
}

.page-tin-tuc__btn-primary {
  background: linear-gradient(180deg, var(--secondary-color, #FF5A4F) 0%, var(--primary-color, #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: var(--primary-color, #E53935);
  border: 2px solid var(--primary-color, #E53935);
}

.page-tin-tuc__btn-secondary:hover {
  background: var(--primary-color, #E53935);
  color: #ffffff;
}

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

.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: #ffffff;
  border: 1px solid var(--border-color, #E0E0E0);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px 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 8px 20px rgba(0, 0, 0, 0.1);
}

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

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

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

.page-tin-tuc__news-card-title {
  font-size: 1.3em;
  font-weight: 700;
  color: var(--text-main, #333333);
  margin-bottom: 10px;
  line-height: 1.3;
}

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

.page-tin-tuc__news-card-excerpt {
  font-size: 1em;
  color: #555555;
}

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

/* Categories Section */
.page-tin-tuc__categories-section {
  padding: 60px 0;
  background: var(--page-bg, #F5F7FA);
}

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

.page-tin-tuc__category-card {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  color: inherit;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-tin-tuc__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}}