/* style/tin-tuc.css */
.page-tin-tuc {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main-color, #FFF5E1); /* Default text color for the page */
  background-color: var(--bg-color, #B71C1C); /* Default background color for the page */
}

.page-tin-tuc__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding as shared.css handles body padding-top */
  text-align: center;
  color: #ffffff;
  overflow: hidden;
}

.page-tin-tuc__hero-image-wrapper {
  position: relative;
  width: 100%;
  max-height: 600px; /* Limit height for desktop hero */
  overflow: hidden;
}

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

.page-tin-tuc__hero-content-wrapper {
  position: relative;
  z-index: 2;
  padding: 40px 20px;
  background: linear-gradient(180deg, rgba(201, 31, 23, 0.8) 0%, rgba(229, 57, 53, 0.8) 100%); /* Use brand colors for content overlay */
  margin-top: -100px; /* Overlap with image slightly for visual effect */
  border-radius: 0 0 15px 15px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.page-tin-tuc__main-title {
  font-size: clamp(2em, 4vw, 3em); /* Responsive font size for H1 */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #FFCC66; /* Gold color for main title */
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-tin-tuc__intro-text {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #FFF5E1;
}

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

.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;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  max-width: 100%;
  box-sizing: border-box;
}

.page-tin-tuc__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  color: #7A0E0E; /* Deep Red for text on gold button */
  border: 2px solid #F4D34D;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.page-tin-tuc__btn-primary:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

.page-tin-tuc__btn-secondary {
  background: #B71C1C; /* Background color */
  color: #FFF5E1; /* Text Main color */
  border: 2px solid #F2B544;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.page-tin-tuc__btn-secondary:hover {
  background: #7A0E0E; /* Deep Red */
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

.page-tin-tuc__latest-news-section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  color: #FFF5E1;
}

.page-tin-tuc__section-title {
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 40px;
  color: #FFCC66; /* Gold color */
  text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

.page-tin-tuc__news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.page-tin-tuc__news-card {
  background: var(--card-bg-color, #D32F2F); /* Card BG color */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}

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

.page-tin-tuc__card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

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

.page-tin-tuc__card-content {
  padding: 20px;
}

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

.page-tin-tuc__card-excerpt {
  font-size: 0.95em;
  color: rgba(255, 245, 225, 0.8);
  margin-bottom: 15px;
}

.page-tin-tuc__card-date {
  font-size: 0.85em;
  color: rgba(255, 245, 225, 0.6);
  display: block;
}

.page-tin-tuc__view-all-wrapper {
  margin-top: 20px;
}

.page-tin-tuc__btn-view-all {
  padding: 15px 35px;
  font-size: 1.1em;
}

.page-tin-tuc__cta-section {
  background: linear-gradient(90deg, #C91F17 0%, #E53935 100%); /* Brand colors for CTA background */
  padding: 80px 20px;
  text-align: center;
  color: #FFF5E1;
  box-shadow: inset 0 5px 15px rgba(0,0,0,0.2);
}

.page-tin-tuc__cta-title {
  font-size: 2.8em;
  font-weight: 700;
  margin-bottom: 20px;
  color: #FFCC66; /* Gold color */
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-tin-tuc__cta-description {
  font-size: 1.2em;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #FFF5E1;
}

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

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

@media (max-width: 1024px) {
  .page-tin-tuc__hero-content-wrapper {
    margin-top: -60px;
  }

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

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

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

@media (max-width: 768px) {
  .page-tin-tuc {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-tin-tuc__hero-section {
    padding-top: 10px !important;
  }

  .page-tin-tuc__hero-image-wrapper {
    max-height: 300px;
  }

  .page-tin-tuc__hero-content-wrapper {
    padding: 30px 15px;
    margin-top: -40px;
    border-radius: 0 0 10px 10px;
  }

  .page-tin-tuc__main-title {
    font-size: clamp(1.8em, 8vw, 2.5em); /* Adjust H1 for mobile */
  }

  .page-tin-tuc__intro-text {
    font-size: 1em;
    margin-bottom: 25px;
  }

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

  .page-tin-tuc__latest-news-section {
    padding: 40px 15px;
  }

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

  .page-tin-tuc__news-grid {
    grid-template-columns: 1fr !important; /* Single column for news cards */
    gap: 25px;
  }

  .page-tin-tuc__news-card {
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  }

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

  .page-tin-tuc__card-image {
    height: 180px; /* Adjust image height for mobile cards */
  }

  .page-tin-tuc__cta-section {
    padding: 50px 15px;
  }

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

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

  /* General image responsiveness for all images within .page-tin-tuc */
  .page-tin-tuc img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }

  .page-tin-tuc__section,
  .page-tin-tuc__card,
  .page-tin-tuc__container,
  .page-tin-tuc__news-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden;
  }
}