/* style/news.css */
:root {
  --primary-color: #1A202C;
  --secondary-color: #FFD700;
  --text-color-dark-bg: #ffffff;
  --text-color-light-bg: #333333;
  --background-dark: #0a0a0a; /* Body background from shared.css */
  --card-background: #ffffff;
  --border-color: #e0e0e0;
  --light-grey-bg: #f1f3f5;
}

.page-news {
  color: var(--text-color-dark-bg); /* Default text color for page content on dark body background */
  font-family: 'Arial', sans-serif;
  background-color: var(--background-dark);
  padding-top: 120px; /* Desktop: Adjust for fixed header */
}

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

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

.page-news__hero-banner {
  background: linear-gradient(135deg, var(--primary-color), #2d3748);
  padding: 60px 20px;
  text-align: center;
  margin-bottom: 40px;
  border-radius: 0 0 15px 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-news__hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-news__main-title {
  font-size: 3.2em;
  color: var(--secondary-color);
  margin-bottom: 15px;
  line-height: 1.2;
  font-weight: bold;
}

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

.page-news__main-title-link:hover {
  color: #fff;
  text-decoration: underline;
}

.page-news__hero-description {
  font-size: 1.2em;
  color: #e0e0e0;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
}

.page-news__hero-description-link {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__hero-description-link:hover {
  color: #fff;
  text-decoration: underline;
}

.page-news__section-title {
  font-size: 2.5em;
  color: var(--text-color-dark-bg);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.3;
}

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

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

.page-news__section-description {
  font-size: 1.1em;
  color: #b0b0b0;
  text-align: center;
  margin-bottom: 50px;
  line-height: 1.6;
}

.page-news__section-description-link {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__section-description-link:hover {
  color: #fff;
  text-decoration: underline;
}

/* Latest Articles Section */
.page-news__latest-articles {
  padding: 40px 0;
  background-color: var(--background-dark);
}

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

.page-news__article-card {
  background: #1A202C; /* Dark card background */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: var(--text-color-dark-bg);
}

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

.page-news__article-image {
  width: 100%;
  height: 220px;
  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: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.4;
  color: var(--secondary-color);
}

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

.page-news__article-link:hover {
  color: #fff;
  text-decoration: underline;
}

.page-news__keyword {
  color: var(--secondary-color);
}

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

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

.page-news__article-summary-link:hover {
  color: #fff;
  text-decoration: underline;
}

.page-news__read-more-btn {
  display: inline-block;
  padding: 12px 25px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  font-size: 0.9em;
  align-self: flex-start;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

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

/* Promotions Section */
.page-news__promotions-section {
  background-color: var(--background-dark);
  padding: 60px 0;
}

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

.page-news__promotion-card {
  background: #1A202C; /* Dark card background */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: var(--text-color-dark-bg);
}

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

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

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

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

.page-news__promotion-link {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__promotion-link:hover {
  color: #fff;
  text-decoration: underline;
}

.page-news__promotion-description {
  font-size: 0.95em;
  color: #e0e0e0;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__promotion-description-link {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__promotion-description-link:hover {
  color: #fff;
  text-decoration: underline;
}

.page-news__promotion-btn {
  display: inline-block;
  padding: 12px 25px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  font-size: 0.9em;
  align-self: flex-start;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

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

/* FAQ Section */
.page-news__faq-section {
  padding: 60px 0;
  background-color: var(--background-dark);
}

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

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

.page-news__faq-question:hover {
  background: #2d3748;
  border-color: rgba(255, 255, 255, 0.2);
}

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

.page-news__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--text-color-dark-bg);
}

.page-news__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-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: #fff;
  transform: rotate(45deg); /* Change + to X */
}

.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 20px;
  opacity: 0;
  background: #1A202C;
  color: #e0e0e0;
}

.page-news__faq-item.active .page-news__faq-answer {
  max-height: 2000px !important;
  padding: 20px !important;
  opacity: 1;
  background: #2d3748;
  border-radius: 0 0 5px 5px;
}

.page-news__faq-answer p {
  margin: 0;
  line-height: 1.6;
}

.page-news__faq-answer-link {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__faq-answer-link:hover {
  color: #fff;
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__main-title {
    font-size: 2.5em;
  }
  .page-news__hero-description {
    font-size: 1.1em;
  }
  .page-news__section-title {
    font-size: 2em;
  }
  .page-news__article-title {
    font-size: 1.3em;
  }
  .page-news__promotion-title {
    font-size: 1.2em;
  }
}

@media (max-width: 768px) {
  .page-news__hero-banner {
    padding: 40px 15px;
    margin-bottom: 30px;
  }
  .page-news__main-title {
    font-size: 2em;
  }
  .page-news__hero-description {
    font-size: 1em;
  }
  .page-news__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-news__section-description {
    margin-bottom: 40px;
  }
  .page-news__latest-articles, .page-news__promotions-section, .page-news__faq-section {
    padding: 30px 0;
  }
  .page-news__container {
    padding: 0 15px;
  }
  .page-news__articles-grid, .page-news__promotions-grid {
    gap: 20px;
  }
  .page-news__article-image, .page-news__promotion-image {
    height: 180px;
  }
  .page-news__article-content, .page-news__promotion-content {
    padding: 20px;
  }
  .page-news__article-title, .page-news__promotion-title {
    font-size: 1.2em;
  }
  .page-news__article-summary, .page-news__promotion-description {
    font-size: 0.9em;
  }
  .page-news__read-more-btn, .page-news__promotion-btn {
    padding: 10px 20px;
    font-size: 0.85em;
  }
  .page-news__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-news__faq-question h3 {
    font-size: 1em;
    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;
  }

  /* Mobile image fallback */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-news__latest-articles,
  .page-news__promotions-section,
  .page-news__faq-section,
  .page-news__article-card,
  .page-news__promotion-card,
  .page-news__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Global image responsive rules for .page-news scope */
.page-news img {
  max-width: 100%;
  height: auto;
  display: block;
}