/* style/tin-tuc.css */

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

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

.page-tin-tuc__section-title {
  font-size: 2.5em;
  color: #017439;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.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;
}

/* Button styles */
.page-tin-tuc__btn-primary,
.page-tin-tuc__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

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

.page-tin-tuc__btn-primary:hover {
  background-color: #005a2d;
  border-color: #005a2d;
}

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

.page-tin-tuc__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
}

/* Specific colors for login/register buttons (as per custom colors) */
.page-tin-tuc__btn-register {
  background-color: #C30808; /* Red for Register */
  color: #FFFF00; /* Yellow font for Register */
  border: 2px solid #C30808;
}
.page-tin-tuc__btn-register:hover {
  background-color: #a30606;
  border-color: #a30606;
}

.page-tin-tuc__btn-login {
  background-color: #C30808; /* Red for Login */
  color: #FFFF00; /* Yellow font for Login */
  border: 2px solid #C30808;
}
.page-tin-tuc__btn-login:hover {
  background-color: #a30606;
  border-color: #a30606;
}


/* HERO Section */
.page-tin-tuc__hero-section {
  padding-top: 10px; /* Small top padding as body handles header offset */
  padding-bottom: 60px;
  background-color: #017439; /* Dark background from brand color */
  color: #ffffff; /* White text for dark background */
}

.page-tin-tuc__hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 15px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
  box-sizing: border-box;
}

.page-tin-tuc__hero-content {
  flex: 1 1 45%;
  min-width: 300px;
}

.page-tin-tuc__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Use clamp for H1 font-size */
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
}

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

.page-tin-tuc__cta-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  width: 100%; /* Ensure container takes full width for flex-wrap */
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-tin-tuc__hero-image {
  flex: 1 1 45%;
  min-width: 300px;
  text-align: center;
}

.page-tin-tuc__hero-side-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* News List Section */
.page-tin-tuc__news-list-section {
  padding: 60px 0;
  background-color: #f8f9fa; /* Light background */
  color: #333333;
}

.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-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-tin-tuc__news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-tin-tuc__news-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

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

.page-tin-tuc__news-date {
  font-size: 0.9em;
  color: #777777;
  margin-bottom: 10px;
}

.page-tin-tuc__news-title {
  font-size: 1.4em;
  font-weight: bold;
  color: #017439;
  margin-bottom: 10px;
  flex-grow: 1;
}

.page-tin-tuc__news-excerpt {
  font-size: 1em;
  color: #555555;
  margin-bottom: 15px;
}

.page-tin-tuc__read-more {
  display: inline-block;
  color: #017439;
  font-weight: bold;
  text-decoration: none;
}

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

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

/* Promo CTA Section */
.page-tin-tuc__promo-cta-section {
  padding: 80px 0;
  background-color: #017439; /* Dark background from brand color */
  color: #ffffff;
  text-align: center;
}

.page-tin-tuc__promo-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.page-tin-tuc__promo-content {
  flex: 1 1 500px;
  max-width: 600px;
  text-align: left;
}

.page-tin-tuc__promo-content .page-tin-tuc__section-title {
  color: #ffffff;
  text-align: left;
  margin-bottom: 20px;
}

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