/* Base styles for page-tin-tuc */
.page-tin-tuc {
  font-family: Arial, sans-serif;
  color: var(--text-main, #1F2D3D); /* Default text color */
  background-color: var(--background, #F4F7FB); /* Default background color */
  line-height: 1.6;
}

.page-tin-tuc__container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

/* Hero Section / Main Title Section */
.page-tin-tuc__hero-section {
  padding-top: 10px; /* Small top padding, header offset handled by body */
  padding-bottom: 40px;
  background-color: #ffffff; /* Explicitly light background for text contrast */
  text-align: center;
}

.page-tin-tuc__main-title {
  font-size: clamp(28px, 3.5vw, 48px); /* Responsive font size */
  font-weight: 700;
  color: var(--custom-color-1776249996415, #000000);
  margin-bottom: 16px;
  line-height: 1.2;
}

.page-tin-tuc__intro-description {
  font-size: 18px;
  color: var(--text-main, #1F2D3D);
  max-width: 800px;
  margin: 0 auto;
}

/* News List Section */
.page-tin-tuc__news-list-section {
  padding: 60px 0;
  background-color: var(--background, #F4F7FB);
}

.page-tin-tuc__section-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  color: var(--custom-color-1776249996415, #000000);
  text-align: center;
  margin-bottom: 40px;
}

.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: var(--card-b-g, #FFFFFF);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards are same height */
  display: flex;
  flex-direction: column;
}

.page-tin-tuc__news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

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

.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-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-main, #1F2D3D);
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-tin-tuc__news-meta {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
}

.page-tin-tuc__news-excerpt {
  font-size: 16px;
  color: #555;
  margin-bottom: 0;
}

/* CTA Buttons */
.page-tin-tuc__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  width: 100%; /* Ensure container width for mobile adaptation */
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-tin-tuc__btn-primary,
.page-tin-tuc__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box; /* Crucial for button max-width */
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-tin-tuc__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-tin-tuc__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  box-shadow: 0 6px 20px rgba(47, 107, 255, 0.4);
}

.page-tin-tuc__btn-secondary {
  background: var(--card-b-g, #FFFFFF);
  color: var(--main-color, #2F6BFF);
  border: 2px solid var(--border, #D6E2FF);
}

.page-tin-tuc__btn-secondary:hover {
  background-color: #f0f5ff;
  border-color: var(--main-color, #2F6BFF);
  box-shadow: 0 6px 20px rgba(47, 107, 255, 0.1);
}

/* About News Section */
.page-tin-tuc__about-news-section {
  padding: 60px 0;
  background-color: #ffffff;
}

.page-tin-tuc__content-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-tin-tuc__text-block {
  flex: 1;
}

.page-tin-tuc__text-block p {
  margin-bottom: 15px;
  color: var(--text-main, #1F2D3D);
}

.page-tin-tuc__image-block {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-tin-tuc__image-block .page-tin-tuc__image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: block; /* Ensure it behaves as a block element */
}

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

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

  /* HERO Section (Title/Intro) */
  .page-tin-tuc__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px;
  }

  .page-tin-tuc__main-title {
    font-size: clamp(24px, 7vw, 32px);
  }

  .page-tin-tuc__intro-description {
    font-size: 16px;
  }

  /* News List Section */
  .page-tin-tuc__news-list-section {
    padding: 40px 0;
  }

  .page-tin-tuc__section-title {
    font-size: clamp(20px, 6vw, 28px);
    margin-bottom: 30px;
  }

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

  .page-tin-tuc__news-image {
    height: 180px; /* Slightly smaller fixed height for mobile cards */
  }

  .page-tin-tuc__news-title {
    font-size: 18px;
  }

  .page-tin-tuc__news-excerpt {
    font-size: 15px;
  }

  /* CTA Buttons */
  .page-tin-tuc__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 15px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-tin-tuc__btn-primary,
  .page-tin-tuc__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-tin-tuc__content-wrapper {
    flex-direction: column; /* Stack content and image vertically */
    gap: 30px;
  }

  /* General image responsive styles (for content area images) */
  .page-tin-tuc img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* All containers with images or content */
  .page-tin-tuc__section,
  .page-tin-tuc__card,
  .page-tin-tuc__container,
  .page-tin-tuc__content-wrapper,
  .page-tin-tuc__text-block,
  .page-tin-tuc__image-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}