/* style/news.css */
/* body đã padding-top: var(--header-offset) từ shared.css; trang này không cần thêm */

.page-news {
  font-family: Arial, sans-serif;
  color: #333333; /* Mặc định chữ tối trên nền sáng */
  line-height: 1.6;
}

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

.page-news__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 0 60px 0; /* body đã xử lý padding-top, chỉ cần 10px cho khoảng cách nhỏ */
  background-color: #26A9E0;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.page-news__hero-image-wrapper {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-news__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  min-height: 200px; /* Đảm bảo kích thước tối thiểu */
}

.page-news__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin-top: 40px;
  padding: 0 20px;
}

.page-news__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-news__subtitle {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-news__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #26A9E0;
}

/* Video Section */
.page-news__video-section {
  padding: 60px 0;
  background-color: #ffffff;
  text-align: center;
}

.page-news__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin: 0 auto 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.page-news__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  min-width: 200px;
  min-height: 200px;
}

.page-news__video-description {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #555555;
}

/* Featured News */
.page-news__featured-news {
  padding: 80px 0;
  background-color: #f8f8f8;
}

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

.page-news__news-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 400px; /* Đảm bảo chiều cao tối thiểu cho card */
}

.page-news__news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.page-news__card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

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

.page-news__card-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
}

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

.page-news__card-title a:hover {
  color: #007bff;
}

.page-news__card-date {
  font-size: 0.9rem;
  color: #888888;
  margin-bottom: 15px;
}

.page-news__card-description {
  font-size: 1rem;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__read-more {
  color: #EA7C07;
  text-decoration: none;
  font-weight: 600;
  align-self: flex-start;
  transition: color 0.3s ease;
}

.page-news__read-more:hover {
  color: #d16600;
}

/* Latest News */
.page-news__latest-news {
  padding: 80px 0;
  background-color: #ffffff;
}

.page-news__news-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.page-news__list-item {
  display: flex;
  align-items: flex-start;
  gap: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid #eeeeee;
}

.page-news__list-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.page-news__list-image {
  width: 250px;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  min-width: 200px;
  min-height: 200px;
}

.page-news__list-content {
  flex-grow: 1;
}

.page-news__list-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
}

.page-news__list-title a {
  color: #333333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__list-title a:hover {
  color: #26A9E0;
}

.page-news__list-date {
  font-size: 0.85rem;
  color: #888888;
  margin-bottom: 12px;
}

.page-news__list-description {
  font-size: 1rem;
  color: #555555;
}

.page-news__view-all {
  text-align: center;
  margin-top: 40px;
}

/* Guides and Updates */
.page-news__guides-updates {
  padding: 80px 0;
  background-color: #26A9E0;
  color: #ffffff;
  text-align: center;
}

.page-news__guides-updates .page-news__section-title {
  color: #ffffff;
}

.page-news__text-block {
  font-size: 1.1rem;
  max-width: 900px;
  margin: 0 auto 25px auto;
  color: #f0f0f0;
}

/* CTA Section */
.page-news__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__btn-primary {
  background-color: #EA7C07;
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-news__btn-primary:hover {
  background-color: #d16600;
  border-color: #d16600;
}

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

.page-news__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1a7bb0;
  border-color: #1a7bb0;
}

/* FAQ Section */
.page-news__faq-section {
  padding: 80px 0;
  background-color: #ffffff;
}

.page-news__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-news__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #eeeeee;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  background-color: #f0f0f0;
  border-bottom: 1px solid #eeeeee;
  list-style: none; /* For details/summary */
}

.page-news__faq-item[open] > .page-news__faq-question {
  border-bottom: 1px solid #dddddd;
}

.page-news__faq-question::-webkit-details-marker {
  display: none;
}

.page-news__faq-qtext {
  flex-grow: 1;
}

.page-news__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 15px;
  color: #26A9E0;
}

.page-news__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  color: #555555;
  background-color: #ffffff;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__hero-content {
    margin-top: 20px;
  }

  .page-news__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

  .page-news__subtitle {
    font-size: 1.1rem;
  }

  .page-news__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  }

  .page-news__card-title {
    font-size: 1.25rem;
  }

  .page-news__list-title {
    font-size: 1.15rem;
  }
}

@media (max-width: 768px) {
  .page-news__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-news__hero-section {
    padding: 10px 0 40px 0;
  }

  .page-news__hero-image {
    max-height: 300px;
  }

  .page-news__hero-content {
    margin-top: 20px;
  }

  .page-news__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .page-news__subtitle {
    font-size: 1rem;
  }

  .page-news__video-section,
  .page-news__featured-news,
  .page-news__latest-news,
  .page-news__guides-updates,
  .page-news__faq-section {
    padding: 40px 0;
  }

  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-news video,
  .page-news__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-news__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

  .page-news__news-card {
    min-height: auto;
  }

  .page-news__list-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .page-news__list-image {
    width: 100%;
    height: auto;
    max-width: 300px;
    margin-bottom: 15px;
  }

  .page-news__list-content {
    width: 100%;
  }

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

  .page-news__btn-primary,
  .page-news__btn-secondary {
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
  }

  .page-news__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }

  .page-news__faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-news__main-title {
    font-size: clamp(1.5rem, 7vw, 2.2rem);
  }

  .page-news__section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .page-news__card-image {
    height: 180px;
  }

  .page-news__card-title {
    font-size: 1.15rem;
  }

  .page-news__list-title {
    font-size: 1.05rem;
  }

  .page-news__text-block {
    font-size: 1rem;
  }
}