/* style/news.css */
:root {
  --primary-color: #1A73E8;
  --secondary-color: #FFD700;
  --dark-bg-1: #0d0d0d; /* Giả định từ shared.css, dùng cho body */
  --text-light: #ffffff;
  --text-dark: #333333;
  --card-bg: #ffffff;
  --border-color: #e0e0e0;
  --accent-color: #ff6b35;
}

.page-news {
  font-family: 'Arial', sans-serif;
  color: var(--text-light); /* Body background is dark, so text should be light */
  line-height: 1.6;
  background-color: var(--dark-bg-1); /* Assuming body background from shared.css */
}

/* Fixed Nav Bar Spacing */
.page-news__hero-placeholder-top {
  height: 120px; /* Desktop: Adjust based on fixed header height */
  width: 100%;
  display: block;
}

@media (max-width: 768px) {
  .page-news__hero-placeholder-top {
    height: 100px !important; /* Mobile: Adjust based on mobile fixed header height */
  }
}

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

.page-news__section {
  padding: 60px 0;
}

.page-news__intro-section {
  text-align: center;
  background-color: var(--dark-bg-1);
  padding-top: 20px; /* Adjust padding after placeholder */
}

.page-news__title {
  font-size: 3.2em;
  color: var(--text-light);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-news__description {
  font-size: 1.1em;
  color: #cccccc;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-news__subtitle {
  font-size: 2.2em;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 50px;
  font-weight: 700;
}

.page-news__subtitle .highlight,
.page-news__title .highlight {
  color: var(--secondary-color);
}

.page-news__latest-articles {
  background-color: #1a1a1a;
}

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

.page-news__article-card {
  background: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  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 6px 20px rgba(0, 0, 0, 0.3);
}

.page-news__article-image {
  width: 100%;
  height: 200px;
  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;
  color: var(--text-dark);
  margin-bottom: 15px;
  font-weight: 600;
  line-height: 1.3;
}

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

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

.page-news__article-summary {
  font-size: 0.95em;
  color: #666666;
  margin-bottom: 15px;
  line-height: 1.5;
}

.page-news__article-date {
  font-size: 0.85em;
  color: #999999;
  margin-top: auto;
  margin-bottom: 20px;
}

.page-news__read-more-button {
  display: inline-block;
  padding: 12px 25px;
  background-color: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease;
  text-align: center;
}

.page-news__read-more-button:hover {
  background-color: #155bb5;
  transform: translateY(-2px);
}

.page-news__deep-content {
  background-color: var(--dark-bg-1);
}

.page-news__deep-content .page-news__card {
  background: var(--card-bg);
  color: var(--text-dark);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  padding: 40px;
}

.page-news__deep-content h2,
.page-news__deep-content h3 {
  color: var(--text-dark);
  margin-bottom: 20px;
  font-weight: 700;
}

.page-news__deep-content h2 {
  font-size: 2.2em;
  text-align: center;
  margin-bottom: 40px;
}

.page-news__deep-content h3 {
  font-size: 1.8em;
  margin-top: 30px;
}

.page-news__deep-content p {
  font-size: 1.05em;
  margin-bottom: 15px;
  line-height: 1.7;
  color: var(--text-dark);
}

.page-news__deep-content ul {
  list-style: disc inside;
  margin-left: 20px;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.page-news__deep-content li {
  margin-bottom: 8px;
  color: var(--text-dark);
}

.page-news__cta-block {
  text-align: center;
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.page-news__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  width: fit-content;
}

.page-news__btn-download {
  background-color: var(--primary-color);
  color: var(--text-light);
  box-shadow: 0 4px 15px rgba(26, 115, 232, 0.4);
}

.page-news__btn-download:hover {
  background-color: #155bb5;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(26, 115, 232, 0.6);
}

.page-news__btn-promotions {
  background-color: var(--secondary-color);
  color: var(--text-dark);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.page-news__btn-promotions:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

/* FAQ Section */
.page-news__faq-section {
  background-color: #1a1a1a;
  padding: 60px 0;
}

.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, opacity 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: #2a2a2a;
  border-radius: 0 0 5px 5px;
  color: #cccccc;
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #333333;
  border: 1px solid #444444;
  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: #444444;
  border-color: #555555;
}

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

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

.page-news__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #999;
  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(--secondary-color);
  transform: rotate(45deg);
}

.page-news__text-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

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

.page-news__text-link--download {
  color: var(--primary-color);
}

.page-news__text-link--download:hover {
  color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__title {
    font-size: 2.5em;
  }
  .page-news__subtitle {
    font-size: 1.8em;
  }
  .page-news__deep-content h2 {
    font-size: 1.8em;
  }
  .page-news__deep-content h3 {
    font-size: 1.5em;
  }
  .page-news__article-title {
    font-size: 1.3em;
  }
  .page-news__article-image {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .page-news__container {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-news__section {
    padding: 40px 0;
  }

  .page-news__title {
    font-size: 2em;
  }

  .page-news__subtitle {
    font-size: 1.6em;
    margin-bottom: 30px;
  }

  .page-news__article-grid {
    grid-template-columns: 1fr;
  }

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

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

  .page-news__article-title {
    font-size: 1.2em;
    margin-bottom: 10px;
  }

  .page-news__article-summary {
    font-size: 0.9em;
  }

  .page-news__read-more-button {
    padding: 10px 20px;
    font-size: 0.9em;
  }

  .page-news__deep-content .page-news__card {
    padding: 25px;
  }

  .page-news__deep-content h2 {
    font-size: 1.6em;
    margin-bottom: 30px;
  }

  .page-news__deep-content h3 {
    font-size: 1.3em;
    margin-top: 25px;
  }

  .page-news__deep-content p {
    font-size: 1em;
  }

  .page-news__cta-block {
    margin-top: 40px;
  }

  .page-news__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 1em;
    padding: 12px 20px;
    white-space: normal;
    word-wrap: break-word;
  }

  .page-news__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-news__faq-question h3 {
    font-size: 15px;
    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;
  }
}

/* Ensure all images are responsive and do not overflow */
.page-news img {
  max-width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .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;
  }
}

/* Color Contrast Fixes (if needed, based on dark body background) */
.page-news__text-block {
  color: var(--text-light); /* Default text color for sections with dark background */
}

.page-news__card {
  background: var(--card-bg);
  color: var(--text-dark);
  border: 1px solid var(--border-color);
}

.page-news__faq-item .page-news__faq-answer p {
  color: #cccccc; /* Ensure contrast for FAQ answer text */
}