/* style/news.css */
:root {
  --primary-color: #FFD700;
  --secondary-color: #000080;
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --bg-light-gray: #f1f3f5;
  --border-light: #e0e0e0;
}

.page-news {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark); /* Default text color for light backgrounds */
  background-color: var(--dark-bg-1); /* Inherited from shared.css, assuming a dark background */
  padding-top: 120px; /* Offset for fixed header */
}

@media (max-width: 768px) {
  .page-news {
    padding-top: 100px; /* Mobile offset for fixed header */
  }
}

/* Ensure main content text is light on dark body background */
.page-news .page-news__container, .page-news .page-news__section, .page-news .page-news__box {
  color: var(--text-color-light);
}

/* Sections with light background explicitly */
.page-news__light-bg {
  background-color: #ffffff;
  color: var(--text-color-dark);
}

.page-news__dark-section {
  background-color: var(--secondary-color); /* Deep blue for contrast */
  color: var(--text-color-light);
}

.page-news__intro-section {
  padding: 60px 20px;
  text-align: center;
  background-color: var(--dark-bg-1);
  color: var(--text-color-light);
}

.page-news__main-title {
  font-size: 38px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--primary-color);
}

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

.page-news__intro-image {
  width: 100%;
  max-width: 1000px;
  height: auto;
  border-radius: 10px;
  margin-bottom: 30px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

.page-news__section-title {
  font-size: 32px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
}

/* Featured Articles Section */
.page-news__featured-articles-section {
  padding: 80px 20px;
}

.page-news__featured-articles-section .page-news__section-title {
  color: var(--text-color-light);
}

.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: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-color-dark);
}

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

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

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

.page-news__article-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.4;
}

.page-news__article-title a.page-news__article-link {
  color: var(--text-color-dark);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__article-title a.page-news__article-link:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

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

.page-news__read-more-btn {
  display: inline-block;
  padding: 10px 20px;
  background: var(--primary-color);
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-news__read-more-btn:hover {
  background: #e6b800;
  transform: translateY(-2px);
}

/* Latest Trends Section */
.page-news__latest-trends-section {
  padding: 80px 20px;
  background-color: var(--dark-bg-1);
  color: var(--text-color-light);
}

.page-news__latest-trends-section .page-news__section-title {
  color: var(--primary-color);
}

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

.page-news__trend-item {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  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__trend-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-news__trend-image {
  width: 35%;
  height: auto;
  object-fit: cover;
  min-width: 250px; /* Ensure image is not too small */
}

.page-news__trend-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-news__trend-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.4;
}

.page-news__trend-title a.page-news__trend-link {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__trend-title a.page-news__trend-link:hover {
  color: #e6b800;
  text-decoration: underline;
}

.page-news__trend-description {
  font-size: 17px;
  margin-bottom: 20px;
  color: #cccccc;
}

/* Promotion News Section */
.page-news__promotion-news-section {
  padding: 80px 20px;
}

.page-news__promotion-news-section .page-news__section-title {
  color: var(--text-color-dark);
}

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

.page-news__promotion-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-color-dark);
}

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

.page-news__promotion-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-news__promotion-content {
  padding: 25px;
  text-align: center;
}

.page-news__promotion-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.4;
  color: var(--secondary-color);
}

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

.page-news__cta-button {
  display: inline-block;
  padding: 12px 25px;
  background: linear-gradient(135deg, var(--primary-color), #e6b800);
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 17px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: none;
}

.page-news__cta-button:hover {
  background: linear-gradient(135deg, #e6b800, #cc9900);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
.page-news__faq-section {
  padding: 80px 20px;
  background-color: var(--dark-bg-1);
  color: var(--text-color-light);
}

.page-news__faq-section .page-news__section-title {
  color: var(--primary-color);
}

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

.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

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

.page-news__faq-item.active .page-news__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 0 0 5px 5px;
  color: #f0f0f0;
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-news__faq-question:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.page-news__faq-question:active {
  background: rgba(255, 255, 255, 0.2);
}

.page-news__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--primary-color);
}

.page-news__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  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: 28px;
  height: 28px;
}

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

/* Contact CTA Section */
.page-news__contact-cta-section {
  padding: 80px 20px;
  text-align: center;
  background-color: var(--dark-bg-1);
  color: var(--text-color-light);
}

.page-news__contact-card {
  background: rgba(0, 0, 128, 0.4); /* Semi-transparent secondary color */
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  max-width: 800px;
}

.page-news__contact-card .page-news__section-title {
  color: var(--primary-color);
  margin-bottom: 25px;
}

.page-news__contact-card .page-news__description {
  color: #f0f0f0;
  margin-bottom: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__trend-item {
    flex-direction: column;
  }
  .page-news__trend-image {
    width: 100%;
    min-width: unset;
    height: 250px;
  }
}

@media (max-width: 768px) {
  .page-news__main-title {
    font-size: 30px;
  }
  .page-news__description {
    font-size: 16px;
  }
  .page-news__section-title {
    font-size: 26px;
  }
  .page-news__articles-grid, .page-news__promotion-grid {
    grid-template-columns: 1fr;
  }
  .page-news__article-title, .page-news__promotion-title {
    font-size: 20px;
  }
  .page-news__trend-item {
    flex-direction: column;
  }
  .page-news__trend-image {
    width: 100%;
    height: 200px;
  }
  .page-news__trend-content {
    padding: 20px;
  }
  .page-news__trend-title {
    font-size: 20px;
  }
  .page-news__trend-description {
    font-size: 15px;
  }
  .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: 24px;
    height: 24px;
    font-size: 20px;
  }
  .page-news__faq-answer {
    padding: 0 15px;
  }
  .page-news__faq-item.active .page-news__faq-answer {
    padding: 15px !important;
  }
  .page-news__contact-card {
    padding: 30px;
  }
}

@media (max-width: 480px) {
  .page-news__main-title {
    font-size: 26px;
  }
  .page-news__section-title {
    font-size: 22px;
  }
  .page-news__article-title, .page-news__promotion-title {
    font-size: 18px;
  }
  .page-news__cta-button {
    font-size: 15px;
    padding: 10px 20px;
  }
}