/* style/tin-tuc.css */
.page-tin-tuc {
  font-family: Arial, sans-serif;
  color: var(--text-main); /* Default text color for the page */
  background-color: var(--deep-navy); /* From shared.css, dark background */
}

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

/* Hero Section */
.page-tin-tuc__hero-section {
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  padding-top: 10px; /* Small top padding, assuming body padding-top is handled by shared.css */
  padding-bottom: 40px;
  background-color: var(--card-bg); /* Dark background for hero */
}

.page-tin-tuc__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Constrain image width */
  margin-bottom: 20px;
  overflow: hidden;
  border-radius: 8px;
}

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

.page-tin-tuc__hero-content {
  text-align: center;
  max-width: 800px;
  padding: 0 20px;
}

.page-tin-tuc__hero-title {
  font-size: 2.8em;
  font-weight: 700;
  color: var(--text-main); /* Light text on dark background */
  line-height: 1.2;
  margin-bottom: 15px;
  max-width: 100%; /* Ensure H1 doesn't overflow */
}

.page-tin-tuc__hero-description {
  font-size: 1.1em;
  color: var(--text-secondary); /* Lighter text on dark background */
  line-height: 1.6;
  margin-bottom: 30px;
}

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

/* Buttons */
.page-tin-tuc__btn-primary,
.page-tin-tuc__btn-secondary {
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1em;
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-block;
  max-width: 100%; /* Ensure button adapts to container */
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word;
  text-align: center;
}

.page-tin-tuc__btn-primary {
  background: var(--button-gradient); /* Gradient button */
  color: var(--text-main); /* Light text on dark button */
  border: 2px solid transparent;
}

.page-tin-tuc__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-tin-tuc__btn-secondary {
  background: var(--text-main); /* Light background */
  color: var(--primary-color); /* Primary color text */
  border: 2px solid var(--primary-color);
}

.page-tin-tuc__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--text-main);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.page-tin-tuc__section-title {
  font-size: 2.2em;
  font-weight: 700;
  color: var(--gold-color); /* Gold color for section titles */
  text-align: center;
  margin-bottom: 40px;
}

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

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

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

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

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

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

.page-tin-tuc__news-card-title {
  font-size: 1.3em;
  font-weight: 600;
  color: var(--text-main); /* Light text on dark card */
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-tin-tuc__news-card-excerpt {
  font-size: 0.95em;
  color: var(--text-secondary); /* Lighter text on dark card */
  line-height: 1.5;
  margin-bottom: 15px;
}

.page-tin-tuc__news-card-date {
  font-size: 0.85em;
  color: var(--text-secondary); /* Lighter text for date */
  display: block;
  margin-top: 10px;
}

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

/* CTA Section */
.page-tin-tuc__cta-section {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); /* Gradient background */
  color: var(--text-main); /* Light text on gradient background */
}

.page-tin-tuc__cta-title {
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-main);
}

.page-tin-tuc__cta-description {
  font-size: 1.1em;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: var(--text-secondary);
}

/* Base styles for all images and buttons to ensure responsiveness */
.page-tin-tuc img {
  max-width: 100%;
  height: auto;
  display: block;
  box-sizing: border-box;
}

.page-tin-tuc a[class*="btn"] {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

/* Custom properties for colors (from prompt) */
:root {
  --primary-color: #113B7A;
  --secondary-color: #1D5FD1;
  --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  --card-bg: #10233F;
  --text-main: #F3F8FF;
  --text-secondary: #AFC4E8;
  --border-color: #244D84;
  --glow-color: #4FA8FF;
  --gold-color: #F2C14E;
  --divider-color: #1B3357;
  --deep-navy: #08162B; /* This is the body background from shared.css */
}


/* --- Mobile Responsive Styles (max-width: 768px) --- */
@media (max-width: 768px) {
  /* General mobile adjustments */
  .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;
  }

  /* Hero Section */
  .page-tin-tuc__hero-section {
    padding-top: 10px !important; /* Ensure small padding */
    padding-bottom: 30px;
  }

  .page-tin-tuc__hero-title {
    font-size: 2em; /* Smaller H1 for mobile */
    max-width: 100%; /* Ensure H1 doesn't overflow */
  }

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

  .page-tin-tuc__hero-cta {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    width: 100%; /* Ensure button container takes full width */
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

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

  /* News List Section */
  .page-tin-tuc__news-list-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; /* Single column for mobile */
    gap: 20px;
  }

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

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

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

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

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

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

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

  /* Ensure all images are responsive */
  .page-tin-tuc img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Mobile @media checklist items (explicitly empty or commented if not applicable to this page) */
  /* 1. Top carousel: This page does not have a carousel, it has a hero image. */
  /*    The hero image is handled by .page-tin-tuc__hero-section and .page-tin-tuc__hero-image. */
  .page-tin-tuc__hero-carousel-section { /* Not applicable to this page */ }
  .page-tin-tuc__hero-slider { /* Not applicable to this page */ }
  .page-tin-tuc__hero-slide { /* Not applicable to this page */ }

  /* 2. Operation guide box + five team vertical cards: Not present on this page. */
  .page-tin-tuc__guide-box { /* Not applicable to this page */ }
  .page-tin-tuc__guide-grid { /* Not applicable to this page */ }
  .page-tin-tuc__guide-card { /* Not applicable to this page */ }

  /* 3. home_content box: Not present on this page. */
  .page-tin-tuc__home-content-box { /* Not applicable to this page */ }
  .page-tin-tuc__home-content-inner { /* Not applicable to this page */ }

  /* 4. Blog card section: Handled by .page-tin-tuc__news-grid */
  /* 5. General images and buttons: Handled by .page-tin-tuc img and .page-tin-tuc a[class*="btn"] */
}

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

  .page-tin-tuc__hero-title {
    font-size: 2.5em;
  }

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

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

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