.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #FFFFFF; /* Default body background is white */
}

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

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

.page-news__section-title--white {
  color: #FFFFFF;
}

/* 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;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  background: linear-gradient(135deg, #26A9E0 0%, #007bff 100%); /* Adjusted gradient for better contrast */
  color: #ffffff;
  overflow: hidden; /* Ensure content doesn't overflow */
}

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

.page-news__hero-image {
  width: 100%;
  margin-bottom: 30px;
  max-width: 1000px; /* Limit image width */
}

.page-news__hero-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.3);
}

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

.page-news__hero-title {
  font-size: 48px;
  margin-bottom: 20px;
  font-weight: 700;
  color: #FFFFFF;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}

.page-news__hero-description {
  font-size: 20px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: 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);
  border: none;
}

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

/* Latest Announcements Section */
.page-news__latest-announcements {
  padding: 80px 0;
  background-color: #f9f9f9; /* Light background */
  color: #333333;
}

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

.page-news__announcement-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__announcement-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-news__card-image {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

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

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

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

.page-news__card-title a:hover {
  color: #0056b3;
}

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

.page-news__card-text {
  font-size: 16px;
  color: #555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__read-more-button {
  display: inline-block;
  padding: 10px 25px;
  background: #26A9E0;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 15px;
  font-weight: bold;
  align-self: flex-start;
  transition: background-color 0.3s ease;
}

.page-news__read-more-button:hover {
  background: #0056b3;
}

.page-news__view-all-wrapper {
  text-align: center;
  margin-top: 50px;
}

.page-news__view-all-button {
  display: inline-block;
  padding: 15px 40px;
  background: #26A9E0;
  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__view-all-button:hover {
  background: #0056b3;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Featured Articles Section */
.page-news__dark-section {
  background-color: #26A9E0; /* Primary color as background */
  padding: 80px 0;
  color: #ffffff;
}

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

.page-news__article-card {
  background: rgba(255, 255, 255, 0.15); /* Slightly transparent white for cards on dark bg */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-news__article-card .page-news__card-content {
  padding: 25px;
  color: #ffffff;
}

.page-news__article-card .page-news__card-title a {
  color: #FFFFFF;
}

.page-news__article-card .page-news__card-title a:hover {
  color: #f0f0f0;
}

.page-news__article-card .page-news__card-date {
  color: #e0e0e0;
}

.page-news__article-card .page-news__card-text {
  color: #f0f0f0;
}

.page-news__read-more-button--white {
  background: #FFFFFF;
  color: #26A9E0;
}

.page-news__read-more-button--white:hover {
  background: #e0e0e0;
  color: #1a7bbd;
}

/* Categories Section */
.page-news__categories {
  padding: 80px 0;
  background-color: #ffffff;
  color: #333333;
}

.page-news__category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 25px;
  text-align: center;
}

.page-news__category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 25px;
  background: #f0f8ff; /* Light blue tint */
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: #333333;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-news__category-icon {
  width: 100%;
  max-width: 200px; /* Ensure images are not too small */
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-news__category-title {
  font-size: 18px;
  font-weight: bold;
  margin: 0;
  color: #26A9E0;
}

/* CTA Banner Section */
.page-news__cta-banner {
  padding: 80px 0;
  text-align: center;
  background-color: #007bff; /* A slightly darker blue for contrast */
  color: #ffffff;
  background-image: url('[GALLERY:cta_banner_bg:1920x400:lucky888 casino,khuyến mãi,đăng ký,ưu đãi,nền banner]');
  background-size: cover;
  background-position: center;
  position: relative;
  z-index: 0;
}

.page-news__cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
  z-index: -1;
}

.page-news__cta-content {
  position: relative;
  z-index: 1;
}

.page-news__cta-title {
  font-size: 38px;
  margin-bottom: 20px;
  font-weight: bold;
  color: #FFFFFF;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
}

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

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

.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 25px;
  opacity: 0;
}

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

/* 问题样式 */
.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: #ffffff;
  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-item.active .page-news__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

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

/* 切换图标 */
.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: #333;
  transform: rotate(45deg); /* Rotate to form 'X' or '-' */
}

.page-news__faq-answer p {
  margin: 0;
  color: #555;
  font-size: 16px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__hero-title {
    font-size: 40px;
  }
  .page-news__hero-description {
    font-size: 18px;
  }
  .page-news__section-title {
    font-size: 28px;
  }
  .page-news__announcement-grid,
  .page-news__article-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-news__category-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  .page-news__cta-title {
    font-size: 32px;
  }
  .page-news__cta-description {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .page-news {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-news__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-news__hero-image img {
    border-radius: 8px;
  }
  .page-news__hero-title {
    font-size: 32px;
    margin-bottom: 15px;
  }
  .page-news__hero-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .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__section-title {
    font-size: 24px;
    margin-bottom: 30px;
  }
  .page-news__latest-announcements,
  .page-news__featured-articles,
  .page-news__categories,
  .page-news__cta-banner,
  .page-news__faq {
    padding: 50px 0;
  }
  .page-news__container {
    padding: 0 15px;
  }
  .page-news__announcement-grid,
  .page-news__article-grid,
  .page-news__category-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-news__card-image {
    height: 180px; /* Adjust height for mobile */
  }
  .page-news__card-content {
    padding: 20px;
  }
  .page-news__card-title {
    font-size: 18px;
  }
  .page-news__card-text {
    font-size: 15px;
  }
  .page-news__read-more-button,
  .page-news__view-all-button {
    padding: 10px 20px;
    font-size: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-news__category-icon {
    max-width: 150px;
  }
  .page-news__category-title {
    font-size: 16px;
  }
  .page-news__cta-title {
    font-size: 28px;
  }
  .page-news__cta-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .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;
  }
  .page-news__faq-answer p {
    font-size: 15px;
  }

  /* Mobile image specific rules */
  .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;
  }
  /* Ensure content doesn't overflow */
  .page-news {
    overflow-x: hidden;
  }
}

@media (max-width: 480px) {
  .page-news__hero-title {
    font-size: 28px;
  }
  .page-news__cta-title {
    font-size: 24px;
  }
  .page-news__cta-button,
  .page-news__read-more-button,
  .page-news__view-all-button {
    font-size: 14px;
    padding: 10px 20px;
  }
  .page-news__category-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
  .page-news__category-card {
    padding: 15px;
  }
  .page-news__category-icon {
    max-width: 100px;
  }
  .page-news__faq-question h3 {
    font-size: 15px;
  }
}