.page-news {
  color: #ffffff; /* Sẽ sử dụng màu chữ sáng trên nền tối */
  background-color: #0a0a0a; /* Nền body tối */
}

.page-news__hero-section {
  position: relative;
  padding-top: 0; /* Giả định shared.css đã thiết lập padding-top cho body */
  padding-bottom: 60px;
  background-color: #0A2463;
  color: #ffffff;
  text-align: center;
}

.page-news__hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.page-news__hero-text {
  max-width: 800px;
}

.page-news__hero-title {
  font-size: 42px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #FFD700;
  line-height: 1.2;
}

.page-news__hero-description {
  font-size: 18px;
  line-height: 1.6;
  color: #f0f0f0;
}

.page-news__hero-image {
  width: 100%;
  max-width: 900px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

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

.page-news__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #FFD700;
}

.page-news__latest-articles-section {
  padding: 80px 0;
  background-color: #0a0a0a;
}

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

.page-news__article-card {
  background: #1a1a1a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

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

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

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

.page-news__article-summary {
  font-size: 15px;
  color: #cccccc;
  line-height: 1.5;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Giới hạn 3 dòng */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

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

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

.page-news__pagination-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #1a1a1a;
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease, color 0.3s ease;
}

.page-news__pagination-link:hover,
.page-news__pagination-link.active {
  background: #FFD700;
  color: #0A2463;
}

.page-news__categories-section {
  padding: 80px 0;
  background-color: #0A2463;
}

.page-news__categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
}

.page-news__category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #1a1a1a;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: #ffffff;
  padding: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-news__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.page-news__category-card img {
  width: 100%;
  
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
}

.page-news__category-name {
  font-size: 18px;
  font-weight: bold;
  color: #FFD700;
  text-align: center;
}

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

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

/* FAQ容器样式 */
.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background: #1a1a1a;
  border: 1px solid #333333;
}

/* FAQ mặc định - Ẩn câu trả lời */
.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: #cccccc;
  background-color: #1a1a1a;
}

/* FAQ trạng thái mở rộng - 🚨 Sử dụng!important và max-height đủ lớn */
.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-color: #1a1a1a;
  border-top: 1px solid #333333;
}

/* Kiểu câu hỏi */
.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #0A2463;
  border: 1px solid #0A2463;
  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: #1A3B7E; /* Màu đậm hơn khi hover */
  border-color: #1A3B7E;
}

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

/* Kiểu tiêu đề câu hỏi */
.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; /* Ngăn chặn thẻ h3 chặn sự kiện click */
}

/* Biểu tượng chuyển đổi */
.page-news__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  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 click */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-news__faq-item.active .page-news__faq-toggle {
  color: #ffffff;
  transform: rotate(45deg);
}

.page-news__floating-cta {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.page-news__btn-register,
.page-news__btn-login {
  display: block;
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  text-align: center;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

.page-news__btn-register {
  background-color: #FFD700;
  color: #0A2463;
}

.page-news__btn-register:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

.page-news__btn-login {
  background-color: #0A2463;
  color: #ffffff;
  border: 1px solid #FFD700;
}

.page-news__btn-login:hover {
  background-color: #1A3B7E;
  transform: translateY(-2px);
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-news__hero-title {
    font-size: 36px;
  }

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

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

  .page-news__articles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

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

  .page-news__article-summary {
    font-size: 14px;
  }

  .page-news__categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-news__category-name {
    font-size: 16px;
  }

  .page-news__faq-question h3 {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    padding-top: 0 !important; /* Đảm bảo không có padding từ header nếu shared đã xử lý */
    padding-bottom: 40px;
  }

  .page-news__hero-container {
    padding: 0 15px;
    gap: 20px;
  }

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

  .page-news__hero-description {
    font-size: 15px;
    line-height: 1.5;
  }

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

  .page-news__latest-articles-section,
  .page-news__categories-section,
  .page-news__faq-section {
    padding: 50px 0;
  }

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

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

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

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

  .page-news__article-summary {
    font-size: 13px;
    -webkit-line-clamp: 4;
  }

  .page-news__pagination {
    margin-top: 30px;
    gap: 8px;
  }

  .page-news__pagination-link {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .page-news__categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .page-news__category-card img {
    
  }

  .page-news__category-name {
    font-size: 15px;
  }

  .page-news__faq-list {
    padding: 0;
  }

  .page-news__faq-item {
    margin-bottom: 10px;
  }

  .page-news__faq-question {
    padding: 15px 20px;
  }

  .page-news__faq-question h3 {
    font-size: 15px;
  }

  .page-news__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }

  .page-news__faq-item.active .page-news__faq-answer {
    padding: 15px 20px !important;
  }

  .page-news__floating-cta {
    bottom: 15px;
    right: 15px;
    gap: 8px;
  }

  .page-news__btn-register,
  .page-news__btn-login {
    padding: 10px 20px;
    font-size: 14px;
  }

  /* General image and container responsive rules */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-news__hero-image img,
  .page-news__article-image img,
  .page-news__category-card img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-news__hero-container,
  .page-news__latest-articles-section .page-news__container,
  .page-news__categories-section .page-news__container,
  .page-news__faq-section .page-news__container,
  .page-news__article-card,
  .page-news__category-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Button responsive rules */
  .page-news__btn-register,
  .page-news__btn-login,
  .page-news a[class*="button"],
  .page-news a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-news__floating-cta {
    flex-direction: column; /* Ensure vertical stacking for floating CTAs */
    align-items: flex-end;
  }
}