.page-news {
  color: #333333; /* Default dark text for light body background */
  background-color: var(--secondary-color); /* Matches body background */
  padding-top: var(--header-offset, 120px); /* Ensure content is not covered by fixed header */
}

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

.page-news__main-banner {
  background: linear-gradient(135deg, #26A9E0, #FFFFFF);
  padding: 60px 0;
  text-align: center;
  margin-bottom: 40px;
}

.page-news__main-title {
  font-size: 38px;
  font-weight: bold;
  color: #FFFFFF;
  margin-bottom: 20px;
  line-height: 1.3;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-news__description {
  font-size: 18px;
  color: #f0f0f0;
  margin-bottom: 30px;
  line-height: 1.6;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-news__banner-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.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: 20px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

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

.page-news__section-title {
  font-size: 32px;
  font-weight: bold;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  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: #26A9E0;
  border-radius: 2px;
}

.page-news__articles-section {
  padding: 40px 0;
}

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

.page-news__article-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  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 30px rgba(0, 0, 0, 0.15);
}

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

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

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

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

.page-news__article-category {
  display: inline-block;
  background: #26A9E0;
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 15px;
  text-transform: uppercase;
}

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

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

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

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

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

.page-news__read-more-link {
  display: inline-block;
  color: #26A9E0;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-news__read-more-link:hover {
  color: #1a7fb8;
  text-decoration: underline;
}

.page-news__faq-section {
  padding: 60px 0;
  background-color: #f9f9f9; /* Slightly off-white for contrast */
  margin-top: 40px;
}

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

/* FAQ容器样式 */
.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  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 25px;
  opacity: 0;
  color: #555555;
  font-size: 16px;
  line-height: 1.6;
}

/* FAQ展开状态 - 🚨 Sử dụng!important và đủ lớn max-height đảm bảo có thể mở rộng */
.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 25px !important;
  opacity: 1;
  background: #fdfdfd;
  border-radius: 0 0 8px 8px;
}

/* Vấn đề phong cách */
.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  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-item.active .page-news__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-color: #26A9E0;
}

.page-news__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

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

/* Vấn đề tiêu đề phong cách */
.page-news__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #333333;
  pointer-events: none; /* Ngăn h3 tag chặn sự kiện click */
}

/* Chuyển đổi biểu tượng */
.page-news__faq-toggle {
  font-size: 26px;
  font-weight: bold;
  line-height: 1;
  color: #26A9E0;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Ngăn biểu tượng chặn sự kiện click */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #e6f7ff; /* Light background for toggle */
}

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

/* ------------------ Responsive Design ------------------ */
@media (max-width: 1024px) {
  .page-news__main-title {
    font-size: 32px;
  }
  .page-news__description {
    font-size: 16px;
  }
  .page-news__section-title {
    font-size: 28px;
  }
  .page-news__article-title {
    font-size: 20px;
  }
  .page-news__article-summary {
    font-size: 15px;
  }
  .page-news__faq-question h3 {
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  .page-news {
    padding-top: var(--header-offset, 120px) !important; /* Mobile padding-top */
  }
  .page-news__container {
    padding: 15px;
  }
  .page-news__main-banner {
    padding: 40px 0;
  }
  .page-news__main-title {
    font-size: 28px;
    margin-bottom: 15px;
  }
  .page-news__description {
    font-size: 15px;
    margin-bottom: 25px;
  }
  .page-news__banner-image img {
    border-radius: 8px;
  }
  .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__articles-section {
    padding: 30px 0;
  }
  .page-news__section-title {
    font-size: 24px;
    margin-bottom: 30px;
  }
  .page-news__articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-news__article-image {
    height: 180px;
  }
  .page-news__article-content {
    padding: 20px;
  }
  .page-news__article-category {
    font-size: 12px;
    padding: 5px 10px;
    margin-bottom: 10px;
  }
  .page-news__article-title {
    font-size: 18px;
    margin-bottom: 8px;
  }
  .page-news__article-meta {
    font-size: 13px;
    margin-bottom: 10px;
  }
  .page-news__article-summary {
    font-size: 14px;
    margin-bottom: 15px;
  }

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

  /* Ensure all images are responsive */
  .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__main-banner,
  .page-news__articles-section,
  .page-news__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-news__article-card {
    padding-left: 0;
    padding-right: 0;
  }
  .page-news__articles-grid {
    padding-left: 0;
    padding-right: 0;
  }
  .page-news__main-banner .page-news__container,
  .page-news__articles-section .page-news__container,
  .page-news__faq-section .page-news__container {
    padding-left: 0;
    padding-right: 0;
  }

}

@media (max-width: 480px) {
  .page-news__main-title {
    font-size: 24px;
  }
  .page-news__description {
    font-size: 14px;
  }
  .page-news__cta-button {
    font-size: 16px;
    padding: 10px 25px;
  }
  .page-news__section-title {
    font-size: 22px;
  }
  .page-news__article-title {
    font-size: 16px;
  }
  .page-news__faq-question h3 {
    font-size: 15px;
  }
}