/* style/news.css */
.page-news {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is dark, so text should be light */
  background-color: #000000; /* Ensure main content area also has dark background */
}

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

/* Fixed navigation bar spacing for the first content module */
.page-news__hero-banner {
  padding-top: 10px; /* Space for fixed header */
  margin-top: 0; /* No margin-top */
  padding-bottom: 40px;
  background: linear-gradient(135deg, #0d0d0d, #1a1a1a);
  text-align: center;
}

.page-news__main-title {
  font-size: 3.2em;
  color: #FFD700;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-news__intro-text {
  font-size: 1.1em;
  color: #e0e0e0;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

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

.page-news__btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 1.05em;
  white-space: nowrap;
}

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

.page-news__btn--primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.page-news__btn--secondary {
  background-color: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-news__btn--secondary:hover {
  background-color: #FFD700;
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.page-news__section-title {
  font-size: 2.2em;
  color: #FFD700;
  text-align: center;
  margin: 60px 0 40px 0;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-news__featured-article {
  padding: 60px 0;
  background-color: #0a0a0a;
}

.page-news__article-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%; /* Ensure cards in grid have same height */
}

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

.page-news__article-card--featured {
  flex-direction: row;
  align-items: center;
}

.page-news__article-card--featured .page-news__article-image {
  flex: 1;
  min-width: 40%;
  max-height: 400px;
}

.page-news__article-card--featured .page-news__article-content {
  flex: 1.5;
  padding: 30px;
}

.page-news__article-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-news__article-card--featured .page-news__article-link {
  flex-direction: row;
}

.page-news__article-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency in grid */
  overflow: hidden;
}

.page-news__article-card--featured .page-news__article-image {
  height: 100%;
}

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

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

.page-news__article-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-news__article-title {
  font-size: 1.5em;
  color: #FFD700;
  margin-top: 0;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-news__article-excerpt {
  font-size: 1em;
  color: #cccccc;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-news__article-date {
  font-size: 0.85em;
  color: #999999;
  display: block;
  margin-top: auto;
  margin-bottom: 5px;
}

.page-news__read-more {
  color: #FFD700;
  font-weight: bold;
  display: inline-block;
  margin-top: 10px;
}

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

.page-news__recent-articles {
  padding: 60px 0;
  background-color: #000000;
}

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

.page-news__pagination {
  display: flex;
  justify-content: center;
  margin-top: 50px;
  gap: 10px;
}

.page-news__pagination-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 1px solid #FFD700;
}

.page-news__pagination-item:hover,
.page-news__pagination-item.active {
  background-color: #FFD700;
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(255, 215, 0, 0.4);
}

.page-news__cta-section {
  padding: 80px 0;
  background: linear-gradient(45deg, #FFD700, #a08000);
  text-align: center;
  color: #000000; /* Dark text on light background */
}

.page-news__section-title--cta {
  color: #000000;
  text-shadow: none;
  margin-top: 0;
  margin-bottom: 20px;
}

.page-news__cta-text {
  font-size: 1.2em;
  max-width: 700px;
  margin: 0 auto 40px auto;
  color: #333333;
}

.page-news__cta-section .page-news__btn--primary {
  background-color: #000000;
  color: #FFD700;
  border-color: #000000;
}

.page-news__cta-section .page-news__btn--primary:hover {
  background-color: #333333;
  border-color: #333333;
  color: #FFD700;
}

.page-news__cta-section .page-news__btn--secondary {
  background-color: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

.page-news__cta-section .page-news__btn--secondary:hover {
  background-color: #f0f0f0;
  border-color: #f0f0f0;
  color: #000000;
}

.page-news__faq-section {
  padding: 60px 0;
  background-color: #0a0a0a;
}

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

/* FAQ容器样式 */
.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

/* FAQ默认状态 - 答案隐藏 */
.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;
  padding: 0 15px;
  opacity: 0;
  background: #1a1a1a; /* Darker background for answer */
  color: #cccccc;
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.page-news__faq-item.active .page-news__faq-answer {
  max-height: 2000px !important; /* 🚨 Sử dụng!important để đảm bảo độ ưu tiên, giá trị đủ lớn để chứa mọi nội dung */
  padding: 20px 15px !important;
  opacity: 1;
  border-radius: 0 0 5px 5px;
}

/* Vấn đề kiểu dáng */
.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid #FFD700;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-news__faq-question:hover {
  background: rgba(255, 215, 0, 0.2);
  border-color: #e6c200;
}

.page-news__faq-question:active {
  background: rgba(255, 215, 0, 0.3);
}

/* Kiểu tiêu đề câu hỏi */
.page-news__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Ngăn chặn thẻ h3 chặn sự kiện nhấp chuột */
  color: #FFD700; /* Màu vàng cho văn bản câu hỏi */
}

/* Chuyển đổi biểu tượng */
.page-news__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700; /* Màu vàng cho biểu tượng chuyển đổi */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Ngăn chặn biểu tượng chặn sự kiện nhấp chuột */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-news__faq-item.active .page-news__faq-toggle {
  color: #ffffff;
  transform: rotate(45deg); /* Ví dụ cho '-' */
}

.page-news__footer {
  padding: 30px 20px;
  text-align: center;
  background-color: #1a1a1a;
  color: #999999;
  border-top: 1px solid #333333;
}

.page-news__copyright {
  margin: 0;
  font-size: 0.9em;
}

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

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

  .page-news__article-card--featured {
    flex-direction: column;
  }
}