/* Base styles for the Tin Tức page */
.page-tin-tuc {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--background-color, #f8f8f8);
}

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

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

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

/* Colors based on provided scheme */
.page-tin-tuc__dark-bg {
  background-color: #B71C1C;
  color: #FFF5E1;
}

.page-tin-tuc__dark-bg .page-tin-tuc__section-title,
.page-tin-tuc__dark-bg .page-tin-tuc__description,
.page-tin-tuc__dark-bg .page-tin-tuc__section-description {
  color: #FFF5E1;
}

.page-tin-tuc__dark-section {
  background-color: #7A0E0E;
  color: #FFF5E1;
  padding: 60px 0;
}

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

.page-tin-tuc__light-bg {
  background-color: #f8f8f8; /* A light background for contrast */
  color: #333333;
  padding: 60px 0;
}

.page-tin-tuc__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  color: #7A0E0E; /* Deep Red text for primary button */
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-tin-tuc__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-tin-tuc__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background-color: transparent;
  color: #FFD86A; /* Gold text for secondary button */
  border: 2px solid #FFD86A;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-tin-tuc__btn-secondary:hover {
  background-color: rgba(255, 216, 106, 0.1);
  transform: translateY(-2px);
}

/* Hero Section */
.page-tin-tuc__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  overflow: hidden;
}

.page-tin-tuc__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px;
}

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

.page-tin-tuc__hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  position: relative; /* Ensure content is above image if any overlap */
  z-index: 1;
}

.page-tin-tuc__main-title {
  font-size: clamp(2.5em, 4vw, 3.5em);
  margin-bottom: 20px;
  font-weight: 900;
  line-height: 1.2;
  color: #FFF5E1;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

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

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

/* Latest News Section */
.page-tin-tuc__news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

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

.page-tin-tuc__news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.page-tin-tuc__news-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

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

.page-tin-tuc__news-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #FFD86A; /* Gold text for titles */
  line-height: 1.3;
}

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

.page-tin-tuc__news-date {
  font-size: 0.85em;
  color: rgba(255, 245, 225, 0.7);
  margin-bottom: 15px;
}

.page-tin-tuc__read-more-btn {
  display: inline-block;
  padding: 8px 15px;
  background: linear-gradient(180deg, #F4D34D 0%, #E6B800 100%); /* Gold gradient */
  color: #7A0E0E; /* Deep Red text */
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  align-self: flex-start;
  transition: background 0.3s ease;
}

.page-tin-tuc__read-more-btn:hover {
  opacity: 0.9;
}

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

/* Featured News Section */
.page-tin-tuc__featured-card {
  background-color: #D32F2F;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  max-width: 900px;
  margin: 0 auto;
}

.page-tin-tuc__featured-card-link {
  text-decoration: none;
  color: inherit;
}

.page-tin-tuc__featured-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.page-tin-tuc__featured-content {
  padding: 30px;
  color: #FFF5E1;
}

.page-tin-tuc__featured-title {
  font-size: 2em;
  margin-bottom: 15px;
  color: #FFD86A;
  line-height: 1.2;
}

.page-tin-tuc__featured-excerpt {
  font-size: 1.1em;
  margin-bottom: 25px;
}

.page-tin-tuc__read-now-btn {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(180deg, #F4D34D 0%, #E6B800 100%);
  color: #7A0E0E;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background 0.3s ease;
}

.page-tin-tuc__read-now-btn:hover {
  opacity: 0.9;
}

/* News Categories Section */
.page-tin-tuc__categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.page-tin-tuc__category-card {
  background-color: #D32F2F;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-tin-tuc__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.page-tin-tuc__category-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-tin-tuc__category-title {
  font-size: 1.5em;
  color: #FFD86A;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-tin-tuc__category-description {
  font-size: 0.95em;
  color: #FFF5E1;
  padding: 0 15px 20px;
  flex-grow: 1;
}

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

.page-tin-tuc__faq-item {
  background-color: #D32F2F; /* Card BG */
  border: 1px solid #E53935; /* Auxiliary color border */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-tin-tuc__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #FFD86A; /* Gold text */
  cursor: pointer;
  list-style: none; /* For details/summary */
}

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

.page-tin-tuc__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  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: #FFF5E1;
  line-height: 1.7;
}

.page-tin-tuc__faq-answer p {
  margin-bottom: 10px;
}

/* CTA Section */
.page-tin-tuc__cta-section {
  padding: 80px 0;
  text-align: center;
}

/* Responsive Design */
/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
  .page-tin-tuc__container {
    padding: 0 15px;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-tin-tuc__hero-section {
    padding-top: 10px;
    padding-bottom: 40px;
  }

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

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

  .page-tin-tuc__cta-buttons {
    flex-direction: column;
    gap: 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 !important;
    padding-right: 15px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-tin-tuc__news-card,
  .page-tin-tuc__category-card {
    height: auto;
  }

  .page-tin-tuc__news-image {
    height: 180px;
  }

  .page-tin-tuc__featured-image {
    height: 250px;
  }

  .page-tin-tuc__featured-title {
    font-size: 1.5em;
  }

  .page-tin-tuc__featured-excerpt {
    font-size: 0.95em;
  }

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

  .page-tin-tuc__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

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

  .page-tin-tuc__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.95em;
  }

  /* General images and containers */
  .page-tin-tuc img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-tin-tuc__hero-image-wrapper,
  .page-tin-tuc__news-grid,
  .page-tin-tuc__featured-card,
  .page-tin-tuc__categories-grid,
  .page-tin-tuc__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }

  .page-tin-tuc__cta-buttons,
  .page-tin-tuc__button-group,
  .page-tin-tuc__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 15px;
    flex-direction: column; /* Ensure vertical stacking for buttons */
  }

  .page-tin-tuc__latest-news-section,
  .page-tin-tuc__featured-news-section,
  .page-tin-tuc__categories-section,
  .page-tin-tuc__faq-section,
  .page-tin-tuc__cta-section {
    padding: 40px 0;
  }
}