/* style/tin-tuc.css */
.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 background for content areas */
}

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

.page-tin-tuc__hero-section {
  padding-top: 10px; /* Small top padding, header offset handled by body */
  padding-bottom: 40px;
  background-color: #ffffff;
  color: #333333;
}

.page-tin-tuc__hero-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  padding: 40px 0;
}

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

.page-tin-tuc__main-title {
  font-size: 2.5em;
  font-weight: bold;
  color: #017439;
  line-height: 1.2;
  margin-bottom: 15px;
}

.page-tin-tuc__description {
  font-size: 1.1em;
  margin-bottom: 30px;
}

.page-tin-tuc__cta-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.page-tin-tuc__btn-primary,
.page-tin-tuc__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-tin-tuc__btn-primary {
  background-color: #C30808; /* Đăng ký color */
  color: #FFFF00; /* Đăng ký và Đăng nhập font color */
  border: 2px solid #C30808;
}

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

.page-tin-tuc__btn-secondary {
  background-color: #C30808; /* Đăng nhập color */
  color: #FFFF00; /* Đăng ký và Đăng nhập font color */
  border: 2px solid #C30808;
}

.page-tin-tuc__btn-secondary:hover {
  background-color: #a30606;
  border-color: #a30606;
}

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

.page-tin-tuc__main-news-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.page-tin-tuc__news-list-section {
  background-color: #f9f9f9;
  padding-bottom: 60px;
}

.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: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-tin-tuc__news-card-media {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

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

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

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

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

.page-tin-tuc__news-card-title a:hover {
  color: #005a2e;
}

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

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

.page-tin-tuc__read-more-btn {
  display: inline-block;
  background-color: #017439;
  color: #ffffff;
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9em;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

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

.page-tin-tuc__cta-section {
  padding: 60px 0;
  background-color: #017439; /* Primary brand color */
  color: #ffffff;
  text-align: center;
}

.page-tin-tuc__dark-section {
  background-color: #017439;
  color: #ffffff;
}

.page-tin-tuc__cta-content {
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: 30px;
}

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

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

.page-tin-tuc__cta-image {
  margin-top: 30px;
  text-align: center;
}

.page-tin-tuc__cta-image img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  margin: 0 auto;
}

.page-tin-tuc__faq-section {
  padding: 60px 0;
  background-color: #ffffff;
}

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

.page-tin-tuc__faq-item {
  background-color: #f5f5f5;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-tin-tuc__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1em;
  font-weight: bold;
  color: #017439;
  cursor: pointer;
  list-style: none;
}

.page-tin-tuc__faq-question::-webkit-details-marker {
  display: none;
}

.page-tin-tuc__faq-question .page-tin-tuc__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-tin-tuc__faq-item[open] .page-tin-tuc__faq-toggle {
  transform: rotate(45deg);
}

.page-tin-tuc__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: #555555;
}

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

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

  .page-tin-tuc__container {
    padding: 0 15px !important;
  }

  /* HERO Section */
  .page-tin-tuc__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px;
  }

  .page-tin-tuc__hero-container {
    flex-direction: column;
    padding: 20px 0;
  }

  .page-tin-tuc__hero-content {
    order: 2;
    flex: none;
    width: 100%;
    min-width: unset;
  }

  .page-tin-tuc__hero-image {
    order: 1;
    flex: none;
    width: 100%;
    margin-bottom: 20px;
  }

  .page-tin-tuc__main-title {
    font-size: 1.8em;
    text-align: center;
  }

  .page-tin-tuc__description {
    font-size: 1em;
    text-align: center;
  }

  .page-tin-tuc__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

  .page-tin-tuc__btn-primary,
  .page-tin-tuc__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 10px 15px;
  }

  /* News List Section */
  .page-tin-tuc__news-list-section {
    padding-bottom: 40px;
  }

  .page-tin-tuc__section-title {
    font-size: 1.6em;
    margin-bottom: 30px;
    padding-top: 30px;
  }

  .page-tin-tuc__news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  /* CTA Section */
  .page-tin-tuc__cta-section {
    padding: 40px 0;
  }

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

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

  /* FAQ Section */
  .page-tin-tuc__faq-section {
    padding: 40px 0;
  }

  .page-tin-tuc__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }

  .page-tin-tuc__faq-answer {
    padding: 0 20px 15px;
  }

  /* General image and container responsiveness for content area */
  .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,
  .page-tin-tuc__news-card-media {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Placeholder for __icon-box-media, if it were present */
  .page-tin-tuc__icon-box-media {
    width: 200px !important;
    height: 200px !important;
    margin: 0 auto 16px !important;
  }
}