/* Base styles for the news page */
.page-tin-tuc {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Dark text for light body background */
  background-color: #FFFFFF; /* Default body background */
  line-height: 1.6;
}

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

/* Hero Section */
.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-content {
  position: relative;
  max-width: 100%;
  overflow: hidden;
  border-radius: 8px;
}

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

.page-tin-tuc__hero-text-block {
  padding: 30px 20px;
  background: #ffffff; /* White background for text block */
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-top: -15px; /* Slight overlap with image for visual flow */
  position: relative;
  z-index: 1;
}

.page-tin-tuc__main-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: #017439;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-tin-tuc__hero-description {
  font-size: 18px;
  color: #555555;
  max-width: 800px;
  margin: 0 auto;
}

/* Section Titles */
.page-tin-tuc__section-title {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  color: #017439;
  text-align: center;
  margin-bottom: 40px;
  padding-top: 40px;
}

/* Dark Background Section */
.page-tin-tuc__dark-section {
  background-color: #017439;
  color: #ffffff;
  padding: 60px 0;
}

.page-tin-tuc__dark-section .page-tin-tuc__section-title {
  color: #ffffff;
}

.page-tin-tuc__dark-section .page-tin-tuc__news-card-title, 
.page-tin-tuc__dark-section .page-tin-tuc__news-card-meta, 
.page-tin-tuc__dark-section .page-tin-tuc__news-card-excerpt {
  color: #333333; /* Ensure readability on white card background */
}

/* News Grid */
.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-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.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 consistency */
  overflow: hidden;
}

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

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

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

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

.page-tin-tuc__news-card-excerpt {
  font-size: 16px;
  color: #555555;
  line-height: 1.5;
}

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

/* Content Sections (In-depth Analysis, Platform Updates) */
.page-tin-tuc__in-depth-analysis, 
.page-tin-tuc__platform-updates {
  padding: 60px 0;
}

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

.page-tin-tuc__text-block {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-tin-tuc__platform-updates .page-tin-tuc__text-block {
  background-color: rgba(255, 255, 255, 0.95);
}

.page-tin-tuc__content-subtitle {
  font-size: 22px;
  font-weight: 600;
  color: #017439;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-tin-tuc__text-block p {
  font-size: 16px;
  color: #333333;
  margin-bottom: 15px;
}

.page-tin-tuc__text-block p a {
  color: #017439;
  text-decoration: underline;
}

/* Call to Action Section */
.page-tin-tuc__cta-section {
  background-color: #f5f5f5;
  padding: 80px 0;
  text-align: center;
}

.page-tin-tuc__cta-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.page-tin-tuc__cta-content {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  text-align: left;
}

.page-tin-tuc__cta-image {
  flex-shrink: 0;
  width: 400px;
  height: 300px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

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

.page-tin-tuc__cta-title {
  font-size: clamp(26px, 3.8vw, 38px);
  font-weight: 700;
  color: #017439;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-tin-tuc__cta-description {
  font-size: 18px;
  color: #555555;
  margin-bottom: 30px;
}

.page-tin-tuc__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

/* Buttons */
.page-tin-tuc__btn-primary,
.page-tin-tuc__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 30px;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-tin-tuc__btn-primary {
  background-color: #017439;
  color: #ffffff;
  border: 2px solid #017439;
}

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

.page-tin-tuc__btn-secondary {
  background-color: #ffffff;
  color: #017439;
  border: 2px solid #017439;
}

.page-tin-tuc__btn-secondary:hover {
  background-color: #e0e0e0;
  color: #005a2d;
  border-color: #005a2d;
}

/* Footer Copyright */
.page-tin-tuc__footer-copyright {
  text-align: center;
  padding: 20px;
  font-size: 14px;
  color: #777777;
  background-color: #f0f0f0;
  margin-top: 60px;
}

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

  .page-tin-tuc__hero-text-block {
    padding: 25px 15px;
  }

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

  .page-tin-tuc__cta-container {
    flex-direction: column;
    gap: 30px;
  }

  .page-tin-tuc__cta-content {
    text-align: center;
  }

  .page-tin-tuc__cta-buttons {
    justify-content: center;
  }

  .page-tin-tuc__cta-image {
    width: 100%;
    max-width: 500px;
    height: auto;
  }

  .page-tin-tuc__cta-image img {
    height: auto;
  }
}

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

  .page-tin-tuc__hero-section {
    margin-bottom: 30px;
  }

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

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

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

  .page-tin-tuc__news-grid {
    grid-template-columns: 1fr; /* Single column for news cards */
    gap: 25px;
  }

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

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

  .page-tin-tuc__in-depth-analysis, 
  .page-tin-tuc__platform-updates {
    padding: 40px 0;
  }

  .page-tin-tuc__content-grid {
    grid-template-columns: 1fr; /* Single column for content blocks */
    gap: 25px;
  }

  .page-tin-tuc__content-subtitle {
    font-size: 20px;
  }

  .page-tin-tuc__text-block {
    padding: 25px;
  }

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

  .page-tin-tuc__cta-title {
    font-size: clamp(22px, 6.5vw, 32px);
  }

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

  .page-tin-tuc__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
  }

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

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

  /* Mobile button adaptation */
  .page-tin-tuc__btn-primary,
  .page-tin-tuc__btn-secondary,
  .page-tin-tuc a[class*="button"],
  .page-tin-tuc a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-tin-tuc__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important; /* Ensure wrapping if not column */
  }
}