/* CSS cho trang Tin Tức */

.page-tin-tuc {
  font-family: Arial, sans-serif;
  color: #333333; /* Màu chữ mặc định cho nền sáng */
  background-color: #ffffff; /* Nền trắng mặc định */
}

.page-tin-tuc__hero-section {
  padding-top: 10px; /* Nhỏ hơn so với body padding-top */
  background-color: #f0f8ff;
  text-align: center;
  padding-bottom: 40px;
}

.page-tin-tuc__hero-image {
  max-width: 100%;
  overflow: hidden;
}

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

.page-tin-tuc__hero-content {
  max-width: 900px;
  margin: 20px auto 0;
  padding: 0 15px;
}

.page-tin-tuc__main-title {
  font-size: clamp(28px, 4vw, 48px); /* Sử dụng clamp cho H1 */
  color: #26A9E0;
  margin-bottom: 15px;
  line-height: 1.2;
  font-weight: 700;
}

.page-tin-tuc__description {
  font-size: 18px;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 30px;
}

.page-tin-tuc__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Cho phép xuống dòng trên mobile */
}

.page-tin-tuc__btn-primary,
.page-tin-tuc__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  max-width: 100%; /* Đảm bảo nút không tràn */
  box-sizing: border-box;
  white-space: normal; /* Cho phép chữ xuống dòng */
  word-wrap: break-word;
}

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

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

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

.page-tin-tuc__btn-secondary:hover {
  background-color: #e0f2ff;
  color: #1e87c0;
  border-color: #1e87c0;
}

.page-tin-tuc__section-title {
  font-size: 32px;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-top: 40px;
}

.page-tin-tuc__section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: #26A9E0;
  margin: 15px auto 0;
  border-radius: 2px;
}

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

.page-tin-tuc__section-title--white::after {
  background-color: #ffffff;
}

.page-tin-tuc__latest-news-section {
  padding: 40px 15px;
  max-width: 1200px;
  margin: 0 auto;
}

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

.page-tin-tuc__news-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  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.15);
}

.page-tin-tuc__news-card-image {
  position: relative;
  width: 100%;
  height: 200px; /* 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-date {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: #26A9E0;
  color: #ffffff;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: bold;
}

.page-tin-tuc__news-card-body {
  padding: 20px;
  text-align: left;
}

.page-tin-tuc__news-card-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  min-height: 60px; /* Đảm bảo tiêu đề có đủ không gian */
}

.page-tin-tuc__news-card-title a {
  color: #26A9E0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-tin-tuc__news-card-title a:hover {
  color: #1e87c0;
}

.page-tin-tuc__news-excerpt {
  font-size: 15px;
  color: #666666;
  line-height: 1.5;
  margin-bottom: 15px;
  min-height: 75px; /* Đảm bảo đoạn trích có đủ không gian */
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Giới hạn 3 dòng */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-tin-tuc__read-more {
  display: inline-block;
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
  border-bottom: 2px solid #26A9E0;
  padding-bottom: 2px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.page-tin-tuc__read-more:hover {
  color: #1e87c0;
  border-color: #1e87c0;
}

.page-tin-tuc__read-more--white {
  color: #ffffff;
  border-color: #ffffff;
}

.page-tin-tuc__read-more--white:hover {
  color: #e0f2ff;
  border-color: #e0f2ff;
}

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

.page-tin-tuc__btn-view-all {
  background-color: #EA7C07; /* Màu cam cho nút xem tất cả */
  color: #ffffff;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-tin-tuc__btn-view-all:hover {
  background-color: #c76505;
}

.page-tin-tuc__featured-articles-section {
  background-color: #26A9E0; /* Nền xanh thương hiệu */
  padding: 40px 15px;
  max-width: 100%;
  margin: 0 auto;
}

.page-tin-tuc__article-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-tin-tuc__article-item {
  display: flex;
  flex-direction: column;
  background-color: #3aaee6; /* Màu nền nhẹ hơn cho card */
  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__article-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-tin-tuc__article-thumbnail {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

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

.page-tin-tuc__article-content {
  padding: 20px;
  color: #ffffff;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-tin-tuc__article-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  min-height: 60px;
}

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

.page-tin-tuc__article-title a:hover {
  color: #e0f2ff;
}

.page-tin-tuc__article-excerpt {
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 15px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Giới hạn 3 dòng */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-tin-tuc__content-section {
  padding: 40px 15px;
}

.page-tin-tuc__container {
  max-width: 1000px;
  margin: 0 auto;
  line-height: 1.7;
  font-size: 16px;
}

.page-tin-tuc__text-block {
  margin-bottom: 20px;
  color: #444444;
}

.page-tin-tuc__sub-title {
  font-size: 24px;
  color: #26A9E0;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-tin-tuc__list {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #444444;
}

.page-tin-tuc__list li {
  margin-bottom: 8px;
}

.page-tin-tuc__list li a {
  color: #26A9E0;
  text-decoration: none;
}

.page-tin-tuc__list li a:hover {
  text-decoration: underline;
}

.page-tin-tuc__content-image-wrapper {
  margin: 25px 0;
  text-align: center;
}

.page-tin-tuc__content-image-wrapper img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: block;
  margin: 0 auto;
}

.page-tin-tuc__cta-section {
  background-color: #f0f8ff;
  padding: 40px;
  border-radius: 10px;
  text-align: center;
  margin-top: 50px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.page-tin-tuc__cta-title {
  font-size: 28px;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
}

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

/* Responsive styles */
@media (max-width: 1024px) {
  .page-tin-tuc__news-grid,
  .page-tin-tuc__article-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .page-tin-tuc__main-title {
    font-size: clamp(24px, 6vw, 38px); /* Điều chỉnh kích thước H1 cho mobile */
  }

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

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

  .page-tin-tuc__btn-primary,
  .page-tin-tuc__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-tin-tuc__news-grid,
  .page-tin-tuc__article-list {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-tin-tuc__section-title {
    font-size: 28px;
    padding-top: 30px;
  }

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

  .page-tin-tuc__news-excerpt,
  .page-tin-tuc__article-excerpt {
    font-size: 14px;
    min-height: auto;
  }

  .page-tin-tuc__article-title {
    font-size: 18px;
    min-height: auto;
  }

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

  .page-tin-tuc__sub-title {
    font-size: 20px;
  }

  .page-tin-tuc__cta-title {
    font-size: 24px;
  }

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

  .page-tin-tuc img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-tin-tuc__hero-section,
  .page-tin-tuc__latest-news-section,
  .page-tin-tuc__featured-articles-section,
  .page-tin-tuc__content-section,
  .page-tin-tuc__news-card,
  .page-tin-tuc__article-item,
  .page-tin-tuc__container,
  .page-tin-tuc__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-tin-tuc__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }
}