/* style/tin-tuc.css */

/* General styles for the Tin Tức page */
.page-tin-tuc {
  font-family: Arial, sans-serif;
  color: #1F2D3D; /* Text Main */
  background: #F4F7FB; /* Background */
  line-height: 1.6;
  padding-bottom: 50px;
}

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

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

.page-tin-tuc__section-description {
  font-size: 1.1em;
  color: #555;
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-tin-tuc__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, body handles header offset */
  width: 100%;
  overflow: hidden;
  margin-bottom: 50px;
  background-color: #F4F7FB; /* Fallback background */
}

.page-tin-tuc__hero-image-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

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

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

.page-tin-tuc__hero-title {
  font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive H1 font size */
  font-weight: bold;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 15px;
  line-height: 1.2;
}

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

.page-tin-tuc__hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Buttons */
.page-tin-tuc__btn-primary,
.page-tin-tuc__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure buttons adapt to container width */
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word;
}

.page-tin-tuc__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #FFFFFF;
  border: 2px solid transparent;
}

.page-tin-tuc__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  box-shadow: 0 5px 15px rgba(47, 107, 255, 0.4);
}

.page-tin-tuc__btn-secondary {
  background: #FFFFFF;
  color: #2F6BFF;
  border: 2px solid #2F6BFF; /* Border */
}

.page-tin-tuc__btn-secondary:hover {
  background: #F0F5FF;
  box-shadow: 0 5px 15px rgba(47, 107, 255, 0.1);
}

/* Intro Section */
.page-tin-tuc__intro-section {
  background: #FFFFFF; /* Card BG */
  padding: 60px 0;
  margin-bottom: 50px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.page-tin-tuc__intro-title {
  font-size: 2em;
  font-weight: bold;
  color: #1F2D3D;
  text-align: center;
  margin-bottom: 25px;
}

.page-tin-tuc__intro-text {
  font-size: 1.1em;
  color: #333333; /* For contrast on white background */
  margin-bottom: 20px;
  text-align: justify;
}

/* Latest News Section */
.page-tin-tuc__latest-news-section {
  padding: 50px 0;
  margin-bottom: 50px;
}

.page-tin-tuc__news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Changed to 3 columns for better content density */
  gap: 30px;
  margin-bottom: 40px;
}

.page-tin-tuc__news-card {
  background: #FFFFFF; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-tin-tuc__news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px 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-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

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

.page-tin-tuc__news-title {
  font-size: 1.4em;
  font-weight: bold;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-tin-tuc__news-title:hover {
  color: #2F6BFF; /* Primary color on hover */
}

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

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

.page-tin-tuc__read-more {
  font-size: 0.9em;
  color: #2F6BFF; /* Primary color */
  font-weight: bold;
  align-self: flex-start;
}

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

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

/* Special Reports Section */
.page-tin-tuc__special-reports-section {
  padding: 80px 0;
  margin-bottom: 50px;
  color: #FFFFFF; /* Light text on dark background */
}

.page-tin-tuc__dark-section {
  background: linear-gradient(135deg, #2F6BFF 0%, #6FA3FF 100%); /* Blue White gradient */
}

.page-tin-tuc__dark-section .page-tin-tuc__section-title,
.page-tin-tuc__dark-section .page-tin-tuc__section-description {
  color: #FFFFFF;
}

.page-tin-tuc__report-content {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

.page-tin-tuc__report-image {
  flex-shrink: 0;
  width: 50%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.page-tin-tuc__report-text p {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #F0F5FF; /* Slightly off-white for better readability on blue */
}

.page-tin-tuc__report-buttons {
  margin-top: 30px;
}

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

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

.page-tin-tuc__faq-item {
  background: #FFFFFF; /* Card BG */
  border: 1px solid #D6E2FF; /* Border */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-tin-tuc__faq-item[open] {
  box-shadow: 0 6px 20px rgba(47, 107, 255, 0.1);
  border-color: #2F6BFF;
}

.page-tin-tuc__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #1F2D3D; /* Text Main */
  cursor: pointer;
  list-style: none; /* Remove default marker */
}

.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;
  color: #2F6BFF;
  margin-left: 15px;
}

.page-tin-tuc__faq-answer {
  padding: 0 25px 20px;
  font-size: 1.05em;
  color: #333333; /* For contrast on white background */
  line-height: 1.7;
}

/* Call to Action Section */
.page-tin-tuc__cta-section {
  background: #FFFFFF; /* Card BG */
  padding: 60px 0;
  text-align: center;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.03);
}

.page-tin-tuc__cta-title {
  font-size: 2.2em;
  font-weight: bold;
  color: #1F2D3D;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-tin-tuc__cta-description {
  font-size: 1.1em;
  color: #555;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-tin-tuc__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

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

.page-tin-tuc__section,
.page-tin-tuc__card,
.page-tin-tuc__container,
.page-tin-tuc__hero-section,
.page-tin-tuc__intro-section,
.page-tin-tuc__latest-news-section,
.page-tin-tuc__special-reports-section,
.page-tin-tuc__faq-section,
.page-tin-tuc__cta-section {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden; /* Prevent horizontal scroll */
}


/* --- Responsive Styles --- */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
  .page-tin-tuc__container {
    padding: 0 15px;
  }

  .page-tin-tuc__section-title {
    font-size: 2em;
  }

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

  .page-tin-tuc__hero-description {
    font-size: 1.1em;
  }

  .page-tin-tuc__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-tin-tuc__btn-primary,
  .page-tin-tuc__btn-secondary {
    padding: 12px 25px;
    font-size: 1em;
    width: 80%; /* Adjust width for tablet */
    margin: 0 auto;
  }

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

  .page-tin-tuc__news-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

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

  .page-tin-tuc__report-content {
    flex-direction: column;
    align-items: center;
  }

  .page-tin-tuc__report-image {
    width: 80%;
    margin-bottom: 30px;
  }

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

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

/* Mobile (max-width: 768px) - All required blocks MUST be present */
@media (max-width: 768px) {
  /* 1. HERO 主图区域 */
  .page-tin-tuc__hero-section {
    padding-top: 10px !important; /* Small top padding, body handles header offset */
    margin-bottom: 30px;
  }

  .page-tin-tuc__hero-content {
    padding: 30px 15px;
  }

  .page-tin-tuc__hero-title {
    font-size: clamp(1.8em, 7vw, 2.5em) !important; /* Smaller on mobile */
    max-width: 100% !important;
    word-wrap: break-word !important;
  }

  .page-tin-tuc__hero-description {
    font-size: 1em;
    padding: 0 5px;
  }
}