/* 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(--secondary-color, #ffffff); /* Inherit from shared or default to white */
}

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

.page-tin-tuc__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-tin-tuc__light-bg {
  background-color: #ffffff;
  color: #333333;
}

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

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

.page-tin-tuc__text-center {
  text-align: center;
}

.page-tin-tuc__mt-40 {
  margin-top: 40px;
}

/* Hero Section */
.page-tin-tuc__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

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

.page-tin-tuc__hero-content {
  max-width: 900px;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-tin-tuc__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
}

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

/* Buttons */
.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;
  font-size: 1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  text-align: center;
}

.page-tin-tuc__btn-primary {
  background-color: #EA7C07; /* Login color */
  color: #ffffff;
  border: 2px solid #EA7C07;
  margin: 0 10px;
}

.page-tin-tuc__btn-primary:hover {
  background-color: #d16b06;
  border-color: #d16b06;
}

.page-tin-tuc__btn-secondary {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
  margin: 0 10px;
}

.page-tin-tuc__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

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

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

.page-tin-tuc__news-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.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: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

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

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

.page-tin-tuc__news-title {
  font-size: 1.4em;
  font-weight: bold;
  color: #333333;
  margin-bottom: 15px;
  line-height: 1.4;
}

.page-tin-tuc__news-snippet {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-tin-tuc__read-more {
  color: #26A9E0;
  font-weight: bold;
  text-decoration: none;
  margin-top: auto;
  display: inline-block;
}

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

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

/* Why Choose Section */
.page-tin-tuc__why-choose-section {
  padding: 60px 0;
}

.page-tin-tuc__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-tin-tuc__feature-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-tin-tuc__feature-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-tin-tuc__feature-text {
  font-size: 1em;
  color: #f0f0f0;
  line-height: 1.6;
  flex-grow: 1;
}

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

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

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

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

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

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

  .page-tin-tuc__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

  .page-tin-tuc__news-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .page-tin-tuc__features-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-tin-tuc__hero-section {
    padding-top: 10px !important; /* Ensure small top padding */
    padding-bottom: 30px;
  }

  .page-tin-tuc__hero-image {
    max-height: 350px;
    margin-bottom: 20px;
  }

  .page-tin-tuc__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    margin-bottom: 15px;
  }

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

  .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;
    margin: 10px 0 !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

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

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

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

  .page-tin-tuc__latest-news-section,
  .page-tin-tuc__why-choose-section,
  .page-tin-tuc__cta-section {
    padding: 40px 0;
  }

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

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

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

  .page-tin-tuc__news-snippet {
    font-size: 0.9em;
  }

  .page-tin-tuc__features-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

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

  .page-tin-tuc__feature-text {
    font-size: 0.9em;
  }

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

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

  /* Placeholder for home-content (not present on this page) */
  .page-tin-tuc__home-content {
    height: auto !important;
    overflow-y: visible !important;
    padding: 20px !important;
  }
  /* Placeholder for game slider (not present on this page) */
  .page-tin-tuc__slider-track { display: flex !important; flex-wrap: wrap !important; } /* Ensure it doesn't break if mistakenly present */
  .page-tin-tuc__game-slide { flex: 0 0 100% !important; max-width: 100% !important; } /* Ensure it doesn't break if mistakenly present */
  /* Placeholder for banners-top-wrapper (not present on this page) */
  .page-tin-tuc__banners-top-wrapper { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; } /* Ensure it doesn't break if mistakenly present */
  .page-tin-tuc__banner-item img {   } /* Ensure it doesn't break if mistakenly present */
  /* Placeholder for blog-masonry (this page uses news-grid) */
  .page-tin-tuc__blog-masonry { grid-template-columns: 1fr !important; align-items: stretch !important; }
  /* Placeholder for blog-slider-track (not present on this page) */
  .page-tin-tuc__blog-slider-track { display: flex !important; flex-wrap: wrap !important; } /* Ensure it doesn't break if mistakenly present */
  .page-tin-tuc__blog-slide { flex: 0 0 100% !important; max-width: 100% !important; } /* Ensure it doesn't break if mistakenly present */

}