/* style/tin-tuc.css */

:root {
  --page-tin-tuc-primary-color: #C61F1F;
  --page-tin-tuc-secondary-color: #E53030;
  --page-tin-tuc-card-bg: #2A1212;
  --page-tin-tuc-background: #140C0C;
  --page-tin-tuc-text-main: #FFF1E8;
  --page-tin-tuc-border: #6A1E1E;
  --page-tin-tuc-gold: #F3C54D;
  --page-tin-tuc-deep-red: #7E0D0D;
}

.page-tin-tuc {
  background-color: var(--page-tin-tuc-background);
  color: var(--page-tin-tuc-text-main);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

/* Hero Section */
.page-tin-tuc__hero-section {
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: var(--page-tin-tuc-deep-red);
  position: relative;
  overflow: hidden;
}

.page-tin-tuc__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-tin-tuc__hero-content {
  position: relative;
  z-index: 10;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -100px; /* Overlap slightly for visual effect, but not cover image */
  background-color: rgba(42, 18, 18, 0.85); /* Card BG with transparency */
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--page-tin-tuc-border);
}

.page-tin-tuc__main-title {
  font-size: clamp(2em, 3.5vw, 3em);
  color: var(--page-tin-tuc-gold);
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
}

.page-tin-tuc__hero-description {
  font-size: 1.1em;
  color: var(--page-tin-tuc-text-main);
  margin-bottom: 30px;
}

.page-tin-tuc__btn-primary,
.page-tin-tuc__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

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

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

.page-tin-tuc__btn-secondary {
  background: var(--page-tin-tuc-card-bg);
  color: var(--page-tin-tuc-gold);
  border: 2px solid var(--page-tin-tuc-gold);
}

.page-tin-tuc__btn-secondary:hover {
  background: var(--page-tin-tuc-gold);
  color: var(--page-tin-tuc-card-bg);
  transform: translateY(-2px);
}

/* Latest News Section */
.page-tin-tuc__latest-news-section {
  padding: 60px 0;
  background-color: var(--page-tin-tuc-background);
}

.page-tin-tuc__section-title {
  font-size: 2.5em;
  color: var(--page-tin-tuc-gold);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

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

.page-tin-tuc__news-card {
  background-color: var(--page-tin-tuc-card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--page-tin-tuc-border);
}

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

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

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

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

.page-tin-tuc__news-card-title {
  font-size: 1.4em;
  color: var(--page-tin-tuc-gold);
  margin-bottom: 10px;
  min-height: 60px; /* Ensure consistent title height */
}

.page-tin-tuc__news-card-date {
  font-size: 0.9em;
  color: #bbb;
  margin-bottom: 15px;
}

.page-tin-tuc__news-card-excerpt {
  font-size: 1em;
  color: var(--page-tin-tuc-text-main);
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Limit to 3 lines */
  -webkit-box-orient: vertical;
  min-height: 70px;
}

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

/* CTA Section */
.page-tin-tuc__cta-section {
  padding: 80px 0;
  background-color: var(--page-tin-tuc-deep-red);
  text-align: center;
}

.page-tin-tuc__cta-description {
  font-size: 1.2em;
  color: var(--page-tin-tuc-text-main);
  max-width: 800px;
  margin: 0 auto 40px auto;
}

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

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-tin-tuc__hero-content {
    margin-top: -80px;
  }

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

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

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

@media (max-width: 768px) {
  /* Fixed header spacing */
  .page-tin-tuc__hero-section { 
    padding-top: 10px !important; 
  }

  /* Hero Section */
  .page-tin-tuc__hero-content {
    margin-top: -60px;
    padding: 25px 15px;
  }

  .page-tin-tuc__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

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

  .page-tin-tuc__btn-primary,
  .page-tin-tuc__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

  .page-tin-tuc__news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }

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

  .page-tin-tuc__news-card-title {
    font-size: 1.2em;
    min-height: auto;
  }

  .page-tin-tuc__news-card-excerpt {
    min-height: auto;
    -webkit-line-clamp: 4; /* Allow more lines on mobile */
  }

  .page-tin-tuc__view-all-button-container {
    margin-top: 30px;
    padding: 0 15px;
  }

  /* CTA Section */
  .page-tin-tuc__cta-section {
    padding: 50px 0;
  }

  .page-tin-tuc__cta-description {
    font-size: 1.1em;
    padding: 0 15px;
    margin-bottom: 30px;
  }

  .page-tin-tuc__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* General image styling for mobile */
  .page-tin-tuc img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-tin-tuc__container,
  .page-tin-tuc__hero-section,
  .page-tin-tuc__latest-news-section,
  .page-tin-tuc__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }
}

/* No specific carousel or guide box needed for 'Tin Tức' page, so no corresponding media queries. */
/* The 'home_content' box is also not part of a standard news page. */
/* Blog card section in the context of this page is 'news-grid', handled above. */