/* Base styles for .page-tin-tuc */
.page-tin-tuc {
  font-family: Arial, sans-serif;
  color: #1F2D3D; /* Text Main */
  background-color: #F4F7FB; /* Background */
  line-height: 1.6;
}

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

.page-tin-tuc__hero-section {
  padding-top: 10px; /* Rely on body padding-top for header offset */
  padding-bottom: 60px;
  text-align: center;
  background-color: #F4F7FB;
}

.page-tin-tuc__main-title {
  font-size: clamp(2em, 5vw, 2.8em); /* Responsive font size for H1 */
  font-weight: 700;
  color: #000000; /* Custom Color_1776249996415 */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-tin-tuc__subtitle {
  font-size: 1.1em;
  color: #1F2D3D;
  max-width: 800px;
  margin: 0 auto 30px;
}

.page-tin-tuc__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-tin-tuc__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1em;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box; /* Include padding/border in width */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.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 {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-tin-tuc__btn--secondary {
  background: #ffffff;
  color: #2F6BFF;
  border: 2px solid #2F6BFF; /* Border color */
}

.page-tin-tuc__btn--secondary:hover {
  background: #f0f0f0;
  color: #2F6BFF;
  transform: translateY(-2px);
}

/* Latest News Section */
.page-tin-tuc__latest-news-section {
  padding: 80px 0;
  background-color: #F4F7FB;
}

.page-tin-tuc__section-title {
  font-size: 2.2em;
  font-weight: 700;
  color: #000000;
  text-align: center;
  margin-bottom: 20px;
}

.page-tin-tuc__section-description {
  font-size: 1.1em;
  color: #1F2D3D;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px;
}

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

.page-tin-tuc__news-card {
  background-color: #ffffff; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

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

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

.page-tin-tuc__news-card-title {
  font-size: 1.3em;
  font-weight: 600;
  color: #000000;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-tin-tuc__news-card-meta {
  font-size: 0.9em;
  color: #6FA3FF; /* Auxiliary color */
  margin-bottom: 15px;
}

.page-tin-tuc__news-card-excerpt {
  font-size: 1em;
  color: #1F2D3D;
  line-height: 1.5;
  flex-grow: 1;
}

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

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

.page-tin-tuc__sub-section-title {
  font-size: 1.8em;
  font-weight: 600;
  color: #2F6BFF;
  margin-top: 40px;
  margin-bottom: 20px;
  text-align: left;
}

.page-tin-tuc__text-block {
  font-size: 1.05em;
  color: #1F2D3D;
  margin-bottom: 20px;
  line-height: 1.7;
}

.page-tin-tuc__image-figure {
  margin: 30px 0;
  text-align: center;
}

.page-tin-tuc__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  display: block;
  margin: 0 auto;
}

.page-tin-tuc__image-caption {
  font-size: 0.9em;
  color: #6A7D8E;
  margin-top: 15px;
}

/* Why Choose Section */
.page-tin-tuc__why-choose-section {
  padding: 80px 0;
  background-color: #F4F7FB;
}

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

.page-tin-tuc__feature-item {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
}

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

.page-tin-tuc__feature-description {
  font-size: 1em;
  color: #1F2D3D;
  line-height: 1.6;
}

/* Bottom CTA Section */
.page-tin-tuc__cta-bottom-section {
  padding: 80px 0;
  background-color: #F4F7FB;
}

.page-tin-tuc__cta-bottom-section .page-tin-tuc__container {
  background: #2F6BFF; /* Main color as background for dark section */
  border-radius: 15px;
  padding: 60px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-tin-tuc__section-title--white,
.page-tin-tuc__subtitle--white {
  color: #ffffff;
}

.page-tin-tuc__btn--white {
  background: #ffffff;
  color: #2F6BFF;
  border: 2px solid transparent;
}

.page-tin-tuc__btn--white:hover {
  background: #f0f0f0;
  color: #2F6BFF;
  transform: translateY(-2px);
}

.page-tin-tuc__btn--outline-white {
  background: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-tin-tuc__btn--outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-tin-tuc__main-title {
    font-size: 2.5em;
  }
  .page-tin-tuc__section-title {
    font-size: 2em;
  }
  .page-tin-tuc__news-card-image {
    height: 180px;
  }
  .page-tin-tuc__news-card-title {
    font-size: 1.2em;
  }
  .page-tin-tuc__cta-bottom-section .page-tin-tuc__container {
    padding: 40px;
  }
}

@media (max-width: 768px) {
  /* 1. Top Section (hero) */
  .page-tin-tuc__hero-section {
    padding-top: 10px !important; /* Fixed top padding, not header offset */
    padding-bottom: 40px;
  }
  .page-tin-tuc__container {
    padding: 0 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-tin-tuc__main-title {
    font-size: 2em;
    margin-bottom: 15px;
  }
  .page-tin-tuc__subtitle {
    font-size: 1em;
    margin-bottom: 25px;
  }

  /* 2. Buttons and Button Containers */
  .page-tin-tuc__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    padding: 0 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-tin-tuc__btn {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 15px;
    font-size: 0.95em;
  }

  /* 3. News Grid / Single Column Long Text */
  .page-tin-tuc__latest-news-section,
  .page-tin-tuc__about-section,
  .page-tin-tuc__why-choose-section,
  .page-tin-tuc__cta-bottom-section {
    padding: 40px 0;
  }
  .page-tin-tuc__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }
  .page-tin-tuc__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-tin-tuc__news-grid {
    grid-template-columns: 1fr; /* Single column for news cards */
    gap: 20px;
  }
  .page-tin-tuc__news-card-image {
    height: 180px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-tin-tuc__news-card-title {
    font-size: 1.1em;
  }
  .page-tin-tuc__sub-section-title {
    font-size: 1.5em;
    margin-top: 30px;
    margin-bottom: 15px;
  }
  .page-tin-tuc__text-block,
  .page-tin-tuc__feature-description {
    font-size: 0.95em;
  }
  .page-tin-tuc__image-figure {
    margin: 20px 0;
  }

  /* 4. Universal Images */
  .page-tin-tuc img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  .page-tin-tuc__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  /* Bottom CTA specific mobile styles */
  .page-tin-tuc__cta-bottom-section .page-tin-tuc__container {
    padding: 30px 20px;
  }
  .page-tin-tuc__section-title--white {
    font-size: 1.6em;
  }
  .page-tin-tuc__subtitle--white {
    font-size: 0.95em;
  }
  .page-tin-tuc__features-grid {
    grid-template-columns: 1fr;
  }
}