/* style/news.css */
/* 
  Màu sắc chính: #1A202C (Đen/Xám đậm)
  Màu sắc phụ: #FFD700 (Vàng kim)
*/

.page-news {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text on light body background */
  background-color: #f8f8f8; /* Light background for the news page content */
  padding-top: var(--header-offset, 120px); /* Fixed Header Offset - Apply to main content area */
}

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

.page-news__section-title {
  font-size: 36px;
  color: #1A202C;
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.page-news__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FFD700;
  border-radius: 2px;
}

.page-news__section-description {
  font-size: 18px;
  color: #666666;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* HERO Section */
.page-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #1A202C, #333d4e); /* Dark gradient for hero */
  color: #ffffff; /* Light text on dark background */
}

.page-news__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-news__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-news__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-news__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-news__main-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #FFD700; /* Gold color for main title */
  line-height: 1.2;
}

.page-news__hero-description {
  font-size: 20px;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #e0e0e0;
}

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

.page-news__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  min-width: 180px; /* Ensure button has a minimum width */
  box-sizing: border-box;
}

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

.page-news__btn-primary:hover {
  background: #e6c200;
  border-color: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.page-news__btn-secondary:hover {
  background: #FFD700;
  color: #1A202C;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Latest Articles Section */
.page-news__latest-articles {
  padding: 80px 0;
  background-color: #ffffff; /* Light background for this section */
  color: #333333;
}

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

.page-news__article-card {
  background: #fdfdfd;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-news__article-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

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

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

.page-news__article-title a {
  color: #1A202C;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__article-title a:hover {
  color: #FFD700;
}

.page-news__article-date {
  font-size: 14px;
  color: #999999;
  margin-bottom: 15px;
}

.page-news__article-summary {
  font-size: 16px;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__read-more {
  display: inline-block;
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  margin-top: auto; /* Push to bottom */
}

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

/* Event Updates Section */
.page-news__event-updates {
  padding: 80px 0;
  background-color: #1A202C; /* Dark background */
  color: #ffffff; /* Light text */
}

.page-news__event-updates .page-news__section-title {
  color: #FFD700; /* Gold title on dark background */
}

.page-news__event-updates .page-news__section-description {
  color: #e0e0e0;
}

.page-news__event-updates .page-news__section-title::after {
  background-color: #FFD700;
}

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

.page-news__event-item {
  background: #2a3447; /* Slightly lighter dark background for cards */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

.page-news__event-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

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

.page-news__event-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

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

.page-news__event-title a:hover {
  color: #ffffff;
}

.page-news__event-date {
  font-size: 15px;
  color: #cccccc;
  margin-bottom: 15px;
}

.page-news__event-summary {
  font-size: 16px;
  color: #e0e0e0;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__event-item .page-news__read-more {
  color: #FFD700;
}

.page-news__event-item .page-news__read-more:hover {
  color: #ffffff;
}

/* Guides & Tips Section */
.page-news__guides-tips {
  padding: 80px 0;
  background-color: #f0f2f5; /* Light background */
  color: #333333;
}

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

.page-news__guide-card {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-news__guide-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-news__guide-card img {
  width: 100%;
  
  object-fit: cover;
  display: block;
}

.page-news__guide-title {
  font-size: 20px;
  font-weight: 700;
  padding: 20px 20px 10px;
  line-height: 1.3;
}

.page-news__guide-title a {
  color: #1A202C;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__guide-title a:hover {
  color: #FFD700;
}

.page-news__guide-summary {
  font-size: 15px;
  color: #555555;
  padding: 0 20px 20px;
  flex-grow: 1;
}

.page-news__guide-card .page-news__read-more {
  padding: 0 20px 20px;
  margin-top: auto;
}

/* Important Announcements Section */
.page-news__important-announcements {
  padding: 80px 0;
  background-color: #1A202C; /* Dark background */
  color: #ffffff; /* Light text */
}

.page-news__important-announcements .page-news__section-title {
  color: #FFD700;
}

.page-news__important-announcements .page-news__section-description {
  color: #e0e0e0;
}

.page-news__important-announcements .page-news__section-title::after {
  background-color: #FFD700;
}

.page-news__announcements-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 20px;
}

.page-news__announcement-item {
  background: #2a3447;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.page-news__announcement-item:hover {
  transform: translateY(-3px);
}

.page-news__announcement-item a {
  font-size: 20px;
  font-weight: bold;
  color: #FFD700;
  text-decoration: none;
  display: block;
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.page-news__announcement-item a:hover {
  color: #ffffff;
}

.page-news__announcement-item p {
  font-size: 16px;
  color: #e0e0e0;
  margin: 0;
}


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

.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, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.page-news__faq-item.active .page-news__faq-answer {
  max-height: 2000px !important; /* 🚨 使用!important确保优先级，值足够大以容纳任何内容 */
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #333333; /* Ensure dark text on light background */
}

/* 问题样式 */
.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  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: #f5f5f5;
  border-color: #d0d0d0;
}

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

/* 问题标题样式 */
.page-news__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px; /* Slightly larger for better readability */
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* 防止h3标签阻止点击事件 */
  color: #1A202C; /* Dark text for question */
}

/* 切换图标 */
.page-news__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  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: 28px;
  height: 28px;
}

.page-news__faq-item.active .page-news__faq-toggle {
  color: #FFD700; /* Gold color when active */
}

/* Background color specific classes for contrast assurance */
.page-news__dark-bg {
  background-color: #1A202C;
  color: #ffffff;
}

.page-news__light-bg {
  background-color: #ffffff;
  color: #333333;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__main-title {
    font-size: 42px;
  }
  .page-news__hero-description {
    font-size: 18px;
  }
  .page-news__section-title {
    font-size: 32px;
  }
  .page-news__section-description {
    font-size: 16px;
  }
  .page-news__articles-grid,
  .page-news__events-list,
  .page-news__guides-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  /* Fixed Header Offset - Mobile */
  .page-news {
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }

  .page-news__container {
    padding: 15px;
  }

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

  .page-news__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

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

  .page-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-news__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 16px;
  }

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

  .page-news__section-description {
    font-size: 15px;
    margin-bottom: 30px;
  }

  .page-news__latest-articles,
  .page-news__event-updates,
  .page-news__guides-tips,
  .page-news__important-announcements,
  .page-news__faq-section {
    padding: 50px 0;
  }

  .page-news__articles-grid,
  .page-news__events-list,
  .page-news__guides-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-news__article-card img,
  .page-news__event-item img,
  .page-news__guide-card img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-height: 200px; /* Ensure images are not too small */
    object-fit: cover;
  }

  .page-news__article-card,
  .page-news__event-item,
  .page-news__guide-card,
  .page-news__announcement-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0; /* Reset card padding for mobile, content has its own padding */
  }

  .page-news__article-content,
  .page-news__event-content,
  .page-news__guide-title,
  .page-news__guide-summary,
  .page-news__guide-card .page-news__read-more,
  .page-news__announcement-item {
    padding: 15px; /* Re-apply internal padding for card content */
  }

  .page-news__article-title,
  .page-news__event-title,
  .page-news__guide-title {
    font-size: 18px;
  }

  .page-news__article-summary,
  .page-news__event-summary,
  .page-news__guide-summary,
  .page-news__announcement-item p {
    font-size: 14px;
  }
  
  /* FAQ mobile specific styles */
  .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: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-news__faq-answer {
    padding: 0 15px;
  }
  
  .page-news__faq-item.active .page-news__faq-answer {
    padding: 15px !important;
  }
}