/* style/news.css */

/* Căn chỉnh cho nội dung không bị che bởi header cố định */
.page-news {
  padding-top: 100px; /* Điều chỉnh dựa trên chiều cao header */
  background-color: #000; /* Body background color is #000 (dark) */
  color: #ffffff; /* Default text color for dark background */
}

@media (max-width: 768px) {
  .page-news {
    padding-top: 80px;
  }
}

/* HERO Banner Section */
.page-news__hero-banner {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(135deg, #0A2463, #3B5998); /* Sử dụng tông màu xanh đậm */
  color: #ffffff;
}

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

.page-news__hero-title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFD700; /* Tiêu đề nổi bật với màu vàng */
}

.page-news__hero-description {
  font-size: 18px;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 30px;
  color: #f0f0f0;
}

/* Nút chính */
.page-news__btn-primary {
  display: inline-block;
  background: #FFD700; /* Màu vàng nổi bật */
  color: #0A2463; /* Chữ màu xanh đậm trên nền vàng */
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
}

.page-news__btn-primary:hover {
  background-color: #e0b800;
  transform: translateY(-3px);
}

/* Latest Articles Section */
.page-news__latest-articles {
  padding: 60px 0;
  background-color: #000; /* Nền tối */
  color: #ffffff;
}

.page-news__section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #FFD700;
}

.page-news__section-title--dark {
  color: #0A2463;
}

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

.page-news__article-card {
  background: rgba(255, 255, 255, 0.08); /* Nền hơi trong suốt */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.3); /* Viền vàng nhẹ */
}

.page-news__article-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
}

.page-news__article-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.page-news__article-image-wrapper {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.page-news__article-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.page-news__article-card:hover .page-news__article-image {
  transform: scale(1.05);
}

.page-news__article-content {
  padding: 25px;
}

.page-news__article-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
  color: #FFD700;
}

.page-news__article-excerpt {
  font-size: 16px;
  line-height: 1.6;
  color: #e0e0e0;
  margin-bottom: 15px;
}

.page-news__article-date {
  font-size: 14px;
  color: #cccccc;
  display: block;
}

.page-news__pagination {
  text-align: center;
  margin-top: 50px;
}

/* Nút phụ */
.page-news__btn-secondary {
  display: inline-block;
  background: transparent;
  color: #FFD700;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  border: 2px solid #FFD700;
}

.page-news__btn-secondary:hover {
  background-color: #FFD700;
  color: #0A2463;
  transform: translateY(-3px);
}

/* Category Filters Section */
.page-news__category-filters {
  padding: 50px 0;
  background-color: #f0f0f0; /* Nền sáng */
  color: #333333;
}

.page-news__filter-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.page-news__filter-btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 1px solid #0A2463;
  color: #0A2463;
  background-color: transparent;
}

.page-news__filter-btn:hover {
  background-color: #0A2463;
  color: #ffffff;
}

.page-news__filter-btn--active {
  background-color: #0A2463;
  color: #ffffff;
  border-color: #0A2463;
}

/* Recent Updates Section */
.page-news__recent-updates {
  padding: 60px 0;
  background-color: #1a1a1a; /* Nền hơi tối hơn */
  color: #ffffff;
}

.page-news__update-list {
  display: grid;
  gap: 25px;
}

.page-news__update-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 215, 0, 0.1);
}

.page-news__update-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #FFD700;
}

.page-news__update-description {
  font-size: 16px;
  line-height: 1.6;
  color: #e0e0e0;
  margin-bottom: 15px;
}

.page-news__update-date {
  font-size: 14px;
  color: #cccccc;
  display: block;
  margin-bottom: 10px;
}

.page-news__read-more {
  color: #FFD700;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-news__read-more:hover {
  color: #e0b800;
  text-decoration: underline;
}

/* Call to Action Section */
.page-news__cta-section {
  padding: 80px 0;
  background: linear-gradient(45deg, #0A2463, #000000); /* Nền gradient từ xanh đậm sang đen */
  text-align: center;
  color: #ffffff;
}

.page-news__cta-content {
  max-width: 900px;
}

.page-news__cta-title {
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 25px;
  color: #FFD700;
}

.page-news__cta-description {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 40px;
  color: #f0f0f0;
}

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

.page-news__btn-primary--large, .page-news__btn-secondary--large {
  padding: 18px 35px;
  font-size: 20px;
}

/* FAQ Section */
.page-news__faq-section {
  padding: 60px 0;
  background-color: #f8f8f8; /* Nền sáng */
  color: #333333;
}

.page-news__faq-list {
  margin-top: 40px;
}

.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
}

.page-news__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 20px;
  opacity: 0;
}

.page-news__faq-item.active .page-news__faq-answer {
  max-height: 2000px !important; /* Sử dụng!important và giá trị lớn */
  padding: 20px !important;
  opacity: 1;
  background: #ffffff; /* Nền trắng cho câu trả lời */
  border-radius: 0 0 8px 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #0A2463; /* Nền xanh đậm cho câu hỏi */
  border: 1px solid #0A2463;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: #ffffff; /* Chữ trắng trên nền xanh đậm */
}

.page-news__faq-question:hover {
  background: #1a3a7a;
  border-color: #1a3a7a;
}

.page-news__faq-question:active {
  background: #051a4a;
}

.page-news__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #ffffff;
}

.page-news__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700; /* Màu vàng cho dấu + */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-news__faq-item.active .page-news__faq-toggle {
  color: #FFD700;
  transform: rotate(180deg);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__hero-title {
    font-size: 38px;
  }

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

@media (max-width: 768px) {
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-news__section,
  .page-news__card,
  .page-news__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-news__hero-banner {
    padding: 60px 0;
  }

  .page-news__hero-title {
    font-size: 30px;
  }

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

  .page-news__btn-primary {
    padding: 12px 25px;
    font-size: 16px;
  }

  .page-news__latest-articles, .page-news__recent-updates, .page-news__cta-section, .page-news__faq-section {
    padding: 40px 0;
  }

  .page-news__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .page-news__article-content {
    padding: 20px;
  }

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

  .page-news__article-excerpt {
    font-size: 15px;
  }

  .page-news__filter-buttons {
    gap: 10px;
  }

  .page-news__filter-btn {
    padding: 10px 20px;
    font-size: 14px;
  }

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

  .page-news__update-description {
    font-size: 15px;
  }

  .page-news__cta-title {
    font-size: 30px;
  }

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

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

  .page-news__btn-primary--large, .page-news__btn-secondary--large {
    width: 100%;
    max-width: 300px;
    padding: 15px 25px;
    font-size: 18px;
  }

  .page-news__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-news__faq-question h3 {
    font-size: 16px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-news__faq-toggle {
    margin-left: 10px;
    width: 28px;
    height: 28px;
    font-size: 24px;
  }
  
  .page-news__faq-answer {
    padding: 0 15px;
  }
  
  .page-news__faq-item.active .page-news__faq-answer {
    padding: 15px !important;
  }
}