.page-news {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: var(--secondary-color, #FFFFFF); /* Body background is light */
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

.page-news__section-title {
  font-size: 36px;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  position: relative;
  padding-bottom: 15px;
}

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

/* Hero Banner for News Page */
.page-news__hero-banner {
  background: linear-gradient(135deg, #26A9E0, #FFFFFF);
  padding: 80px 0;
  text-align: center;
  color: #FFFFFF;
  margin-bottom: 50px;
}

.page-news__main-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #FFFFFF;
  line-height: 1.2;
}

.page-news__intro-text {
  font-size: 20px;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}

.page-news__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #EA7C07; /* Login color for CTA */
  color: #FFFFFF;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-news__cta-button:hover {
  background: #d46a00;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Featured Articles */
.page-news__featured-articles {
  padding: 60px 0;
  background-color: #f8f8f8;
}

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

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

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

.page-news__article-image {
  width: 100%;
  height: 250px;
  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: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.3;
}

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

.page-news__article-title a:hover {
  color: #1a7ea1;
  text-decoration: underline;
}

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

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

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

/* Latest News List */
.page-news__latest-news {
  padding: 60px 0;
  background-color: #FFFFFF;
}

.page-news__articles-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.page-news__list-item {
  display: flex;
  background: #FFFFFF;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-news__list-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.page-news__list-image {
  width: 300px;
  height: 200px;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

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

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

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

.page-news__list-title a:hover {
  color: #1a7ea1;
  text-decoration: underline;
}

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

.page-news__list-excerpt {
  font-size: 16px;
  color: #555555;
  margin-bottom: 20px;
}

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

.page-news__pagination-link {
  display: inline-block;
  padding: 10px 18px;
  margin: 0 5px;
  border: 1px solid #26A9E0;
  border-radius: 5px;
  color: #26A9E0;
  text-decoration: none;
  transition: all 0.3s ease;
}

.page-news__pagination-link:hover,
.page-news__pagination-link--active {
  background-color: #26A9E0;
  color: #FFFFFF;
}

/* CTA Section */
.page-news__cta-section {
  padding: 80px 0;
  background-color: #26A9E0; /* Primary color as background */
  text-align: center;
  color: #FFFFFF;
  margin-top: 50px;
}

.page-news__cta-title {
  font-size: 40px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #FFFFFF;
}

.page-news__cta-description {
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto 30px auto;
  color: #f0f0f0;
}

.page-news__cta-button--dark {
  background: #EA7C07;
  color: #FFFFFF;
}

.page-news__cta-button--dark:hover {
  background: #d46a00;
}

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

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

/* FAQ容器样式 */
.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* 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 20px;
  opacity: 0;
  background: #fdfdfd;
  color: #555555;
  font-size: 16px;
}

/* 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 !important;
  opacity: 1;
  background: #fdfdfd;
  border-radius: 0 0 8px 8px;
}

/* 问题样式 */
.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  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;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* 防止h3标签阻止点击事件 */
  color: #333333;
}

/* 切换图标 */
.page-news__faq-toggle {
  font-size: 28px;
  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: 32px;
  height: 32px;
}

.page-news__faq-item.active .page-news__faq-toggle {
  color: #26A9E0;
  transform: rotate(45deg); /* Change to X or rotate */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__articles-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }

  .page-news__list-item {
    flex-direction: column;
  }

  .page-news__list-image {
    width: 100%;
    height: 250px;
  }
}

@media (max-width: 768px) {
  .page-news {
    font-size: 16px;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px) !important; /* Mobile specific offset */
  }

  .page-news__container {
    padding: 0 15px;
  }

  .page-news__main-title {
    font-size: 36px;
  }

  .page-news__intro-text {
    font-size: 18px;
  }

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

  .page-news__section-title::after {
    width: 60px;
    height: 3px;
  }

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

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

  .page-news__article-card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .page-news__article-image {
    height: 200px;
  }

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

  .page-news__list-item {
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .page-news__list-image {
    width: 100% !important;
    height: 200px !important;
    max-width: 100% !important;
    object-fit: cover;
  }

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

  .page-news__list-title {
    font-size: 18px;
  }

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

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

  /* FAQ Mobile */
  .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;
  }

  /* General image and container rules for mobile */
  .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;
  }
}