.page-tin-tuc {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333;
  background-color: #ffffff;
}

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

/* Hero Carousel Section */
.page-tin-tuc__hero-carousel-section {
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Assuming body padding handles header offset */
  background-color: #017439;
}

.page-tin-tuc__hero-slider {
  position: relative;
  width: 100%;
  height: 500px; /* Fixed height for desktop */
}

.page-tin-tuc__hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-align: center;
}

.page-tin-tuc__hero-slide.is-active {
  opacity: 1;
}

.page-tin-tuc__hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.page-tin-tuc__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
}

.page-tin-tuc__hero-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Using clamp for responsive H1 */
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #ffffff;
  letter-spacing: -1px;
}

.page-tin-tuc__hero-description {
  font-size: clamp(1em, 1.5vw, 1.2em);
  margin-bottom: 25px;
  color: #f0f0f0;
}

.page-tin-tuc__hero-slider-prev,
.page-tin-tuc__hero-slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  border: none;
  padding: 15px;
  cursor: pointer;
  z-index: 3;
  font-size: 20px;
  line-height: 1;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-tin-tuc__hero-slider-prev {
  left: 20px;
}

.page-tin-tuc__hero-slider-next {
  right: 20px;
}

.page-tin-tuc__hero-slider-prev::before {
  content: '‹';
}

.page-tin-tuc__hero-slider-next::before {
  content: '›';
}

/* Section General */
.page-tin-tuc__section-title {
  font-size: 2.5em;
  color: #017439;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-tin-tuc__section-description {
  font-size: 1.1em;
  color: #555555;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Featured News Section */
.page-tin-tuc__featured-news {
  padding: 60px 0;
  background-color: #017439;
  color: #ffffff;
}

.page-tin-tuc__featured-news .page-tin-tuc__section-title {
  color: #ffffff;
}

.page-tin-tuc__featured-news .page-tin-tuc__section-description {
  color: #f0f0f0;
}

.page-tin-tuc__featured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.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 img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-tin-tuc__card-content {
  padding: 20px;
  color: #333333;
}

.page-tin-tuc__card-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-tin-tuc__card-title a {
  color: #017439;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-tin-tuc__card-title a:hover {
  color: #005f2e;
}

.page-tin-tuc__card-meta {
  font-size: 0.9em;
  color: #777777;
  margin-bottom: 15px;
}

.page-tin-tuc__card-excerpt {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
}

/* News Archive / Blog Grid */
.page-tin-tuc__news-archive {
  padding: 60px 0;
  background-color: #f9f9f9;
}

.page-tin-tuc__blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.page-tin-tuc__blog-card {
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-tin-tuc__blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

.page-tin-tuc__blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

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

/* CTA Section */
.page-tin-tuc__cta-section {
  padding: 80px 0;
  background-color: #017439;
  color: #ffffff;
  text-align: center;
}

.page-tin-tuc__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #ffffff;
  font-weight: bold;
}

.page-tin-tuc__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

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

/* Buttons */
.page-tin-tuc__btn-primary,
.page-tin-tuc__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-tin-tuc__btn-primary {
  background-color: #C30808; /* Custom color for register/login */
  color: #FFFF00; /* Custom font color for register/login */
  border: 2px solid #C30808;
}

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

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

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

/* General image rules for content area */
.page-tin-tuc img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Placeholder for guide-box (not used in HTML but required in CSS) */
.page-tin-tuc__guide-box {
  /* Desktop styles */
  padding: 16px 20px 24px;
  background: #f5e6d3;
  border-radius: 4px;
}

.page-tin-tuc__guide-grid {
  /* Desktop styles */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.page-tin-tuc__guide-card {
  /* Desktop styles */
  flex: 0 0 20%;
  max-width: 20%;
}

.page-tin-tuc__guide-card img {
  /* Desktop styles */
  aspect-ratio: 250/350;
  object-fit: contain;
  width: 100%;
  height: auto;
}

.page-tin-tuc__guide-card--pos-1, .page-tin-tuc__guide-card--pos-5 {
  /* Desktop styles */
  padding-top: 50px;
}

.page-tin-tuc__guide-card--pos-2, .page-tin-tuc__guide-card--pos-4 {
  /* Desktop styles */
  padding-top: 25px;
}

/* Placeholder for home-content-box (not used in HTML but required in CSS) */
.page-tin-tuc__home-content-box {
  /* Desktop styles */
  max-width: 91%;
  margin: 0 auto;
  padding: 10px 16px;
  border: 5px solid #3477c9;
  border-radius: 15px;
  box-shadow: 0 0 20px #3477c9;
  height: 700px;
}

.page-tin-tuc__home-content-inner {
  /* Desktop styles */
  height: 100%;
  overflow-y: auto;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-tin-tuc__hero-slider {
    height: 400px;
  }

  .page-tin-tuc__hero-content {
    max-width: 600px;
  }

  .page-tin-tuc__featured-grid {
    grid-template-columns: 1fr;
  }

  .page-tin-tuc__blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-tin-tuc__section-title {
    font-size: 2em;
  }

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

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

  .page-tin-tuc__container {
    padding: 15px;
  }

  /* Top Carousel */
  .page-tin-tuc__hero-carousel-section {
    padding-top: 10px !important;
  }

  .page-tin-tuc__hero-slider {
    height: 300px !important;
  }

  .page-tin-tuc__hero-content {
    max-width: 90% !important;
    padding: 15px !important;
  }

  .page-tin-tuc__hero-title {
    font-size: 1.8em !important;
    margin-bottom: 10px !important;
  }

  .page-tin-tuc__hero-description {
    font-size: 0.9em !important;
    margin-bottom: 15px !important;
  }

  .page-tin-tuc__hero-slider-prev,
  .page-tin-tuc__hero-slider-next {
    padding: 10px !important;
    width: 40px !important;
    height: 40px !important;
    font-size: 18px !important;
    left: 10px !important;
    right: 10px !important;
  }

  /* Featured News Section */
  .page-tin-tuc__featured-news {
    padding: 40px 0 !important;
  }

  .page-tin-tuc__featured-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .page-tin-tuc__news-card img {
    height: 200px !important;
  }

  .page-tin-tuc__card-title {
    font-size: 1.3em !important;
  }

  /* News Archive / Blog Grid */
  .page-tin-tuc__news-archive {
    padding: 40px 0 !important;
  }

  .page-tin-tuc__blog-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .page-tin-tuc__blog-card img {
    
  }

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

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

  .page-tin-tuc__cta-description {
    font-size: 1em !important;
  }

  .page-tin-tuc__cta-buttons {
    flex-direction: column !important;
    gap: 15px !important;
    padding: 0 15px !important;
  }

  /* Buttons */
  .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,
  .page-tin-tuc__button-group,
  .page-tin-tuc__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  /* Generic image rules for mobile */
  .page-tin-tuc img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

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

  /* Placeholder for guide-box mobile styles */
  .page-tin-tuc__guide-box {
    padding: 15px !important;
  }

  .page-tin-tuc__guide-grid {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 8px !important;
  }

  .page-tin-tuc__guide-card {
    padding-top: 0 !important;
    flex: none !important;
    max-width: none !important;
  }

  .page-tin-tuc__guide-card--pos-1,
  .page-tin-tuc__guide-card--pos-2 {
    grid-column: span 3 !important;
  }

  .page-tin-tuc__guide-card--pos-3,
  .page-tin-tuc__guide-card--pos-4,
  .page-tin-tuc__guide-card--pos-5 {
    grid-column: span 2 !important;
  }

  /* Placeholder for home-content-box mobile styles */
  .page-tin-tuc__home-content-box {
    max-width: 100% !important;
    height: auto !important;
    padding: 10px !important;
    border-width: 3px !important;
    box-shadow: none !important;
  }

  .page-tin-tuc__home-content-inner {
    height: auto !important;
    overflow: visible !important;
  }
}