/* style/tin-tuc.css */

/* --- General Styles --- */
.page-tin-tuc {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light body background */
  background-color: var(--background-color, #FFFFFF); /* Inherit from shared or default white */
}

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

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

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

.page-tin-tuc__btn-primary,
.page-tin-tuc__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box; /* Include padding in width */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow long words to break */
}

.page-tin-tuc__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

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

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

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

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

/* --- Hero Section --- */
.page-tin-tuc__hero-section {
  padding-top: 10px; /* Minimal top padding, shared.css handles body padding-top */
  padding-bottom: 60px;
  background-color: #f8f8f8; /* Light background for contrast */
}

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

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

.page-tin-tuc__main-title {
  font-size: clamp(2em, 4vw, 3em); /* Responsive H1 font size */
  font-weight: 800;
  color: #017439; /* Brand color */
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-tin-tuc__cta-buttons {
  display: flex;
  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__hero-image {
  flex: 1;
  min-width: 400px;
  text-align: center;
}

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

.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: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards have equal height */
  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__card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-tin-tuc__news-card img {
  width: 100%;
  height: 200px; /* Fixed height for image consistency */
  object-fit: cover;
  border-bottom: 1px solid #eee;
}

.page-tin-tuc__card-content {
  padding: 20px;
  flex-grow: 1; /* Allow content to fill available space */
  display: flex;
  flex-direction: column;
}

.page-tin-tuc__card-title {
  font-size: 1.4em;
  font-weight: 700;
  color: #017439;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-tin-tuc__card-excerpt {
  font-size: 0.95em;
  color: #666666;
  margin-bottom: 15px;
  flex-grow: 1; /* Allow excerpt to grow */
}

.page-tin-tuc__card-date {
  font-size: 0.85em;
  color: #999999;
  text-align: right;
  margin-top: auto; /* Push date to bottom */
}

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

/* --- FAQ Section --- */
.page-tin-tuc__faq-section {
  padding: 60px 0;
  background-color: #f0fcf5; /* Light green background */
}

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

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

.page-tin-tuc__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: #017439;
  cursor: pointer;
  list-style: none; /* Remove default marker for details */
}

.page-tin-tuc__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-tin-tuc__faq-qtext {
  flex-grow: 1;
}

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

.page-tin-tuc__faq-item[open] .page-tin-tuc__faq-toggle {
  transform: rotate(45deg); /* Rotate plus to become cross */
}

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

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

.page-tin-tuc__contact-cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-tin-tuc__description--light {
  color: #f0f0f0;
  max-width: 700px;
}

.page-tin-tuc__btn-primary--inverted {
  background-color: #FFFFFF;
  color: #017439;
  border-color: #FFFFFF;
}

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

.page-tin-tuc__btn-secondary--inverted {
  background-color: transparent;
  color: #FFFFFF;
  border-color: #FFFFFF;
}

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


/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-tin-tuc__hero-container {
    flex-direction: column;
    text-align: center;
  }

  .page-tin-tuc__hero-content,
  .page-tin-tuc__hero-image {
    min-width: unset;
    width: 100%;
  }

  .page-tin-tuc__main-title {
    font-size: clamp(2em, 5vw, 2.8em);
  }

  .page-tin-tuc__cta-buttons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  /* General mobile adjustments */
  .page-tin-tuc__container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-tin-tuc {
    font-size: 16px;
    line-height: 1.6;
  }

  /* HERO Section (Must include) */
  .page-tin-tuc__hero-section {
    padding-top: 10px !important; /* Minimal top padding */
    padding-bottom: 40px;
  }
  .page-tin-tuc__hero-container {
    padding: 30px 15px;
    gap: 20px;
  }
  .page-tin-tuc__main-title {
    font-size: 2em;
    text-align: center;
  }
  .page-tin-tuc__description {
    font-size: 1em;
    text-align: center;
  }
  .page-tin-tuc__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    align-items: center;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-tin-tuc__btn-primary,
  .page-tin-tuc__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-tin-tuc__hero-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* News List Section */
  .page-tin-tuc__news-list-section {
    padding: 40px 0;
  }
  .page-tin-tuc__section-title {
    font-size: 2em;
    margin-bottom: 15px;
  }
  .page-tin-tuc__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-tin-tuc__news-grid {
    grid-template-columns: 1fr; /* Single column layout */
    gap: 20px;
  }
  .page-tin-tuc__news-card img {
    
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-tin-tuc__card-title {
    font-size: 1.2em;
  }
  .page-tin-tuc__card-excerpt {
    font-size: 0.9em;
  }
  .page-tin-tuc__view-all-button-wrapper {
    margin-top: 30px;
  }

  /* FAQ Section */
  .page-tin-tuc__faq-section {
    padding: 40px 0;
  }
  .page-tin-tuc__faq-question {
    padding: 15px 20px;
    font-size: 1.05em;
  }
  .page-tin-tuc__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.95em;
  }

  /* Contact CTA Section */
  .page-tin-tuc__contact-cta-section {
    padding: 50px 0;
  }
  .page-tin-tuc__section-title--light {
    font-size: 1.8em;
  }
  .page-tin-tuc__description--light {
    font-size: 1em;
  }
}

/* Universal image responsive rule (Must include) */
.page-tin-tuc img {
  max-width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .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;
  }
}