/* style/tin-tuc.css */

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

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

.page-tin-tuc__section-title {
  font-size: clamp(24px, 4vw, 36px); /* Responsive font size for H2 */
  font-weight: bold;
  color: var(--text-main, #333333);
  margin-bottom: 30px;
  text-align: center;
}

/* Hero Section */
.page-tin-tuc__hero-section {
  background: linear-gradient(90deg, #fce0e0 0%, #fff8f8 100%); /* Light, soft background for hero */
  padding-top: 10px; /* Small top padding as body handles --header-offset */
  padding-bottom: 40px;
  color: #333333; /* Ensure dark text on light background */
}

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

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

.page-tin-tuc__main-title {
  font-size: clamp(32px, 5vw, 48px); /* Responsive H1 font size */
  font-weight: 700;
  color: #E53935; /* Brand color for H1 */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-tin-tuc__hero-description {
  font-size: 18px;
  margin-bottom: 30px;
  color: #555555;
}

.page-tin-tuc__cta-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

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

.page-tin-tuc__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: none;
}

.page-tin-tuc__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(229, 57, 53, 0.4);
}

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

.page-tin-tuc__btn-secondary:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

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

.page-tin-tuc__hero-side-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

/* Intro Section */
.page-tin-tuc__intro-section {
  background-color: var(--card-bg, #FFFFFF); /* Light background */
  padding: 60px 0;
}
.page-tin-tuc__intro-section p {
  margin-bottom: 15px;
  color: var(--text-main, #333333);
}

/* News Categories Section */
.page-tin-tuc__news-categories {
  background-color: #E53935; /* Dark background */
  padding: 60px 0;
  color: #ffffff; /* Light text on dark background */
}
.page-tin-tuc__news-categories .page-tin-tuc__section-title {
  color: #ffffff; /* Ensure title is white */
}

.page-tin-tuc__category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding-top: 20px;
}

.page-tin-tuc__category-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;
  color: var(--text-main, #333333); /* Dark text on white card */
}

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

.page-tin-tuc__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-tin-tuc__card-title {
  font-size: 20px;
  font-weight: bold;
  margin: 15px 15px 10px;
  line-height: 1.3;
}

.page-tin-tuc__card-title a {
  color: #E53935; /* Brand color for links */
  text-decoration: none;
}

.page-tin-tuc__card-title a:hover {
  text-decoration: underline;
}

.page-tin-tuc__card-text {
  font-size: 15px;
  margin: 0 15px 15px;
  color: #555555;
}

.page-tin-tuc__btn-link {
  color: #E53935;
  text-decoration: none;
  font-weight: bold;
  display: block;
  margin: 0 15px 15px;
}

.page-tin-tuc__btn-link:hover {
  text-decoration: underline;
}

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

.page-tin-tuc__benefit-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding-top: 20px;
}

.page-tin-tuc__benefit-item {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  color: var(--text-main, #333333);
}

.page-tin-tuc__benefit-heading {
  font-size: 22px;
  font-weight: bold;
  color: #E53935;
  margin-bottom: 15px;
}

/* FAQ Section */
.page-tin-tuc__faq-section {
  background-color: #E53935; /* Dark background */
  padding: 60px 0;
  color: #ffffff; /* Light text on dark background */
}
.page-tin-tuc__faq-section .page-tin-tuc__section-title {
  color: #ffffff; /* Ensure title is white */
}

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

.page-tin-tuc__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-tin-tuc__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 18px;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  list-style: none; /* For <summary> */
  user-select: none;
}

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

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

.page-tin-tuc__faq-toggle {
  font-size: 24px;
  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); /* Rotate plus to become cross */
}

.page-tin-tuc__faq-answer {
  padding: 0 25px 18px;
  font-size: 16px;
  color: #f0f0f0;
}

/* CTA Section */
.page-tin-tuc__cta-section {
  background-color: var(--bg-page, #F5F7FA); /* Light background */
  padding: 60px 0;
  text-align: center;
}

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

.page-tin-tuc__cta-content p {
  font-size: 18px;
  margin-bottom: 30px;
  color: #555555;
}

.page-tin-tuc__cta-button-bottom {
  min-width: 250px;
}

/* --- Responsive Design --- */

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

  .page-tin-tuc__hero-content {
    order: 2; /* Content below image on tablet */
    text-align: center;
  }

  .page-tin-tuc__hero-image {
    order: 1; /* Image above content on tablet */
    margin-bottom: 30px;
  }

  .page-tin-tuc__main-title {
    font-size: clamp(28px, 6vw, 40px);
  }

  .page-tin-tuc__hero-description {
    font-size: 16px;
  }

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

  .page-tin-tuc__category-grid,
  .page-tin-tuc__benefit-list {
    grid-template-columns: 1fr; /* Stack cards on tablet */
  }
}

/* Mobile specific styles */
@media (max-width: 768px) {
  /* General mobile adjustments */
  .page-tin-tuc {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-tin-tuc__content-area {
    padding: 20px 15px !important; /* Mobile padding */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-tin-tuc__section-title {
    font-size: clamp(20px, 5vw, 28px);
    margin-bottom: 20px;
  }

  /* HERO Section (Mobile) */
  .page-tin-tuc__hero-section {
    padding-top: 10px !important; /* Small top padding, body handles header offset */
    padding-bottom: 30px !important;
  }

  .page-tin-tuc__hero-container {
    padding: 20px 15px !important;
    gap: 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-tin-tuc__main-title {
    font-size: clamp(28px, 8vw, 36px);
  }

  .page-tin-tuc__hero-description {
    font-size: 15px;
    margin-bottom: 20px;
  }

  /* Buttons (Mobile) */
  .page-tin-tuc__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }
  .page-tin-tuc__btn-primary,
  .page-tin-tuc__btn-secondary,
  .page-tin-tuc__btn-link,
  .page-tin-tuc a[class*="button"],
  .page-tin-tuc a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 15px !important;
  }

  /* Images (Mobile) */
  .page-tin-tuc img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}