/* Base Styles for Tin Tức Page */
.page-tin-tuc {
  background-color: #0A0A0A; /* Custom background color */
  color: #FFF6D6; /* Custom text main color */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

.page-tin-tuc__hero-section {
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  margin-bottom: 40px;
  text-align: center;
}

.page-tin-tuc__hero-image {
  margin-bottom: 20px;
  overflow: hidden;
}

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

.page-tin-tuc__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-tin-tuc__main-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  color: #F2C14E; /* Main color for titles */
  margin-bottom: 15px;
  line-height: 1.2;
  font-weight: 700;
}

.page-tin-tuc__description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #FFF6D6;
}

.page-tin-tuc__cta-button {
  display: inline-block;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Custom button color */
  color: #111111; /* Dark text for bright button */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: 2px solid #FFD36B;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-tin-tuc__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
  opacity: 0.9;
}

.page-tin-tuc__section-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: #F2C14E;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.page-tin-tuc__latest-news-section {
  padding: 40px 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: #111111; /* Custom card background */
  border: 1px solid #3A2A12; /* Custom border color */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-tin-tuc__news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(242, 193, 78, 0.2);
}

.page-tin-tuc__news-image {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  overflow: hidden;
}

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

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

.page-tin-tuc__news-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
  line-height: 1.3;
  font-weight: 600;
}

.page-tin-tuc__news-title a {
  color: #FFF6D6; /* Main text color for links */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-tin-tuc__news-title a:hover {
  color: #FFD36B; /* Glow color on hover */
}

.page-tin-tuc__news-meta {
  font-size: 0.9rem;
  color: rgba(255, 246, 214, 0.7);
  margin-bottom: 15px;
}

.page-tin-tuc__news-excerpt {
  font-size: 1rem;
  color: #FFF6D6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-tin-tuc__read-more-button {
  display: inline-block;
  color: #FFD36B; /* Glow color for read more */
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-tin-tuc__read-more-button:hover {
  color: #F2C14E;
}

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

.page-tin-tuc__categories-section {
  padding: 40px 0;
  background-color: #0A0A0A;
}

.page-tin-tuc__categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-tin-tuc__category-card {
  background-color: #111111;
  border: 1px solid #3A2A12;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: #FFF6D6;
  text-align: center;
  padding-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-tin-tuc__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(242, 193, 78, 0.2);
}

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

.page-tin-tuc__category-title {
  font-size: 1.4rem;
  color: #F2C14E;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-tin-tuc__category-description {
  font-size: 0.95rem;
  color: rgba(255, 246, 214, 0.8);
  padding: 0 15px;
}

.page-tin-tuc__cta-section {
  padding: 60px 0;
  text-align: center;
}

.page-tin-tuc__cta-section .page-tin-tuc__container {
  background-color: #111111; /* Custom card background */
  border: 1px solid #3A2A12; /* Custom border color */
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-tin-tuc__dark-bg {
  color: #ffffff; /* Deep background, light text */
}

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

  .page-tin-tuc__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-tin-tuc__hero-section {
    padding-top: 10px; /* Consistent small top padding */
    margin-bottom: 30px;
  }

  .page-tin-tuc__main-title {
    font-size: 2rem; /* Adjust H1 for mobile */
  }

  .page-tin-tuc__description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

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

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

  .page-tin-tuc__news-grid,
  .page-tin-tuc__categories-grid {
    grid-template-columns: 1fr; /* Single column layout for mobile */
    gap: 20px;
  }

  .page-tin-tuc__news-card {
    max-width: 100% !important;
    width: 100% !important;
  }

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

  .page-tin-tuc__news-image img,
  .page-tin-tuc__category-card img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

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

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

  .page-tin-tuc__cta-section .page-tin-tuc__container {
    padding: 30px 15px !important;
  }
}