/* style/news.css */
/* CSS Reset and Base Styles (inherited from shared.css, so only page-specific styles here) */

/* General Page Styles */
.page-news {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Default text color for dark body background */
  line-height: 1.6;
  background-color: #121212; /* Ensure consistency with body background */
}

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

.page-news__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #E0B400; /* Auxiliary color for titles */
  text-align: center;
  margin-bottom: 20px;
  padding-top: 40px;
}

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

/* Hero Banner Section */
.page-news__hero-banner {
  position: relative;
  padding: var(--header-offset, 120px) 0 60px 0; /* Apply header offset here if shared.css doesn't do it for body */
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0A2342 0%, #1a3a63 100%); /* Dark gradient background */
}

.page-news__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.page-news__hero-description {
  font-size: 20px;
  color: #ffffff;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__hero-image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.15;
  z-index: 1;
}

.page-news__hero-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Latest Articles Section */
.page-news__latest-articles {
  padding: 80px 0;
  background-color: #121212; /* Dark background */
  color: #ffffff;
}

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

.page-news__article-card {
  background-color: #0A2342; /* Main brand color for card background */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

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

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

.page-news__article-title {
  font-size: 22px;
  font-weight: 700;
  color: #E0B400; /* Gold for article titles */
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-news__article-summary {
  font-size: 16px;
  color: #f0f0f0;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Limit to 3 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-news__read-more {
  display: inline-block;
  font-size: 16px;
  font-weight: 600;
  color: #E0B400;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.page-news__pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.page-news__pagination-item {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #0A2342;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-news__pagination-item:hover {
  background-color: #E0B400;
  color: #0A2342;
}

.page-news__pagination-item--active {
  background-color: #E0B400;
  color: #0A2342;
  cursor: default;
}

.page-news__pagination-item--active:hover {
  background-color: #E0B400;
  color: #0A2342;
}

/* Call to Action Section */
.page-news__cta-section {
  padding: 80px 0;
  background: #0A2342; /* Main brand color */
  text-align: center;
  color: #ffffff;
}

.page-news__cta-title {
  font-size: 38px;
  font-weight: 700;
  color: #E0B400;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-news__cta-description {
  font-size: 18px;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background-color: #E0B400; /* Auxiliary color for button */
  color: #0A2342; /* Dark text for light button */
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__cta-button:hover {
  background-color: #ffd700;
  transform: translateY(-3px);
}

/* FAQ Section */
.page-news__faq-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
  color: #ffffff;
}

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

/* FAQ容器样式 */
.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #0A2342; /* Main brand color for FAQ item */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* 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 25px;
  opacity: 0;
  color: #f0f0f0;
}

/* 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 */
  padding: 20px 25px !important;
  opacity: 1;
  background: #1a3a63; /* Slightly lighter dark blue for answer background */
  border-radius: 0 0 8px 8px;
}

/* 问题样式 */
.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: #0A2342;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
  position: relative;
}

.page-news__faq-item.active .page-news__faq-question {
  background: #1a3a63;
}

.page-news__faq-question:hover {
  background: #1a3a63;
}

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

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

.page-news__faq-item.active .page-news__faq-toggle {
  color: #ffd700;
  transform: rotate(45deg); /* Rotate for minus sign effect */
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-news__section-title {
    font-size: 32px;
  }
  .page-news__hero-title {
    font-size: 40px;
  }
  .page-news__hero-description {
    font-size: 18px;
  }
  .page-news__articles-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
  .page-news__article-title {
    font-size: 20px;
  }
  .page-news__cta-title {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .page-news {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-news__container {
    padding: 0 15px;
  }
  .page-news__section-title {
    font-size: 28px;
    padding-top: 30px;
  }
  .page-news__section-subtitle {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-news__hero-banner {
    padding: var(--header-offset, 80px) 0 40px 0; /* Adjust for mobile header offset */
  }
  .page-news__hero-title {
    font-size: 32px;
  }
  .page-news__hero-description {
    font-size: 16px;
  }
  .page-news__latest-articles {
    padding: 60px 0;
  }
  .page-news__articles-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-news__article-image {
    height: 180px;
  }
  .page-news__article-title {
    font-size: 18px;
  }
  .page-news__article-summary {
    font-size: 15px;
  }
  .page-news__pagination {
    gap: 10px;
  }
  .page-news__pagination-item {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }
  .page-news__cta-section {
    padding: 60px 0;
  }
  .page-news__cta-title {
    font-size: 28px;
  }
  .page-news__cta-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-news__cta-button {
    padding: 12px 30px;
    font-size: 18px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-news__faq-section {
    padding: 60px 0;
  }
  .page-news__faq-question {
    padding: 15px 20px;
  }
  .page-news__faq-question h3 {
    font-size: 16px;
  }
  .page-news__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }
  .page-news__faq-item.active .page-news__faq-answer {
    padding: 15px 20px !important;
  }

  /* Image responsiveness for all images */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__articles-grid,
  .page-news__article-card,
  .page-news__hero-banner,
  .page-news__cta-section,
  .page-news__faq-section,
  .page-news__faq-list,
  .page-news__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}